Eduardo Flores
171e697738
improv(menu): add documentation.
2024-03-16 19:00:12 -06:00
Eduardo Flores
0b47efe1de
improv(menu): simplify menu construction.
...
- Added `MenuAction` trait to call the `message` method on button press.
- Added two new methods to construct a MenuTree.
- Added MenuItem enum to represent an action or a separator in a MenuTree.
- Added menu example.
- Moved Modifier enum and KeyBind struct to libcosmic.
- Moved menu_button macro to libcosmic.
2024-03-16 19:00:12 -06:00
Michael Aaron Murphy
9e6d94c7eb
fix(button): use correct paddings for icon buttons
2024-03-15 22:38:49 +01:00
Ashley Wulber
de9d9c20f9
chore: update iced
2024-03-15 15:56:53 -04:00
Ashley Wulber
0917a81652
chore: update iced
2024-03-15 18:48:44 +01:00
Eduardo Flores
5d600c70c2
improv(calendar): simplify message handling
2024-03-15 13:40:31 +01:00
Michael Aaron Murphy
ccb0dbed65
refactor(calendar): add setters for managing selected date logic
2024-03-15 13:40:31 +01:00
Michael Aaron Murphy
d68488de47
feat(widget): add calendar widget
2024-03-15 13:40:31 +01:00
Ashley Wulber
f0585c0126
chore: update libcosmic
2024-03-15 01:10:47 +01:00
Michael Aaron Murphy
bf331cad7f
fix(iced): disable shadows on tiny_skia renderer
2024-03-13 14:05:17 +01:00
Michael Murphy
2d41a9e65d
refactor(widget): rename cosmic_container to layer_container
2024-03-12 16:19:35 +01:00
Ryan Brue
64ecb0ea48
feat: add public function to determine app id matches
2024-03-12 01:36:22 -04:00
Ryan Brue
b4ad96066b
chore: bump freedesktop-desktop-entry
2024-03-12 02:24:42 +01:00
Ashley Wulber
6754aeb0dc
fix: allow filtering out desktop entries with NoDisplay=true
2024-03-11 17:20:33 -04:00
Ashley Wulber
e47684ffdb
refactor: icon styling and headerbar icon styling
...
Headerbar icons are transparent when their window is not focused, but otherwise share the same style as icons with selection. This updates the icon styles to match figma when selected.
2024-03-11 16:26:48 -04:00
Ashley Wulber
6f6eeec0e7
fix: de fallback name check
2024-03-11 10:51:22 -04:00
Ryan Brue
cbda93a514
fix: lowercase startup_wm_class, name fallbacks
2024-03-11 10:24:26 -04:00
Ashley Wulber
ef050d5b05
chore: update applet icon size and padding
2024-03-08 17:50:01 -05:00
Ashley Wulber
52491e08ee
fix(config): check default_path if key_path fails
2024-03-08 14:15:25 -07:00
Ashley Wulber
3e6f314c6b
refactor: support loading a Config exclusively for reading the system settings
2024-03-08 12:23:54 -05:00
Ashley Wulber
d4b5c4f198
chore: update theme defaults
2024-03-08 11:48:12 -05:00
Michael Aaron Murphy
2b23005fbf
fix(segmented_button): hidden new tab button on shrink
2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
26a7e6b0f9
fix(segmented_button): invalid tab offset when width is reduced by nav bar
2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
2ccd3682b4
feat(segmented-button): add maximum_button_width property
2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
372fd4bab7
fix(iced): winit builds failing
2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
d704d90e92
fix(segmented_button): adjust layout and drawing to designs
2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
b3915a9bbc
perf(segmented_button): recreate paragraph only when text changes
2024-03-08 15:18:47 +01:00
Ian Douglas Scott
b9ed3ccf22
chore: Update iced
...
Has fix for subscriptions being run twice. Which was breaking polkit
dialogs in cosmic-osd.
2024-03-07 14:43:13 -08:00
Ashley Wulber
90ab18d008
chore: update iced
...
includes a fix for iced-sctk dnd cancel actions
2024-03-07 15:34:02 -05:00
Michael Aaron Murphy
0ac1c3d7e8
fix(cosmic-config-derive): do not return error when getting config which is not set
2024-03-07 07:13:40 -07:00
Michael Aaron Murphy
422d912634
fix(color_picker): apply color when receiving ActionFinished message
2024-03-07 03:50:20 +01:00
Michael Aaron Murphy
e36f072c5a
fix(color_picker): add padding to recent colors container to prevent scroller overlap
2024-03-07 03:50:20 +01:00
Michael Aaron Murphy
73952a463c
fix(color_picker): set min button width of segmented control to 0
2024-03-07 03:50:20 +01:00
Ashley Wulber
801c502c36
chore: update iced and enable clipboard for iced_sctk by default
2024-03-05 14:03:10 -05:00
Ryan Brue
d853b8cda1
fix: include Cargo.toml in .vscode/settings.json
...
This was needed for me to get autocomplete with rust-analyzer for libcosmic
2024-03-05 08:37:19 -07:00
Michael Aaron Murphy
f794c53277
refactor(cosmic-theme): Get ThemeMode version from cosmic config derive
2024-03-05 08:36:43 -07:00
Michael Aaron Murphy
4f07d05ee8
feat(config): add CosmicTk config for configuring window controls
2024-03-05 08:36:43 -07:00
Michael Aaron Murphy
912f0665ef
refactor(cosmic-theme): reorganize background, primary, and secondary container code
2024-03-05 08:35:47 -07:00
Michael Aaron Murphy
ed03565c0d
chore(cosmic-theme): fix linter warnings in derivation module
2024-03-05 08:35:47 -07:00
Michael Aaron Murphy
736eca1150
fix(theme): Container::List has wrong background color on light theme
2024-03-05 08:35:47 -07:00
Michael Aaron Murphy
85898347e2
refactor(theme): create Container::List style variant
2024-03-05 08:35:47 -07:00
Michael Aaron Murphy
db5d989972
refactor(theme): create Container::ContextDrawer style variant
2024-03-05 08:35:47 -07:00
Jeremy Soller
88da3fcc14
Update iced
2024-03-04 15:32:41 -07:00
Jeremy Soller
be00b0ec4b
fix(desktop): split categories by semi-colon terminator
2024-03-04 09:15:09 -07:00
Ashley Wulber
d9228d78c6
refactor: single instance subscription
2024-03-01 21:30:24 -05:00
Ashley Wulber
be0742f209
chore: cleanup
2024-03-01 21:30:24 -05:00
Ashley Wulber
06b46f455b
wip: support desktop portal color-scheme, and accent variables
2024-03-01 21:30:24 -05:00
Ashley Wulber
c390b2614d
wip: support desktop portal color-scheme, and accent variables
2024-03-01 21:30:24 -05:00
Ashley Wulber
ce45af20f8
fix: better diffing of input state
...
this could still be improved, but should probably be refactored.
2024-03-01 15:22:28 -05:00
Ashley Wulber
3e68e39366
refactor: allow opting out of automatic keyboard navigation
2024-03-01 15:22:28 -05:00