Commit graph

559 commits

Author SHA1 Message Date
Michael Aaron Murphy
37f978d1b3
wip: Various refactorings and improvements 2022-12-06 16:14:39 +01:00
Ashley Wulber
0f857b18ea
fix: allow default popup positioner to be constrained 2022-12-05 16:54:22 -05:00
Ashley Wulber
4788693027
fix: qualigy path 2022-12-01 23:31:37 -05:00
Ashley Wulber
a8c753d429
feat: transparent button style 2022-11-17 20:49:20 -05:00
Ashley Wulber
3850def414
image icon 2022-11-17 18:07:57 -05:00
Ashley Wulber
6f17328eb1
refactor: accept icon name, and style in icon_button 2022-11-17 16:45:09 -05:00
Ashley Wulber
33779b8652
wip: popup helpers 2022-11-15 23:11:48 +01:00
Ashley Wulber
c48fca40fe
fix: typo 2022-11-15 11:30:42 +01:00
Ashley Wulber
8d4e7e1cf1
refactor: accept size in popup helper and add offset 2022-11-15 11:22:27 +01:00
Ashley Wulber
9174e42099
fix: correctly align the container for popups 2022-11-14 16:58:04 +01:00
Ashley Wulber
00eed9c741
feat: popup container helper 2022-11-14 16:33:05 +01:00
Ashley Wulber
49f0f34270
dependencies 2022-11-14 00:38:57 +01:00
Ashley Wulber
9260ee87e1
helpers 2022-11-12 01:55:37 +01: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
Michael Aaron Murphy
702ea033af fix: Navigation button theming 2022-11-01 18:13:00 +01:00
Michael Aaron Murphy
4a899189e6 feat: Themable SVGs, applied to window controls 2022-11-01 16:07:51 +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
Jeremy Soller
621febe95d
Expose iced_native and iced_style 2022-10-18 10:07:32 -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
Michael Aaron Murphy
59d1b4c38d
feat: Add minimize window support to headerbar 2022-10-11 15:34:30 +02:00
Michael Aaron Murphy
0365737908
feat: Window maximize support, including double cick on headerbar 2022-10-09 16:39:10 +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
b092157f26 Remove empty navbar option 2022-10-09 12:56:47 +02:00
Eduardo Flores
06af4ec608 Fixed a layout error 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
f5ccd15761 Add padding to the header bar 2022-10-07 14:06:27 +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
Eduardo Flores
8b73478c57 Made the navigation bar scrollable
- Added padding to the entries to avoid collisioning with 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
Michael Aaron Murphy
b848931920
feat: Add HeaderBar widget 2022-10-07 05:20:43 +02:00
Jeremy Soller
924bd4b1ea
Font matching support, choose font which has the most hits 2022-10-03 16:06:44 -06:00
Jeremy Soller
f03a75d75f
Add text shaping example 2022-10-03 11:45:46 -06:00
Jeremy Soller
a59a4de79b
Use cosmic-theme values for nav and list styles 2022-09-30 16:24:09 -06:00
Jeremy Soller
a6bf04ea33
Responsive nav bar 2022-09-30 12:26:14 -06:00
Jeremy Soller
472135df09
Simplify nav button and add pick list 2022-09-30 11:14:44 -06:00
Jeremy Soller
153437b3b0
Add list_row macro to simplify alternative list items 2022-09-30 11:04:56 -06:00
Jeremy Soller
f09a3109e8
Simplify use of list item 2022-09-30 10:53:50 -06:00
Jeremy Soller
ae3f5b9b2e
List hierarchy changes 2022-09-30 10:38:31 -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
Jeremy Soller
699e474427
Add iced cosmic example 2022-09-30 08:55:37 -06:00
Ashley Wulber
167b92f084
refactor: make x & layer-shell features not default 2022-09-07 17:44:45 -04:00
Ashley Wulber
e2b4990591
cleanup 2022-08-22 16:31:22 -04:00