Commit graph

191 commits

Author SHA1 Message Date
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
Michael Aaron Murphy
e1d1b0bad5 feat(widget): initial implementation of Grid widget 2023-10-02 17:32:39 +02:00
Ashley Wulber
ebcaf242e9 fix(color-picker): tooltip 2023-10-02 10:24:43 -04:00
Ashley Wulber
70077ca985 feat: color picker 2023-10-02 10:24:43 -04:00
Ashley Wulber
3829178c88 refactor: allow text input on_clear for more than just search_input 2023-09-21 15:25:13 -04:00
Michael Aaron Murphy
d973dafba7 feat(widget): Reimplement FlexRow as iced::Widget 2023-09-20 16:43:52 +02:00
Michael Aaron Murphy
aa2dfe0ea5 fix(widget): unset max width for settings::view_column 2023-09-19 17:22:20 +02:00
Michael Aaron Murphy
8f9fde7fe8 fix(widget): set SegmentedButton icon color to be same as text 2023-09-19 17:22:20 +02:00
Michael Aaron Murphy
96549d1b84 fix(widget): default ListColumn spacing to 12 2023-09-19 17:22:20 +02:00
Michael Aaron Murphy
78647db0ea chore(widget): set Button width and height with impl Into 2023-09-19 17:22:20 +02:00
Michael Aaron Murphy
9ceda6d704 feat(widget): add navigation with page_list_item and sub_page_header 2023-09-19 17:22:20 +02:00
Michael Aaron Murphy
314e45e8ab feat(widget): make public more button builder properties 2023-09-18 16:47:38 +02:00
Michael Aaron Murphy
b404497e76
fix(widget): allow None for button text color to inherit from container 2023-09-18 08:28:57 +02:00
Eduardo Flores
485945591b
feat(widget): Added spacing and padding method to list column 2023-09-17 22:10:48 +02:00
Michael Aaron Murphy
c2d62bad52 fix(button): icon style variant to inherit colors from container 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
2e11d62de5 feat(widget): custom style variant for button widget 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
48fd076cc8 fix(segmented-button): disappearance of icons from bad layout values 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
9dbc1be269 refactor(widget): improvements to button and icon widgets 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
1e3c44865a feat(widget): import more widgets from iced 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
51ac288eed feat(widget): create list-styled containers with list::container() 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
9963629a4f fix(headerbar): window being dragged on click 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
9eb55ce893 feat(widget): add tooltip module 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
87e7567b7b feat(widget): add divider::vertical variants 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
6e1f00295b feat(widget): add divider::horizontal::default() variant 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
4564c36c83 chore(widget): use Row type in settings::item 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
03a5c929fd refactor(widget): create alias for Row type 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
6402bcfe26 chore(widget): use Column type in settings::view_column 2023-09-14 01:38:56 +02:00