diff options
author | Florian Müllner <fmuellner@gnome.org> | 2022-07-24 19:29:50 +0200 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2022-08-10 16:28:30 +0200 |
commit | 21447dcac301f63fde6fb893fcf9a7ad01c4a2dc (patch) | |
tree | 401ecbb72310eac309135e9f55f751a3ae75e525 | |
parent | 67a5e3b1f7af4b81bc185dec62db7c996b2804d8 (diff) | |
download | gnome-shell-sass-21447dcac301f63fde6fb893fcf9a7ad01c4a2dc.tar.gz |
quickSettings: Add QuickToggle
Most quick settings items are just buttons with icon, label, and
a particular style. While that's easy enough, a dedicated class
with corresponding properties is more convenient.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2392>
-rw-r--r-- | widgets/_quick-settings.scss | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/widgets/_quick-settings.scss b/widgets/_quick-settings.scss index 66a0ed3..8dc5ff8 100644 --- a/widgets/_quick-settings.scss +++ b/widgets/_quick-settings.scss @@ -6,3 +6,17 @@ spacing-rows: 3 * $base_padding; spacing-columns: 2 * $base_padding; } + +.quick-toggle { + border-radius: 99px; + min-width: 11.5em; + max-width: 11.5em; + min-height: 48px; + + &:checked { @include button(default); } + + & > StBoxLayout { spacing: $base_padding; } + + .quick-toggle-label { font-weight: bold; } + .quick-toggle-icon { icon-size: $base_icon_size; } +} |