Commit graph

504 commits

Author SHA1 Message Date
Michael Aaron Murphy
f9f8eb51cb
fix(menu_bar): root text will inherit icon color from header 2024-05-21 04:34:35 +02:00
Michael Aaron Murphy
aa3f5d3401
improv: impl From<M> for Message<M> 2024-05-21 01:29:50 +02:00
Ashley Wulber
4bbb6c3cab fix: cosmic example 2024-05-15 16:19:32 -04:00
Ashley Wulber
6a97435263 fix(cosmic-config): attempt to reconnect to the settings daemon 2024-05-12 21:27:22 +02: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
59a913c15d feat!(segmented_button): Add context menu support and integrations 2024-04-18 17:18:53 +02:00
Michael Aaron Murphy
33db28327a feat(example): add text-input example 2024-04-09 21:22:06 +02:00
Ashley Wulber
61427b25b0 fix: fallback to Cosmic icon theme 2024-03-19 14:14:30 -06:00
Eduardo Flores
28cbf3c083 style: formatting 2024-03-18 15:06:37 +01:00
Eduardo Flores
9f10c5fd9e docs(menu): update example 2024-03-18 15:06:37 +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
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
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
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
Ashley Wulber
06b46f455b wip: support desktop portal color-scheme, and accent variables 2024-03-01 21:30:24 -05:00
Ashley Wulber
c390b2614d wip: support desktop portal color-scheme, and accent variables 2024-03-01 21:30:24 -05:00
Michael Aaron Murphy
c7093b67f6 chore(examples): fix build 2024-02-26 19:17:49 +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
3c1a60cb05 fix: build with a11y feature 2024-02-08 17:29:02 -07:00
Ian Douglas Scott
6ebda94c79 Remove reference to wip-iced-update branch in example 2024-02-06 19:20:26 +01:00
Ashley Wulber
dbcd927d4b various fixes 2024-02-06 11:28:27 -05:00
Ashley Wulber
f4ad098647 wip: update to use latest iced 2024-02-06 11:28:27 -05:00
Michael Aaron Murphy
0bef593ba4 feat!(dialog): refactor and support rfd as file_chooser provider 2024-01-23 22:08:21 +01:00
Ashley Wulber
efe4ce2f5b refactor: config improvements 2024-01-18 20:19:32 -07:00
Dominic Gerhauser
3eed30f723 fix: update id in applet example 2024-01-18 20:19:22 -07:00
Ashley Wulber
994e93d6d2 fix: better handling of secure inputs 2024-01-17 14:57:06 -07:00
Ashley Wulber
8157ed5c63 feat: apply overlay to headerbar when it loses focus 2024-01-11 15:54:32 -05:00
Ashley Wulber
481cd5a0cd fix: position of input label 2024-01-03 14:53:52 -05:00
Ashley Wulber
eff22fdb34 chore(cosmic-config): update to include state and remove ping/pong 2024-01-02 15:12:14 +01:00
Ashley Wulber
06c33dcf06 refactor: optional config subscriptions using dbus 2024-01-02 15:12:14 +01:00
Ashley Wulber
a4d1b1b651 refactor: cosmic-config granular key updates and remove unused generics from cosmic-theme 2024-01-02 15:12:14 +01:00
Ashley Wulber
cd56266ac9 chore: update example 2024-01-02 15:09:29 +01:00
Ashley Wulber
310064ca1d refactor: use theme corner radii everywhere
not all values matched a default value but I picked the next closest in that case
2023-12-13 13:10:39 -05:00
Ashley Wulber
ba90e52848 fix: cosmic_container tag method 2023-12-08 10:06:13 -05:00
Ashley Wulber
77b8718706 fix: headerbar and multi-window example improvements 2023-12-08 10:06:13 -05:00
Ashley Wulber
685a0543cd chore: multi-window example 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
Ashley Wulber
fcfe9ebc59 chore: update iced 2023-12-04 17:53:24 -05:00
Ashley Wulber
9202383596 chore: update to 0.12 2023-12-04 17:53:24 -05:00
danieleades
8e99406a8b
chore: fixing linter warnings 2023-11-28 20:02:08 +01:00
Ashley Wulber
57f4abb8a0 refactor: make the single-instance feature additive 2023-11-21 21:25:10 +01:00
Michael Aaron Murphy
2c445d820f feat(image_button): add optional removable button overlay 2023-11-15 16:50:15 +01:00
Michael Aaron Murphy
43c78fa0df feat(examples): add image button example 2023-11-03 16:41:31 +01:00
Michael Aaron Murphy
7b2b8952c6
chore: update design demo 2023-10-24 19:52:44 +02: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
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
a91deacff5
chore(examples): update design-demo 2023-10-12 17:10:56 +02:00
Michael Aaron Murphy
395a90891d refactor!(app): rename set_title to set_window_title 2023-10-12 16:37:38 +02:00