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
Jeremy Soller
a593f866ef
Set resize border for winit apps
2024-02-27 10:52:33 -07:00
Jeremy Soller
bc3e16619e
Fix popover bottom position
2024-02-27 10:32:24 -07:00
Michael Aaron Murphy
9eeaf816dc
chore(semgented_button): fix linter warnings
2024-02-27 18:31:28 +01:00
Jeremy Soller
b55fad7e33
Add move popover positioning options
2024-02-27 10:25:37 -07:00
Jeremy Soller
7abfef4eed
Ensure popover passes through child overlay
2024-02-27 09:49:11 -07:00
Jeremy Soller
16aaf10b56
Add support for themed application dialog
2024-02-27 09:38:33 -07:00
Ashley Wulber
524ceef47c
chore: fmt
2024-02-26 16:50:40 -07:00
Jeremy Soller
a0340aac26
Center popovers without positions
2024-02-26 15:12:46 -07:00
Michael Aaron Murphy
ff9438c5ba
refactor!(widget): rename view_switcher to tab_bar to match Figma docs
2024-02-26 19:17:49 +01:00
Michael Aaron Murphy
bfc84c4759
refactor!(widget): rename segmented_selection to segmented_control to match Figma docs
2024-02-26 19:17:49 +01:00
Michael Aaron Murphy
366a450977
improv(segmented_button): rework layout, drawing, and styling to fix visual flaws
2024-02-26 19:17:49 +01:00
Michael Aaron Murphy
bd353c6b54
improv(widget): share object-select svg handle between widgets using it
2024-02-26 19:17:49 +01:00
Michael Aaron Murphy
e90b584d91
improv(slider): add styling for breakpoint and right rail
2024-02-21 17:01:31 +01:00
Ian Douglas Scott
cc8033d74b
feat(header_bar): Show window menu on right click
...
With this, apps like cosmic-term require no changes to show the
compositor window menu when the header is right clicked.
2024-02-13 17:10:04 +01:00
Michael Aaron Murphy
6adc037f40
feat(segmented_button): add scrollable_focus to toggle focus scrolling
2024-02-12 18:16:54 +01:00
Ashley Wulber
072a3d5ca0
feat: lower the opacity of colors used in the segmented button when disabled
...
This is needed for the new tiling applet. Transparent text only seems to be working with the wgpu feature at the moment
2024-02-12 11:55:27 +01:00
Ashley Wulber
5738ac2055
fix(input): handle space named key
2024-02-09 11:30:29 -07:00
Ashley Wulber
3c1a60cb05
fix: build with a11y feature
2024-02-08 17:29:02 -07:00
Ashley Wulber
5530ac3254
fix: typo in resolve for segmented button
2024-02-08 07:45:03 -05:00
Ashley Wulber
5ac8f120b4
cleanup: remove extra example from text input
2024-02-06 11:28:27 -05:00
Ashley Wulber
82dfab633a
refactor: make Theme a generic parameter for the button
...
This makes the button possible to use with custom themes in cosmic-time
2024-02-06 11:28:27 -05:00
Ashley Wulber
11ac07010b
refactor: make Theme a generic parameter for the toggler
...
This makes the toggler possible to use with custom themes in cosmic-time
2024-02-06 11:28:27 -05:00
Ashley Wulber
989d14b206
refactor: make Theme a generic parameter for the cosmic container
...
This makes the container possible to use with custom themes in cosmic-time
2024-02-06 11:28:27 -05:00
Ashley Wulber
aff337f5dd
chore: update iced and fix input single pointer press interaction
2024-02-06 11:28:27 -05:00
Ashley Wulber
9d479248a5
cleanup: text input
2024-02-06 11:28:27 -05:00
Ashley Wulber
0d685ba2de
fix(color picker): apply update before updating text
2024-02-06 11:28:27 -05:00
Ashley Wulber
e778782328
fix: layout fixes for nav bar
2024-02-06 11:28:27 -05:00