gnome-shell/data/theme/gnome-shell-sass/widgets/_quick-settings.scss
Florian Müllner e0c61f53f1 quickSettings: Add menu support to items
Now that the QuickSettingsMenu supports child menus, it is time
to add menu support to quick toggles.

Do that by introducing a QuickSettingsItem parent class with a
construct-only :has-menu property, as that will allow including
menus in items that aren't following the standard icon+label
pattern of QuickToggle (yes, we'll have some of those).

A common parent class also allows us to control the type of
menu that is created. That's important, as we need another
custom menu type to

- constrain the menu's y position to place it underneath
  the source actor

- use open/close animations taylored for this use case

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2393>
2022-08-03 12:41:05 +00:00

32 lines
598 B
SCSS

.quick-settings {
padding: 4 * $base_padding;
}
.quick-settings-grid {
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; }
}
.quick-toggle-menu {
@include card();
padding: 1.5 * $base_padding;
}
.quick-toggle-menu-container {
padding: 2 * $base_padding $base_padding 0;
}