Commit graph

497 commits

Author SHA1 Message Date
Michael Aaron Murphy
352bf8e401 improv: use current design for nav bar toggle button 2023-01-10 20:49:49 +01:00
Michael Aaron Murphy
c4bd0fa3d8 feat: Re-orderable positioning of items in segmented button
Calling `model.swap_position(key1, key2)` will swap the positions of
these two items in the model.
2023-01-10 20:49:49 +01:00
Michael Aaron Murphy
a55f41fc42 chore: fix cosmic-sctk with a partial sync of cosmic 2023-01-10 20:49:49 +01:00
Michael Aaron Murphy
29c7444a30 feat: focusable segmented items in segmented button 2023-01-10 20:49:49 +01:00
Michael Aaron Murphy
a89ec01297 chore: Add a few more multi-select examples in the demo 2023-01-10 20:49:49 +01:00
Michael Aaron Murphy
8988b25b6a feat: MultiSelect support for segmented buttons 2023-01-10 20:49:49 +01:00
Michael Aaron Murphy
b1cbcfaf5b refactor: Replace nav bar macros with nav bar widget 2023-01-10 20:49:49 +01:00
Jeremy Soller
a858662f70
Update iced and set cosmic example to use winit_softbuffer 2023-01-06 12:18:16 -07:00
13r0ck
59edb3bbf1 Cosmic example: Add Tab navagation 2023-01-06 10:58:42 -07:00
Michael Aaron Murphy
7d018a2139 feat(settings): global setting for icon theme 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
a736b361a1 ci: add CI for different feature combinations 2023-01-04 05:46:24 +01:00
Victoria Brekenfeld
75687acf2f chore: apply cargo fmt 2023-01-04 05:46:24 +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
Michael Aaron Murphy
0cea2023f8 refactor(cosmic): Separate states across views 2023-01-03 00:12:28 -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
e97c258422 feat: implement SegmentedButton widget 2022-12-28 10:19:03 -05: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
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
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
Jeremy Soller
0681c1edea
Improve responsive layout 2022-12-21 08:58:17 -07:00
Jeremy Soller
dd13b8300c
Adjust padding for nav bar and content 2022-12-21 08:22:52 -07:00
Jeremy Soller
906711b916 Text size/margin adjustments 2022-12-20 17:28:22 -07:00
Jeremy Soller
98815f5131
Add desktop options page 2022-12-20 16:02:44 -07:00
Jeremy Soller
aa7b66c925
WIP navigation demo for subpages on Desktop page 2022-12-20 15:06:01 -07:00
Jeremy Soller
0ad2ffe2d4
Add more pages to example 2022-12-20 14:38:32 -07:00
Jeremy Soller
5359ceb0f8
Update to new iced, use swbuf instead of softbuffer 2022-12-20 09:08:16 -07:00
Jeremy Soller
77c13cb732 Align navbar with new designs 2022-12-19 23:56:02 +01:00
Jeremy Soller
9607d213a1 Use iced_softbuffer in cosmic example 2022-12-19 23:56:02 +01:00
Ashley Wulber
96c8527573 feat: various improvements to window commands and event handling 2022-12-19 23:09:58 +01:00
Michael Aaron Murphy
6e30394270
chore: Rebase Iced 2022-12-19 17:03:13 +01:00
Ashley Wulber
8b1014a754 feat: rectangle tracker container 2022-12-15 00:25:47 +01:00
Ashley Wulber
9957c08a12 update: iced & some deps 2022-12-13 22:31:20 +01:00
Jeremy Soller
e6062d63cc
Make iced a submodule 2022-12-13 08:55:15 -07:00
Ashley Wulber
d888f2bd3b fix: use latest iced & commit hash for sctk 2022-12-13 08:29:37 -07:00
Eduardo Flores
c96c1c3e20
Correct imports for SpinButtonModel and SpinMessage (#27)
I corrected a small issue with some imports for SpinButton.
2022-12-07 05:37:20 +01:00
Michael Aaron Murphy
cb77ca1255
feat: Add on_change input argument to SpinButton 2022-12-07 03:44:57 +01:00