Commit graph

24 commits

Author SHA1 Message Date
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
de580ffefc feat(widget): add an Orientation::{Horizontal,Vertical} enum 2023-01-03 00:12:28 -05: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
50b8131e21 feat: aspect ratio limiting container 2022-12-18 14:07:08 +01:00
Ashley Wulber
8b1014a754 feat: rectangle tracker container 2022-12-15 00:25:47 +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
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
33779b8652
wip: popup helpers 2022-11-15 23:11:48 +01: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
Eduardo Flores
67ff797018 New approach to the HeaderBar widget 2022-10-09 12:56:47 +02:00
Eduardo Flores
5949eb8d89 Initial implementation of Expander widget 2022-10-09 12:56:47 +02:00
Eduardo Flores
5c859fa1df Widget implementation for NavBar
- Implemented NavBar as a Widget
2022-10-09 12:56:47 +02:00
Eduardo Flores
9210179731 Swapped scrollable for cosmic::scrollable
- Renamed scrollbar to scrollable
2022-10-08 20:59:53 +02:00
Eduardo Flores
4ae03278cc Fixed sidebar responsiveness
- Created new widget `scrollbar` which can adopt COSMIC styling.
- Increased sidebar icon size by 4 pixels to improve visibility.
- Added padding inside the navigation bar to prevent collision with the scrollbar.
- Increased the max width of the condensed navbar for the scrollbar.
2022-10-07 14:06:27 +02:00
Michael Aaron Murphy
89285d78be
fix: Add import for headerbar module 2022-10-07 05:23:26 +02:00
Jeremy Soller
472135df09
Simplify nav button and add pick list 2022-09-30 11:14:44 -06:00
Jeremy Soller
5d25af14a9
Move list view row and toggler to libcosmic 2022-09-30 10:20:03 -06:00
Jeremy Soller
8e42dc46ea
Move list_view to libcosmic 2022-09-30 09:57:11 -06: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