Commit graph

26 commits

Author SHA1 Message Date
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
5da0bef35e
wip: update to use cosmic-advanced-text 2023-05-12 13:45:22 -04: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
Michael Aaron Murphy
4fa61eeafd feat(segmented-button): configurable close icons 2023-02-14 14:56:29 -07:00
Michael Aaron Murphy
bfc71514a8 fix(widget/icon): default content_fit to fill 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
2b0227d34f feat(iconsource): additional helper methods for creating handles 2023-01-19 19:58:31 +01:00
Michael Aaron Murphy
352bf8e401 improv: use current design for nav bar toggle button 2023-01-10 20:49:49 +01:00
Michael Aaron Murphy
197d5a1c14 feat: Add IconSource::load method to get icon handles 2023-01-10 20:49:49 +01:00
Michael Aaron Murphy
7d018a2139 feat(settings): global setting for icon theme 2023-01-05 16:57:02 +01:00
Michael Aaron Murphy
043485c68d improv(icon): icon theme set to None by default 2023-01-05 16:57:02 +01:00
Michael Aaron Murphy
38f9de4405 improv(icon): IconSource paths now stored as Cow<Path> 2023-01-05 16:57:02 +01:00
Victoria Brekenfeld
75687acf2f chore: apply cargo fmt 2023-01-04 05:46:24 +01:00
Michael Aaron Murphy
dcbde3b1f2
chore: Apply clippy lints 2022-12-23 15:10:13 +01:00
Ashley Wulber
d6800f7716
feat!: Icon support for SVGs and Images w/ IconSource 2022-12-17 01:25:49 +01:00
Michael Aaron Murphy
d13415713c
fix: Remove static-rc due to debug assertions 2022-12-06 23:11:59 +01:00
Ashley Wulber
9796fa9f15
Merge branch 'cosmic-design-system' into sctk-cosmic-design-system 2022-12-06 17:03:31 -05:00
Michael Aaron Murphy
37f978d1b3
wip: Various refactorings and improvements 2022-12-06 16:14:39 +01:00
Ashley Wulber
a8c753d429
feat: transparent button style 2022-11-17 20:49:20 -05:00
Ashley Wulber
3850def414
image icon 2022-11-17 18:07:57 -05:00
Michael Aaron Murphy
4a899189e6 feat: Themable SVGs, applied to window controls 2022-11-01 16:07:51 +01:00
Eduardo Flores
7743d0d084 Implemented Expander
- Updated example to show behavior
- Created styles for Expander and ExpanderRow
- Simpler implementation of `ExpanderRow`
- Deleted `ExpanderData` and replaced it with `ExpanderRow`
- Every row can now have child rows.
- Ran cargo fmt.
- Deleted settings example
- Added expander to cosmic example
- Expander icons now render

ListBox partially implemented
2022-10-13 11:42:13 +02:00
Jeremy Soller
bfcaf829eb
Move more code to libcosmic 2022-09-30 09:51:00 -06:00
Jeremy Soller
5ad54bd3b1
Move implementations from example to libcosmic 2022-09-30 09:35:55 -06:00