Commit graph

34 commits

Author SHA1 Message Date
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
8c78f23902
Move desktop views into separate file 2022-12-21 14:21:51 -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
77c13cb732 Align navbar with new designs 2022-12-19 23:56:02 +01:00
Michael Aaron Murphy
6e30394270
chore: Rebase Iced 2022-12-19 17:03:13 +01: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
Michael Aaron Murphy
ef71f7f027
feat(widget): Add SpinButtonModel
Enables convenient handling of spin messages, and specifying steppings, minimum, and maximum values
2022-12-07 03:03:41 +01:00
Eduardo Flores
200784b6c1
feat(widget): Add spin_button widget
Co-authored-by: Michael Aaron Murphy <michael@mmurphy.dev>
2022-12-07 00:17:34 +01:00
Michael Aaron Murphy
f283ab897f
example(cosmic): Re-add checkbox example 2022-12-06 23:18:53 +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
e87fe7056d
fix: use fork of freedesktop_icons 2022-11-22 17:51:09 -05:00
Ashley Wulber
b1c3a52589
wip: example applet 2022-11-11 05:06:54 +01:00
Ashley Wulber
45ccc8c3d2
working examples with iced-sctk 2022-11-10 16:19:13 +01:00
Ashley Wulber
5331cfb61b
depend on iced_sctk + cosmic-design-system changes 2022-11-09 21:33:23 +01:00
Ian Douglas Scott
947532413a Include Cosmic theme in libcosmic, instead of in Iced fork
I think it's best to only include things in the Iced fork that can't be
done without forking Iced, and/or are expected to be merged upstream.
The theme doesn't seem to be either, so it fits more appropriately in
libcosmic.

That should make it easier to keep up with upstream, and it may help to
have all the Cosmic parts in one place.

Based on https://github.com/pop-os/iced commit ad9026e.
2022-10-29 11:14:49 -06:00
Eduardo Flores
07e53ddadd Reimplemented NavigationBar
- Navigation Bar was reimplemented to support sections and pages.
- Created new widget called separator, a horizontal rule with the COSMIC
  theme.
2022-10-13 11:42:13 +02:00
Eduardo Flores
420d3c3dfc Changed the file structure 2022-10-13 11:42:13 +02: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