[gnome-shell-sass] quickSettings: Add menu support to items
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-sass] quickSettings: Add menu support to items
- Date: Wed, 10 Aug 2022 14:28:55 +0000 (UTC)
commit d16a697b517e6221050ce537156063b475a587d2
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jul 29 15:22:37 2022 +0200
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>
widgets/_quick-settings.scss | 9 +++++++++
1 file changed, 9 insertions(+)
---
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;
+ }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]