summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2022-07-29 15:22:37 +0200
committerFlorian Müllner <fmuellner@gnome.org>2022-08-10 16:28:30 +0200
commitd16a697b517e6221050ce537156063b475a587d2 (patch)
treec7dbc4af8111d7a4c4be198406f0cd81d07476a8
parent8b3bfc8c6aabd1aac145c84f44b0fd1c96810727 (diff)
downloadgnome-shell-sass-d16a697b517e6221050ce537156063b475a587d2.tar.gz
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>
-rw-r--r--widgets/_quick-settings.scss9
1 files changed, 9 insertions, 0 deletions
diff --git a/widgets/_quick-settings.scss b/widgets/_quick-settings.scss
index 8dc5ff8..05d8495 100644
--- a/widgets/_quick-settings.scss
+++ b/widgets/_quick-settings.scss
@@ -20,3 +20,12 @@
.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;
+ }