Michael Aaron Murphy
b3d550cc5e
feat!(segmented-button): improved interfaces and documentation
...
BREAKING CHANGE: Various type and function names have changed to reflect
themselves better in documentation. Code has been reorganized into
separate modules with a better placement in libcosmic. Most of the
functions, types, and modules now have documentation and examples.
These changes no longer require the `Model` type to define the
data/component type that it stores. The component functionality is now
optional, and it's also possible to associate many components to an item
with one component per type. This has had a side effect of simplifying a
lot of the type signatures in the implementation.
Before, to insert an item into the model, you had to define a
`SegmentedItem` and a `Component` on insert, and get back an ID for that
item. Which makes it difficult to define an item that contains only an
icon or has no components. And requires an extra insert function to
activate the item on insert.
Now, there is a flexible builder-style API for configuring
newly-inserted items in the model. So the complexity for inserting and
retrieving values from the model has decreased significantly
2023-01-19 19:58:31 +01:00
Eduardo Flores
abf8fc96c2
feat(widget): add warning widget
2023-01-17 16:49:52 +01:00
Michael Aaron Murphy
f441a364a6
feat: add keyboard_nav module with unfocus support
2023-01-10 20:49:49 +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
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