Commit graph

522 commits

Author SHA1 Message Date
Ashley Wulber
54eb5487b4 fix(applet): remove text color style 2024-05-15 16:19:32 -04:00
Ashley Wulber
be329403c1 cleanup(applet): replace todo for text size 2024-05-15 16:19:32 -04:00
Ashley Wulber
1b63c9e38b chore: update libcosmic 2024-05-15 16:19:32 -04:00
Ashley Wulber
9677b74b89 feat(applet): scale text based on panel setting 2024-05-15 16:19:32 -04:00
Jeremy Soller
a2e2711061
fix(settings): set iced window exit_on_close_request 2024-05-14 08:04:09 -06:00
Ashley Wulber
9292004642 feat: allow preference for dark or light system theme
also converts applet to use preferred system theme
2024-05-14 07:36:08 -04:00
Ashley Wulber
84d77281cb fix: context-drawer border & radius 2024-05-13 20:00:34 +02:00
Jeremy Soller
ac95b571ec feat: allow on_app_exit to override closing the application 2024-05-13 17:39:21 +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
Michael Aaron Murphy
3cfc5c16a3 fix: avoid setting WGPU_POWER_PREF=low if system is desktop 2024-05-07 05:00:27 +02:00
Ashley Wulber
23f6fc8358 fix(applet): set the svg style to default if the icon is not symbolic 2024-05-06 19:07:22 -04:00
Ryan Brue
fec71fdda4 feat(applet): impl ToString for PanelType 2024-05-06 15:29:35 -06:00
Ryan Brue
e9aa969e61 feat(applet): add panel type attribute to applet context
This will allow applets to know whether they are on a Panel, Dock, or other named panel.
2024-05-06 17:02:32 -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
Jeremy Soller
42cfdbf585
fix(app): restore on_context_drawer functionality that was removed in 59a913c 2024-04-26 10:22:51 -06: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
c091988af4 fix(button): icon styles should inherit text and icon colors from container 2024-04-26 17:00:24 +02:00
Michael Aaron Murphy
fe3f9464f7 fix(headerbar): container style should use accent color for icons 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
14bd633356 improv(theme): theme generation improvements 2024-04-24 18:23:56 +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
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
Ashley Wulber
d54af65a2a refactor: update applet icon sizes 2024-04-15 18:29:57 -04:00
Ashley Wulber
39f535c18b fix: toggler and slider roundness 2024-04-15 22:09:56 +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
b240e3fef2 refactor: no Sync bound for Message 2024-04-02 00:12:21 +02:00
Ashley Wulber
745cba1c2c feat: add drag_destinations for container widgets 2024-04-01 22:14:42 +02:00
Ashley Wulber
b9cc88c492 fix: add Sync bound to Message 2024-04-01 13:40:03 -06:00
Ian Douglas Scott
61a14a953d
applet: Add icon_button_from_handle (#368)
`StatusNotifierItem` can use either named icons, or pixmap data. So to
support the latter, it needs a way to show a non-named icon with the
same button styling as any other planel applet icon.

The `StatusNotifierItem` protocol actually supports sending different
icons with different sizes, so ideally we'd want a `icon::Data` variant
that contains multiple sizes? But just using the largest and scaling
works for now.
2024-03-27 09:10:41 -07: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
c6bb69eafd refactor(icon): use COSMIC variable for default icon theme name 2024-03-19 14:14:30 -06:00
Ashley Wulber
61427b25b0 fix: fallback to Cosmic icon theme 2024-03-19 14:14:30 -06:00
Michael Aaron Murphy
59e5f2ff38
fix(app): set window title properly with winit 2024-03-19 19:27:00 +01:00
Ashley Wulber
d02a4fefff fix: selected images should have a border 2024-03-19 11:32:36 -04:00
Ashley Wulber
01d7e46fea fix: diff children 2024-03-18 22:00:50 +01:00
Ashley Wulber
db63aefe6f feat: add apply_theme_global to CosmicTk 2024-03-18 14:49:40 -06:00
Michael Aaron Murphy
4154428a63 feat(config): add icon theme property to CosmicTk config 2024-03-18 09:51:37 -06:00