Commit graph

72 commits

Author SHA1 Message Date
Vukašin Vojinović
38dde24f96 chore(applet): add spacing field 2025-07-21 10:52:22 -04:00
Josh Megnauth
944c6761f7 fix(windows): Mingw doesn't support trim
Closes: #872
2025-05-29 07:28:38 +02:00
Ryan Brue
6fb4a4a43e Use size thresholds for panel sizing in libcosmic
Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
2025-05-28 15:10:00 -04:00
Ryan Brue
b73532f62f Handle Custom panel size in libcosmic
The logic here is set up to mimic the current text sizes for the hardcoded panel sizes.

Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
2025-05-28 12:54:03 -04:00
Ashley Wulber
1fce5df160 refactor: add optional parameter for layout offset and bounds for button handlers
Buttons are often used for toggling popups, so something allowing more straightforward positioning is important.
2025-05-23 19:19:42 +02:00
Ashley Wulber
cc3ca6ed14 refactor: applet tooltips may be for an overflow window 2025-04-14 14:16:17 +02:00
Ashley Wulber
cb682be3c8
fix(applet): fixes for recent updates 2025-03-21 17:23:46 +01:00
Michael Aaron Murphy
0aa518984e
chore: format for 2024 edition 2025-03-21 13:33:07 +01:00
Ashley Wulber
337b80d4ca
feat: Tooltips and Better Surface Management 2025-03-14 16:56:21 +01:00
Michael Aaron Murphy
f59eb77252 perf: set static mmap threshold on gnu target env by default 2025-02-12 10:59:46 -07:00
Vukašin Vojinović
127ce17b85 improv: add window border 2024-11-05 10:02:19 +01:00
Ashley Wulber
d84447aaad fix: apply App::Executor to multi-window instance 2024-10-29 13:32:08 -06:00
Ashley Wulber
07763aca8e refactor: allow resetting main window id to None 2024-10-21 17:33:10 -06:00
Ashley Wulber
cf3ba4ca07 refactor: allow resetting the main window id 2024-10-21 17:37:51 -04:00
Ashley Wulber
6f5d096be2 fix: docs 2024-10-21 08:58:34 -06:00
Ashley Wulber
0491c4baaa libcosmic updates 2024-10-18 14:04:39 -04:00
Michael Aaron Murphy
9e064e7fa0 feat: configurable fonts 2024-10-05 01:47:37 +02:00
Michael Aaron Murphy
f12de010ec fix!(widget): rename button function to button::custom 2024-09-16 11:36:42 -06:00
Victoria Brekenfeld
b40839638a fix: Use globals instead of thread-locals
Better support for multi-threaded applications,
especially cosmic-comp rendering in parallel on
multiple threads, each potentially accessing
global configurations such as the active theme,
icon_theme and more...
2024-08-02 20:27:08 +02:00
Ashley Wulber
d35cc71b90
feat(applets): add overflow support 2024-07-16 17:15:22 +02:00
Michael Aaron Murphy
ce4580ab0b
fix(applet): set default text size to 14.0 2024-06-06 22:47:27 +02:00
Michael Aaron Murphy
aa3f5d3401
improv: impl From<M> for Message<M> 2024-05-21 01:29:50 +02:00
Ashley Wulber
107eeb5f1f fix: shrink applet text 2024-05-17 20:58:56 +02:00
Michael Aaron Murphy
1355588723 improv(button): specialize button for cosmic, and apply alpha to header buttons 2024-05-17 20:58:38 +02:00
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
9677b74b89 feat(applet): scale text based on panel setting 2024-05-15 16:19:32 -04: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
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
d54af65a2a refactor: update applet icon sizes 2024-04-15 18:29:57 -04: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
Ashley Wulber
ef050d5b05 chore: update applet icon size and padding 2024-03-08 17:50:01 -05:00
Ashley Wulber
fda17c9d97 fix: update applet button type 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
Ashley Wulber
06c33dcf06 refactor: optional config subscriptions using dbus 2024-01-02 15:12:14 +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
2b9e0c09ee fix: applet updates 2023-12-08 12:02:21 -05:00
Ashley Wulber
7d0ba4dba9 fix: applets feature 2023-12-04 17:53:24 -05: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
Ashley Wulber
405aaf134d fix(applet): set the theme to be the system preference if it is not light or dark 2023-11-13 12:15:15 +01:00
Ashley Wulber
33412998c7 refactor(applet): add padded control 2023-10-24 16:52:18 +02:00
Ashley Wulber
a2bda49152 refactor: add applet button variants and a menu_button helper 2023-10-19 15:10:32 -04:00
Ashley Wulber
589b661752 fix(applet): applet popups should have a 1px border 2023-10-19 10:21:38 -04:00
Ashley Wulber
9ddadd330f fix: applet button styles 2023-10-02 10:59:27 -04:00
Ashley Wulber
5454a01461 fix(applet): use text button style 2023-09-18 19:48:27 +02:00
Eduardo Flores
453cc6588e
fix(applet): styling improvements 2023-09-18 10:37:57 +02:00
Michael Aaron Murphy
8f7b400143
refactor(applet): move applet module to crate root 2023-09-18 07:45:11 +02:00
Ashley Wulber
ce713d9da7 refactor: move applet helpers to cosmic-applets repo 2023-05-31 10:33:46 -04:00