mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
47cb354e6c
commit
e5d4984c1b
2 changed files with 79 additions and 2 deletions
|
|
@ -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; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue