Ashley Wulber
84d77281cb
fix: context-drawer border & radius
2024-05-13 20:00:34 +02:00
Ashley Wulber
05a9e7639f
feat: update the headerbar to match figma
...
i don't think the alpha is actually working for the icon, but the color should match
2024-05-13 11:22:59 -04:00
Ashley Wulber
7a964772c2
cargo fmt
2024-05-01 11:52:07 -06:00
Ian Douglas Scott
2ebf7e8e0a
Update text_input widget for iced_sctk drag-and-drop change
2024-04-30 16:17:07 -07:00
Michael Aaron Murphy
e556148942
fix(context-drawer): close button should use link button style
2024-04-26 17:00:24 +02:00
Michael Aaron Murphy
8c8dbd1420
fix(text_input): inherit text and icon colors from container
2024-04-26 17:00:24 +02:00
Jeremy Soller
d138c86a11
nav_bar: allow setting close_icon and on_close
2024-04-25 20:18:56 -06:00
Michael Aaron Murphy
9ffb87d21f
feat(context_menu): add a context menu widget as menu tree alternative to the popover widget
2024-04-22 17:25:05 +02:00
Michael Aaron Murphy
c0b653f506
fix(segmented-button): crash when context menu is unassigned
2024-04-19 11:20:20 +02:00
Michael Aaron Murphy
59a913c15d
feat!(segmented_button): Add context menu support and integrations
2024-04-18 17:18:53 +02:00
Michael Aaron Murphy
2bfdc09a43
fix(popover): add modal property for dialogs
...
Fixes quirks with the context drawer and dialogs
2024-04-11 23:03:59 +02:00
Michael Aaron Murphy
c6ab6cfe23
fix(editable_input): disable edit mode when widget loses focus
2024-04-11 23:03:34 +02:00
Michael Aaron Murphy
0d829886fe
fix(editable_input): disable read-only mode when text is clicked
2024-04-11 23:03:34 +02:00
Michael Aaron Murphy
0bf44a6f1f
fix(popover): close popover when clicking outside of popover
2024-04-11 19:18:38 +02:00
Michael Aaron Murphy
7d1b557112
fix(text_input): clip text in text_input if they exceed initial bounds
2024-04-09 21:22:34 +02:00
Michael Aaron Murphy
78e331d5ed
fix(segmented-button): misaligned icon when text is empty
2024-04-09 21:22:17 +02:00
Michael Aaron Murphy
0ac4172b74
feat(widget): add editable_input widget
2024-04-09 21:22:06 +02:00
Ashley Wulber
d625291266
feat: dnd for segmented buttons and nav
2024-04-09 21:21:38 +02:00
Ashley Wulber
f15aeb4247
feat: dnd utilities
2024-04-09 21:21:38 +02:00
Ashley Wulber
fa31f42cd8
fix: dnd
2024-04-04 18:47:06 -06:00
Ashley Wulber
745cba1c2c
feat: add drag_destinations for container widgets
2024-04-01 22:14:42 +02:00
Eduardo Flores
2f6f8aa22b
fix(style): fixed default style for list_column
2024-03-23 12:18:35 -06:00
Eduardo Flores
3b1f19ac70
improv(list_column): added setter for style.
2024-03-23 11:43:44 -06:00
Ashley Wulber
61427b25b0
fix: fallback to Cosmic icon theme
2024-03-19 14:14:30 -06:00
Ashley Wulber
01d7e46fea
fix: diff children
2024-03-18 22:00:50 +01:00
Eduardo Flores
db71a32c38
improv(menu): add more types of menu items.
...
- Added `Checkbox` and `Folder` variants to `MenuItem`.
- Exported `menu_button` macro.
2024-03-18 15:06:37 +01:00
Eduardo Flores
171e697738
improv(menu): add documentation.
2024-03-16 19:00:12 -06:00
Eduardo Flores
0b47efe1de
improv(menu): simplify menu construction.
...
- Added `MenuAction` trait to call the `message` method on button press.
- Added two new methods to construct a MenuTree.
- Added MenuItem enum to represent an action or a separator in a MenuTree.
- Added menu example.
- Moved Modifier enum and KeyBind struct to libcosmic.
- Moved menu_button macro to libcosmic.
2024-03-16 19:00:12 -06:00
Michael Aaron Murphy
9e6d94c7eb
fix(button): use correct paddings for icon buttons
2024-03-15 22:38:49 +01:00
Eduardo Flores
5d600c70c2
improv(calendar): simplify message handling
2024-03-15 13:40:31 +01:00
Michael Aaron Murphy
ccb0dbed65
refactor(calendar): add setters for managing selected date logic
2024-03-15 13:40:31 +01:00
Michael Aaron Murphy
d68488de47
feat(widget): add calendar widget
2024-03-15 13:40:31 +01:00
Michael Murphy
2d41a9e65d
refactor(widget): rename cosmic_container to layer_container
2024-03-12 16:19:35 +01:00
Ashley Wulber
e47684ffdb
refactor: icon styling and headerbar icon styling
...
Headerbar icons are transparent when their window is not focused, but otherwise share the same style as icons with selection. This updates the icon styles to match figma when selected.
2024-03-11 16:26:48 -04:00
Michael Aaron Murphy
2b23005fbf
fix(segmented_button): hidden new tab button on shrink
2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
26a7e6b0f9
fix(segmented_button): invalid tab offset when width is reduced by nav bar
2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
2ccd3682b4
feat(segmented-button): add maximum_button_width property
2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
d704d90e92
fix(segmented_button): adjust layout and drawing to designs
2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
b3915a9bbc
perf(segmented_button): recreate paragraph only when text changes
2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
422d912634
fix(color_picker): apply color when receiving ActionFinished message
2024-03-07 03:50:20 +01:00
Michael Aaron Murphy
e36f072c5a
fix(color_picker): add padding to recent colors container to prevent scroller overlap
2024-03-07 03:50:20 +01:00
Michael Aaron Murphy
73952a463c
fix(color_picker): set min button width of segmented control to 0
2024-03-07 03:50:20 +01:00
Michael Aaron Murphy
85898347e2
refactor(theme): create Container::List style variant
2024-03-05 08:35:47 -07:00
Michael Aaron Murphy
db5d989972
refactor(theme): create Container::ContextDrawer style variant
2024-03-05 08:35:47 -07:00
Ashley Wulber
ce45af20f8
fix: better diffing of input state
...
this could still be improved, but should probably be refactored.
2024-03-01 15:22:28 -05:00
Jeremy Soller
8a86f1857f
fix(nav_bar): use corret button padding
2024-03-01 09:15:55 -07:00
Michael Aaron Murphy
041ca44132
fix(settings): broken layout with some settings items
2024-03-01 04:27:28 +01:00
Jeremy Soller
e12d625338
fix(grid): layout swapped row and column spacing
2024-02-29 09:13:10 -07:00
Michael Aaron Murphy
cd9778a704
fix(settings): avoid overlap of item title and controls
2024-02-28 22:20:34 +01:00
Jeremy Soller
7c3145828e
Make it possible to use any widget in dialog button area
2024-02-27 12:17:48 -07:00