Ashley Wulber
0f417eb89e
chore: update iced
2023-01-05 22:00:40 +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
Ashley Wulber
dc4edb2a4d
feat: applet button theme helper
2023-01-05 16:20:33 +01:00
Victoria Brekenfeld
a36552cba8
chore: update iced
2023-01-05 07:56:42 -07:00
Michael Aaron Murphy
357de5e9be
improv(segmented-button): Express vertical/horizontal variants as a state machine
...
It's difficult to make iterative developments when there's two
nearly-identical types that need to be kept synchronized to any change.
Rust gives us traits so we should use them instead of duplicating code.
This made it easier to make styling and layout improvements to both
instances of the segmented button.
2023-01-04 05:55:27 +01:00
Michael Aaron Murphy
b704eea531
chore(vscode): Fix clippy suggestions
2023-01-04 05:46:24 +01:00
Michael Aaron Murphy
176c30901a
chore: ignore doc tests for segmented button examples
2023-01-04 05:46:24 +01:00
Victoria Brekenfeld
a736b361a1
ci: add CI for different feature combinations
2023-01-04 05:46:24 +01:00
Michael Aaron Murphy
f024bdf2fd
chore: update iced
2023-01-04 05:46:24 +01:00
Victoria Brekenfeld
75687acf2f
chore: apply cargo fmt
2023-01-04 05:46:24 +01:00
Victoria Brekenfeld
cb2b0f7b9a
chore: Do not enable iced/tokio features unconditionally
2023-01-03 22:48:53 +01:00
Michael Aaron Murphy
444e389496
refactor!: separate horizontal and vertical segmented button widgets
...
- Removes the orientation enum in favor of two separate widgets
- Implements the spacing attribute for both widgets
- Demo is updated to display spaced variants of the widgets
2023-01-03 20:29:50 +01:00
Ashley Wulber
3af1da6332
chore(iced): update sctk
2023-01-03 17:16:18 +01:00
Michael Aaron Murphy
0cea2023f8
refactor(cosmic): Separate states across views
2023-01-03 00:12:28 -05:00
Michael Aaron Murphy
ad0443af3f
feat(segmented-button): Vertical orientation functionality
2023-01-03 00:12:28 -05:00
Michael Aaron Murphy
de580ffefc
feat(widget): add an Orientation::{Horizontal,Vertical} enum
2023-01-03 00:12:28 -05:00
Michael Aaron Murphy
052d9f655b
feat(segmented-button): Configurable fonts
2022-12-28 18:34:45 -05:00
Michael Aaron Murphy
5f9ff54352
improv(segmented-button): Documentation improvements with cosmic widget configurations
2022-12-28 18:34:45 -05:00
Michael Aaron Murphy
b13ad0b453
improv(segmented-button): Add more From implementations for ButtonContent
2022-12-28 18:34:45 -05:00
Michael Aaron Murphy
bbac6b9bbf
feat(segmented-button): Selection style and implementation
2022-12-28 18:34:45 -05:00
Michael Aaron Murphy
3454483345
feat(segmented-button): Configurable background and hover styling
2022-12-28 18:34:45 -05:00
Ashley Wulber
f84410608b
feat: continually auto-sized surfaces
2022-12-28 16:53:37 +01:00
Michael Aaron Murphy
e97c258422
feat: implement SegmentedButton widget
2022-12-28 10:19:03 -05:00
Ashley Wulber
01701759c9
fix: make sure that lazy widgets have calculated their element before calling layout
2022-12-27 22:38:49 +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
50dc7c02cc
feat: autosized surface support & update freedesktop-icons & change iced branch to master
2022-12-27 17:27:04 +01:00
Ashley Wulber
55d00bd21a
fix(iced): Switch from swbuf to softbuffer
2022-12-23 18:41:32 +01:00
Michael Aaron Murphy
d732f64fb8
feat: Border radius support for buttons
2022-12-23 16:09:17 +01:00
Michael Aaron Murphy
a39a2518d0
chore: Add vscode config to use clippy on save
2022-12-23 15:10:51 +01:00
Michael Aaron Murphy
dcbde3b1f2
chore: Apply clippy lints
2022-12-23 15:10:13 +01:00
Ashley Wulber
03dfc009fd
fix: Use master_jammy branch of cosmic-panel-config
2022-12-23 14:43:32 +01:00
13r0ck
9880bf2f56
Send Unit type rather than u32
2022-12-22 06:37:41 -07:00
13r0ck
8eff8a33fa
More efficently resize at break point
...
Uses iced `events_with()` to only subscribe to window resize
events. The window width is stored in a static AtomicU32 so
that the subscription can compare to an old window width as to
only send messages when the width crosses the break point.
fix up
2022-12-22 06:37:41 -07:00
Jeremy Soller
bdf5f7da38
Stub for loading backgrounds
2022-12-21 14:49:41 -07:00
Ashley Wulber
5fb8b9d56f
specify rev in cosmic-panel-config & re-export
2022-12-21 14:40:58 -07:00
Jeremy Soller
8c78f23902
Move desktop views into separate file
2022-12-21 14:21:51 -07:00
Jeremy Soller
4ba38dc25d
Use cosmic toggler instead of iced
2022-12-21 13:14:42 -07:00
Jeremy Soller
3f113016c5
Refactor pages into separate files
2022-12-21 13:11:32 -07:00
Jeremy Soller
e4af157406
Add bluetooth page mockup
2022-12-21 12:47:44 -07:00
Jeremy Soller
e21f1ec7b8
Add abouts page, improve settings list padding
2022-12-21 12:18:54 -07:00
Jeremy Soller
343a855816
Add more sub pages
2022-12-21 11:39:49 -07:00
Jeremy Soller
1e1a0159b8
Add sub-page trait, and more sub-pages
2022-12-21 11:08:21 -07:00
Jeremy Soller
e198b5da49
Add link to Desktop on all unimplemented desktop pages
2022-12-21 10:15:25 -07:00
Jeremy Soller
478b399365
Fix nav button padding
2022-12-21 10:06:50 -07:00
Jeremy Soller
fbda6a4f07
Titles on unimplemented pages, fix nav bar padding
2022-12-21 10:04:56 -07:00
Jeremy Soller
ba866da4a6
Simplify page definition
2022-12-21 09:27:10 -07:00
Jeremy Soller
193d032519
Clean up desktop page definition and add notifications
2022-12-21 09:12:18 -07:00