Ashley Wulber
f433b3dc20
fix: make rectangle_tracker subscription only return update if there is some
2023-05-15 14:22:07 -04:00
Ashley Wulber
0d708f4003
merge master
2023-05-12 13:46:06 -04:00
Ashley Wulber
e16c6f0821
re-export iced_runtime & iced_widget
2023-05-12 13:45:48 -04:00
Ashley Wulber
8149faca4d
cleanup
2023-05-12 13:45:44 -04:00
Ashley Wulber
9316537d64
feat: hash icon width and height
2023-05-12 13:45:44 -04:00
Ashley Wulber
ba41a48971
feat: add focus style to button
2023-05-12 13:45:43 -04:00
Ashley Wulber
eb0fcf5278
feat: helper for loading fonts
2023-05-12 13:45:42 -04:00
Ashley Wulber
2a628b8431
fix: spin button styling & spacing
2023-05-12 13:45:41 -04:00
Ashley Wulber
f3206b1620
fix: line height and spacing for segmented button and update to get svg fix
2023-05-12 13:45:41 -04:00
Ashley Wulber
5da0bef35e
wip: update to use cosmic-advanced-text
2023-05-12 13:45:22 -04:00
Ian Douglas Scott
98ec1bbd48
Add a Popover widget, that shows a widget in an overlay ( #100 )
...
This serves a similar purpose to `GtkPopover`. It takes two widgets, one
to show normally and one to show in an overlay.
This should basically work, though more options could be added here.
2023-05-11 13:29:05 -07:00
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
Ian Douglas Scott
c878e24465
Fix build on Windows/non-Unix
...
We'll need libcosmic to work on Windows and macOS if we want to use it
in the Keyboard Configurator.
`freedesktop-icons` doesn't seem to build on Windows, so only use it
on Unix systems. It does seem to build on macOS, so leave it as a
dependency there. A good solution for icon bundling on macOS/Windows will
need to be figured out at some point.
2023-04-25 06:20:20 -06:00
Ashley Wulber
b510b89b98
fix(entry): entry bg alpha typo & border radius fixes
2023-03-03 11:28:32 -05:00
Ashley Wulber
b35af255b4
refactor(container): make layer optional and export as container
2023-02-28 12:26:38 -07:00
Ashley Wulber
844aeba379
refactor(theme): make Theme Copy
2023-02-28 12:26:38 -07:00
Ashley Wulber
3245ff1b0e
fix: applet & cosmic-sctk example
2023-02-28 12:26:38 -07:00
Ashley Wulber
e279566481
fix(button): button link text should be accent color
2023-02-28 12:26:38 -07:00
Ashley Wulber
13aa5f88cb
feat(theme): export cosmic-theme & add CosmicContainers to example
2023-02-28 12:26:38 -07:00
Ashley Wulber
cbb21932d8
feat(theme): use cosmic-theme
2023-02-28 12:26:38 -07:00
Ashley Wulber
becdbb6eb3
wip: use CosmicContainer
2023-02-28 12:26:38 -07:00
Ashley Wulber
b0d6c29ab1
cleanup
2023-02-28 12:26:38 -07:00
Ashley Wulber
a7097dfb13
fix(theme): applets
2023-02-28 12:26:38 -07:00
Ashley Wulber
4eac5c6839
fix(theme): better progress bar colors and update cosmic-theme
2023-02-28 12:26:38 -07:00
Ashley Wulber
d981eb4c4e
wip(theme): remove palette
2023-02-28 12:26:38 -07:00
Ashley Wulber
ccca0e5193
fix(applet): appearance
2023-02-28 12:26:38 -07:00
Ashley Wulber
a449a52dee
wip(theme): use transparent overlays for component colors where possible
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
Michael Aaron Murphy
8232e1d249
fix(settings): wrong title text size for control
2023-02-16 06:22:30 +01:00
Michael Aaron Murphy
eb519782ac
improv(segmented-button): extra padding for close icon
2023-02-14 14:56:29 -07:00
Michael Aaron Murphy
75e80857e2
feat(segmented-button): manually-definable icon colors
2023-02-14 14:56:29 -07:00
Michael Aaron Murphy
4fa61eeafd
feat(segmented-button): configurable close icons
2023-02-14 14:56:29 -07:00
Michael Aaron Murphy
843919e44f
feat(segmented-button): configurable font size
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
b79fa9d2a9
fix(settings): set proper font sizes
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
bfc71514a8
fix(widget/icon): default content_fit to fill
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
e4280dd381
feat(executor): add multi::Executor
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
cc21b9baa1
feat(executor): add cosmic::executor::Default
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
a1b3d6ec38
feat(widget): add COSMIC search widget
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
ace16b3bc0
fix(headerbar): handle empty title string
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
332f10add7
improv(headerbar): pack with 8 spacing
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
8fc3d4f0c1
improv(icon): default to ContentFit::ScaleDown
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
18a21937b4
feat(settings): settings item builder API
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
4b7509e1c3
feat(theme): TextInput::Search style
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
9a095e4d94
feat(divider): add functions for divider style variants of a Rule
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
b3a3c9c29a
feat(widget): add text function with Cow<str> input
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
f81a06bc4a
feat(keyboard-nav): add Escape and Search messages
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
ff1de78aa8
fix(keyboard-nav): text input focus lost on click
2023-01-30 21:57:24 +01:00
Michael Aaron Murphy
e9766389c4
fix(segmented-button): hover style not being applied
2023-01-19 22:32:58 +01:00
Michael Aaron Murphy
046dd49438
feat(spin-button): support fraction::Decimal as model input
2023-01-19 19:58:31 +01:00
Michael Aaron Murphy
ccc9b60955
feat!(spin-button): pass label rather than model to widget
2023-01-19 19:58:31 +01:00