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>
This commit is contained in:
Florian Müllner 2022-07-24 19:29:50 +02:00 committed by Marge Bot
parent 47cb354e6c
commit e5d4984c1b
2 changed files with 79 additions and 2 deletions

View file

@ -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; }
}