Commit graph

64 commits

Author SHA1 Message Date
7a191cf086 yoda: warning cleanup sweep (dead code + clippy --fix) (squashed)
Squash of 4 yoda commits:
- 84437e21 yoda: libcosmic-yoda dead-code purge (14->0 warnings)
- 999db0a4 yoda: cosmic-theme cleanup (4->0 warnings) — workspace at 0 warnings total
- 4743bb8e yoda: cargo clippy --fix on libcosmic-yoda (115->33 warnings)
- 675f3b59 chore: reduce local stack warnings
2026-05-25 13:07:48 +02:00
Vukašin Vojinović
9c2a86a8f4 chore: add rustfmt config 2026-05-04 11:55:17 -04:00
Vukašin Vojinović
34326b3925 chore(cosmic-theme): move Roundness to libcosmic 2026-05-04 11:55:17 -04:00
Vukašin Vojinović
564ef834ce improv(theme): list_button style
This adds a new `list_button` field to theme, which makes ListItem buttons stay transparent when pressed. It's essentially a mix of `text_button` and `background.component`, without hover highlights (as per designs).
2026-04-28 13:59:25 +02:00
Ashley Wulber
adb3e341fc fix(theme): bright colors for success, warn, destructive 2026-03-25 19:04:30 +01:00
Michael Aaron Murphy
be98b7dd6f
refactor(cosmic-theme): remove recently-added Theme::get_active_with_brightness
The added method was not necessary. Also improves the code in the get_active method.
2026-02-18 14:18:27 +01:00
Vukašin Vojinović
cb288070af chore: cargo fmt 2026-02-17 21:18:55 +01:00
Adil Hanney
a2e903ad94
feat(cosmic-theme): add color schemes for qt apps 2026-02-17 17:39:37 +01:00
Cheong Lau
a27bb5e05d chore: apply clippy suggestions 2025-10-05 04:40:51 +02:00
Vukašin Vojinović
ea349aca82 chore: use std::syncLazyLock
Also migrates workspace members to Rust 2024.
2025-09-03 21:54:46 +02:00
Ashley Wulber
364c0b9381 refactor(theme): .65 opacity for disabled button text 2025-08-26 15:22:22 -06:00
Ashley Wulber
94ee4e1915 theme: fix disabled button 2025-08-26 13:18:23 -06:00
Ashley Wulber
ba2f4b193a fix(theme): control tint colors need to be reversed for light theme 2025-08-20 17:32:49 +02:00
Ashley Wulber
05874e8ea2 fix: theme updates 2025-07-29 16:18:50 -04:00
Ashley Wulber
8c4cb2e54f chore: theme color updates 2025-07-21 22:59:30 +02:00
Vukašin Vojinović
ec7a531539 chore: use with_alpha() where applicable 2025-07-21 10:52:22 -04:00
Ashley Wulber
7748e59ae6 refactor: better method of implementing tinted control colors 2025-07-17 17:04:04 -04:00
Ashley Wulber
0041fc2d12 Revert "refactor: introduce new palette colors for control tint"
This reverts commit b8f9dc6cb0af2115ff0a0ec2ff9d35076ace16b8.
2025-07-17 17:04:04 -04:00
Ashley Wulber
364af2bcdf refactor: introduce new palette colors for control tint
neutral colors will not be tinted anymore
2025-07-17 09:54:46 -04:00
Michael Aaron Murphy
8cf372c9b9
perf: inline public getters/setters, and use non-generic inner functions
To reduce compile-times and avoid some overhead to binary size, this will modify some of our
generic functions to use non-generic inner functions where possible. The inner functions are
marked carefully with `#[inline(never)]` to prevent being inlined by LLVM at their callsites

While looking for generic functions to optimize, I have also taken the opportunity to annotate
public non-generic getters and setters with `#[inline]` to ensure that LLVM will inline them
across crate boundaries. By default, only generic functions are automatically inlined, and
only when enabling fat LTO are constant functions reliably inlined across crate boundaries.
2025-03-21 13:31:34 +01:00
Ashley Wulber
508753ae69 feat: high contrast theme updates 2025-03-10 16:10:32 +01:00
Ashley Wulber
3f25af87a3 refactor: small widget container colors 2025-02-17 15:13:16 +01:00
Ashley Wulber
25bf8f60cc feat: improve accent_text for low contrast accent colors. 2025-02-17 15:13:16 +01:00
Vukašin Vojinović
478f3ead75 fix(palette): remove deprecated colors 2024-10-18 14:04:39 -04:00
Vukašin Vojinović
33c60ed87a fix(theme): update color palette 2024-10-18 14:04:39 -04:00
Vukašin Vojinović
8b37f658e2 fix(small_widget_divider): fix alpha value
This makes this color match the designs, and thus fixes the divider color in the horizontal `segmented_button`.
2024-10-08 17:09:26 -04:00
Vukašin Vojinović
e645dee2f0 fix(header_bar): increase compact height
Increases Compact header height to 40 (from 36), to better accommodate larger widgets (e.g. the search bar). This makes it distinct from the SSD header, which is now addressed by the `_` match case.
Also makes the horizontal header padding fixed at 8, so that the app window padding can also be 8.
2024-10-03 15:39:00 +02:00
Vukašin Vojinović
0a34660a80 fix: move density to cosmic_theme 2024-09-23 12:40:22 -04:00
Piotr
b15ae66ac8 fix: dont omit default preference for light theme 2024-08-26 04:14:35 +02:00
Eleven
084ce30478
feat(theme): GNOME sessions get dark theme preference from gsettings 2024-04-26 16:38:32 +02:00
Michael Aaron Murphy
14bd633356 improv(theme): theme generation improvements 2024-04-24 18:23:56 +02:00
Ashley Wulber
537486a4ab fix(theme): divider color 2024-04-18 18:09:48 -04:00
Ashley Wulber
d4b5c4f198 chore: update theme defaults 2024-03-08 11:48:12 -05: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
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
Ashley Wulber
c390b2614d wip: support desktop portal color-scheme, and accent variables 2024-03-01 21:30:24 -05:00
Ashley Wulber
09cd1a2319 chore(theme): clippy cleanup 2024-02-26 16:50:40 -07:00
Ashley Wulber
a09f4601ee chore: add shade color to theme 2024-02-26 16:50:40 -07:00
Michael Aaron Murphy
366a450977 improv(segmented_button): rework layout, drawing, and styling to fix visual flaws 2024-02-26 19:17:49 +01:00
Jeremy Soller
63802dfcf9 cosmic-config-derive: automatically generate setters 2024-01-12 09:57:08 -07:00
Ashley Wulber
06c33dcf06 refactor: optional config subscriptions using dbus 2024-01-02 15:12:14 +01:00
Ashley Wulber
a4d1b1b651 refactor: cosmic-config granular key updates and remove unused generics from cosmic-theme 2024-01-02 15:12:14 +01:00
Ashley Wulber
18b22905e2 fix: match the button overlays with figma, and if the button is transparent, use the overlay directly for hover and pressed states 2023-10-26 12:21:54 -04:00
Ashley Wulber
7cc791a3f5
feat: add support for dark / light mode switching (#178)
* feat: add support for dark / light mode switching and simultaneouscustom light / dark mode themes

* refactor(color-picker): optional initial color and fallback color

* refactor: used FixedPortion for layout of the settings item

This makes sure that the control always has at least the specified portion of the available space

* refactor: make all members of the ThemeBuilder public

* refactor: add and update palette colors

* fix(theme): typo and derive PartialEq for ThemeBuilder

* fix: update color picker usage

* feat: add more variables to the theme

* fix: radius on headerbar

* fix: Theme CosmicConfigEntry impl

* chore: specify rev of taffy

* fix: theme CosmicConfigEntry missing variables

* fix: apply theme type when theme mode changes

* wip: add plus icon to empty color picker button

* chore: fix rev and imports

* refactor(color-picker): allow custom size for the icon

* refactor(color_picker): make color_button public

* update iced
2023-10-16 16:19:04 -04:00
Michael Aaron Murphy
6acdba28aa
fix(theme): standard button background color 2023-09-18 08:07:31 +02:00
Michael Aaron Murphy
55095abfce chore(cosmic-theme): adjustments for button theming 2023-09-14 01:38:56 +02:00
Ashley Wulber
4f964a4bc8 fix(theme): use overlay colors directly for the text button 2023-08-18 16:47:10 -04:00
Ashley Wulber
20a5227eca refactor: add button components to theme because they have different overlays than others when they are hovered or pressed 2023-08-14 12:31:16 -04:00
Ashley Wulber
ff83f893ef refactor: updates for buttons and checkboxes 2023-08-14 12:31:16 -04:00