summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2022-07-24 19:29:50 +0200
committerFlorian Müllner <fmuellner@gnome.org>2022-08-10 16:28:30 +0200
commit67a5e3b1f7af4b81bc185dec62db7c996b2804d8 (patch)
tree401add287241ab8840e72f50e7e48984a28c9a97
parent25ca6af13ec368bcbf6bfe09b7c32d1d7395beab (diff)
downloadgnome-shell-sass-67a5e3b1f7af4b81bc185dec62db7c996b2804d8.tar.gz
quickSettings: Introduce QuickSettingsMenu
The quick settings menu is a popover that arranges items in a reflowing, homogeneous grid. Grid children may span multiple columns, but not rows. For now the QuickSettingsMenu that contains the grid is just a convenience wrapper around the layout manager that does the heavy lifting. The two will become more intertwined when we add support for menu toggles though, so the custom menu type is unfortunately needed. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2392>
-rw-r--r--_widgets.scss1
-rw-r--r--widgets/_quick-settings.scss8
2 files changed, 9 insertions, 0 deletions
diff --git a/_widgets.scss b/_widgets.scss
index 4ed082f..875baf5 100644
--- a/_widgets.scss
+++ b/_widgets.scss
@@ -33,6 +33,7 @@
// Panel
@import 'widgets/panel';
@import 'widgets/corner-ripple';
+@import 'widgets/quick-settings';
// Overview
@import 'widgets/overview';
@import 'widgets/window-picker';
diff --git a/widgets/_quick-settings.scss b/widgets/_quick-settings.scss
new file mode 100644
index 0000000..66a0ed3
--- /dev/null
+++ b/widgets/_quick-settings.scss
@@ -0,0 +1,8 @@
+.quick-settings {
+ padding: 4 * $base_padding;
+}
+
+.quick-settings-grid {
+ spacing-rows: 3 * $base_padding;
+ spacing-columns: 2 * $base_padding;
+}