Commit graph

217 commits

Author SHA1 Message Date
Michael Aaron Murphy
74ee508427 fix(dropdown::multi): panic on missing paragraph 2023-12-09 03:51:25 +01:00
Ashley Wulber
ba90e52848 fix: cosmic_container tag method 2023-12-08 10:06:13 -05:00
Ashley Wulber
c66e4aafd0 update to support winit multi-window 2023-12-08 10:06:13 -05:00
Jeremy Soller
77e9a160c4 Fix incorrect tree item in ContextDrawer overlay 2023-12-06 14:07:16 -07:00
Jeremy Soller
4b8fb4646b Menu: align tree in MenuBounds 2023-12-06 14:07:16 -07:00
Jeremy Soller
c2aae2e79b Menu: align tree in MenuState::layout 2023-12-06 14:07:16 -07:00
Jeremy Soller
6a8447d70f Menu: unsafe hack to diff children of flattened trees 2023-12-06 14:07:16 -07:00
Jeremy Soller
fb4669591a Menu: align tree items with menu roots in MenuBar::layout 2023-12-06 14:07:16 -07:00
Michael Aaron Murphy
3608675358 fix(dropdown::multi): paragraphs missing in layout on first init 2023-12-05 17:12:52 +01:00
Michael Aaron Murphy
2cffbaf3a7 fix(dropdown::multi): set correct line height for descriptions 2023-12-05 17:12:52 +01:00
Michael Aaron Murphy
93cee0abab fix(dropdown::multi::menu): vertically center-align separators 2023-12-05 17:12:52 +01:00
Michael Aaron Murphy
50a94d590a fix(dropdown::multi::menu): option description off center by 8 pixels 2023-12-05 17:12:52 +01:00
Michael Aaron Murphy
6181d96f00 fix(dropdown::multi::menu): panic in layout 2023-12-05 17:12:52 +01:00
Ashley Wulber
283aa2abd0 fix: rectangle tracker missing methods 2023-12-05 10:03:40 -05:00
Ashley Wulber
fcfe9ebc59 chore: update iced 2023-12-04 17:53:24 -05:00
Ashley Wulber
17bc373990 clippy fixes 2023-12-04 17:53:24 -05:00
Ashley Wulber
34e886e2d5 fix: specify that lineheight is absolute for heading 2023-12-04 17:53:24 -05:00
Ashley Wulber
0e9b46af72 update for multi-menu 2023-12-04 17:53:24 -05:00
Ashley Wulber
5f2e83b04d fix: avoid text_input paragraph updates in diff 2023-12-04 17:53:24 -05:00
Ashley Wulber
9202383596 chore: update to 0.12 2023-12-04 17:53:24 -05:00
Michael Aaron Murphy
35fea09344 fix(flex_row): missing child nodes in layout 2023-12-04 08:33:59 -07:00
Michael Aaron Murphy
bb7c7ac52a feat(widget): add dropdown::multi list widget 2023-11-30 22:20:12 +01:00
Jeremy Soller
d6c8fbe268 Bundle close and open menu icons 2023-11-28 13:22:25 -07:00
danieleades
8e99406a8b
chore: fixing linter warnings 2023-11-28 20:02:08 +01:00
Ian Douglas Scott
d1537b4c39
fix: compilation with latest taffy commit
Also adds `rev =` to `Cargo.toml` specifying the latest commit.

A library like `libcosmic` shouldn't use git dependencies without
specifying a commit or tag.
2023-11-22 20:12:59 +01:00
Jeremy Soller
001fd744c5 Allow custom position in popover 2023-11-20 10:18:10 -08:00
Ashley Wulber
ef5b6fb44a feat: add helpers for getting and using activation tokens in applets
refactor(applet): connect to privileged socket if available

cleanup
2023-11-17 19:29:11 -05:00
Jeremy Soller
1caae11e8f
fix: compilation on Windows 2023-11-17 01:36:29 +01:00
Ashley Wulber
448c777812 fix: clear the color picker when it is toggled 2023-11-16 15:34:04 -05:00
Jeremy Soller
2df8cb8862 Allow segmented buttons to be indented 2023-11-16 08:06:07 -07:00
Jeremy Soller
bad4400779 Add menu code, adapted from iced_aw 2023-11-16 08:06:07 -07:00
Michael Aaron Murphy
2c445d820f feat(image_button): add optional removable button overlay 2023-11-15 16:50:15 +01:00
Michael Aaron Murphy
14614e4e03 fix(button): image button rendering fixes 2023-11-13 12:14:51 +01:00
Ashley Wulber
484417787a
chore: update iced 2023-11-09 14:55:51 +01:00
Michael Aaron Murphy
9ccd34b5ab fix(headerbar): center-align title even if start region is empty 2023-11-03 16:41:31 +01:00
Michael Aaron Murphy
34386561b3 feat(button): add ImageButton widget variant 2023-11-03 16:41:31 +01:00
Ashley Wulber
470b966e8d feat(RectangleTracker): allow ignoring the bounds of a parent widget 2023-10-30 14:35:48 -04:00
Michael Aaron Murphy
ca7c17ce21 feat(widget): add dropdown widget as pick_list replacement
The Dropdown widget is based on the PickList widget from iced.
2023-10-24 19:45:21 +02:00
Michael Aaron Murphy
390de9a6cf fix(headerbar): center-align center region of header bar 2023-10-24 16:46:46 +02:00
Ashley Wulber
7cc791a3f5
feat: add support for dark / light mode switching (#178)
* feat: add support for dark / light mode switching and simultaneouscustom light / dark mode themes

* refactor(color-picker): optional initial color and fallback color

* refactor: used FixedPortion for layout of the settings item

This makes sure that the control always has at least the specified portion of the available space

* refactor: make all members of the ThemeBuilder public

* refactor: add and update palette colors

* fix(theme): typo and derive PartialEq for ThemeBuilder

* fix: update color picker usage

* feat: add more variables to the theme

* fix: radius on headerbar

* fix: Theme CosmicConfigEntry impl

* chore: specify rev of taffy

* fix: theme CosmicConfigEntry missing variables

* fix: apply theme type when theme mode changes

* wip: add plus icon to empty color picker button

* chore: fix rev and imports

* refactor(color-picker): allow custom size for the icon

* refactor(color_picker): make color_button public

* update iced
2023-10-16 16:19:04 -04:00
Michael Aaron Murphy
3127de3296 feat(widget): add ContextDrawer widget 2023-10-12 16:37:38 +02:00
Michael Aaron Murphy
8c86dae449 feat(rectangle_tracker): functions for widget and subscription 2023-10-12 16:37:38 +02:00
Michael Aaron Murphy
436a5825d7 chore(navigation): remove unused imports 2023-10-12 16:37:38 +02:00
Michael Aaron Murphy
2c680c8ae0 chore(color_picker): specify imports 2023-10-12 16:37:38 +02:00
Michael Aaron Murphy
21cc4124f0 chore(grid): remove unused Item struct 2023-10-12 16:37:38 +02:00
Ian Douglas Scott
2c55285ad4
fix(grid): missing generic argument of Taffy 2023-10-11 22:01:34 +02:00
Michael Aaron Murphy
971a1fa89c fix(grid): width set to Length::Fill causes 0-width layout 2023-10-04 16:08:37 +02:00
Michael Aaron Murphy
369cede7da fix(grid): span of widgets across columns and rows 2023-10-04 16:08:37 +02:00
Michael Aaron Murphy
c937332322 fix(grid): enable configurable column and row alignment 2023-10-04 16:08:37 +02:00
Ashley Wulber
6448b75e76 refactor(color-picker): add method for getting the applied color 2023-10-03 00:40:33 +02:00