e0c61f53f1
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>
32 lines
598 B
SCSS
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;
|
|
}
|