Ian Douglas Scott
b85c504d72
theme: Use boxed functions instead fn pointers ( #99 )
...
This is more general, and necessary if the custom theming is dynamically
generated.
Iced's builtin theme also uses `Box`ed `Fn`, or `Rc` where clone is
required, so this seems reasonable.
Only `Text` is left using `fn`, since it needs to be `Copy`. Hopefully
that can be changed in Iced at some point.
`::custom` methods are added to make these variants a little more
convenient to construct. This replaces a couple `From` implementations,
which are potentially problematic with a generic.
2023-04-28 16:04:57 -07:00
Ashley Wulber
3245ff1b0e
fix: applet & cosmic-sctk example
2023-02-28 12:26:38 -07:00
Ashley Wulber
a7097dfb13
fix(theme): applets
2023-02-28 12:26:38 -07:00
Ashley Wulber
ccca0e5193
fix(applet): appearance
2023-02-28 12:26:38 -07:00
Ian Douglas Scott
2dde95ee42
Add _with_flags() variants to settings helpers ( #85 )
2023-02-20 14:26:31 -08:00
Ashley Wulber
dc4edb2a4d
feat: applet button theme helper
2023-01-05 16:20:33 +01:00
Ashley Wulber
d31c686e9a
fix: limits on popup size and shrink popup container
2022-12-27 21:20:06 +01:00
Ashley Wulber
5d271ae21b
fix: applet feature
2022-12-27 18:11:38 +01:00
Ashley Wulber
5fb8b9d56f
specify rev in cosmic-panel-config & re-export
2022-12-21 14:40:58 -07:00
13r0ck
c46207a993
CosmicAppletHelper: Add window size helper
2022-12-20 20:04:10 -07:00
Ashley Wulber
91e826d8ea
feat: applet-window-settings
2022-12-08 19:02:29 +01:00
Ashley Wulber
5dbb050d48
fix: Updates & fixes the applets helpers
2022-12-07 19:39:11 +01:00
Ashley Wulber
0f857b18ea
fix: allow default popup positioner to be constrained
2022-12-05 16:54:22 -05:00
Ashley Wulber
a8c753d429
feat: transparent button style
2022-11-17 20:49:20 -05:00
Ashley Wulber
6f17328eb1
refactor: accept icon name, and style in icon_button
2022-11-17 16:45:09 -05:00
Ashley Wulber
33779b8652
wip: popup helpers
2022-11-15 23:11:48 +01:00
Ashley Wulber
c48fca40fe
fix: typo
2022-11-15 11:30:42 +01:00
Ashley Wulber
8d4e7e1cf1
refactor: accept size in popup helper and add offset
2022-11-15 11:22:27 +01:00
Ashley Wulber
9174e42099
fix: correctly align the container for popups
2022-11-14 16:58:04 +01:00
Ashley Wulber
00eed9c741
feat: popup container helper
2022-11-14 16:33:05 +01:00
Ashley Wulber
9260ee87e1
helpers
2022-11-12 01:55:37 +01:00