diff options
author | Florian Müllner <fmuellner@gnome.org> | 2022-07-30 02:17:15 +0200 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2022-08-10 16:28:30 +0200 |
commit | 3e7228735e0783eeb6bf1751f9b52c2fe6839699 (patch) | |
tree | 3cbe2960d21c6a989818378ba154bef86efd9d5e | |
parent | aa1c8da2c111c401a89f786d12acf12cf3db0c2d (diff) | |
download | gnome-shell-sass-3e7228735e0783eeb6bf1751f9b52c2fe6839699.tar.gz |
status/system: Port to quick settings
This port is a bit messier than the previous ones, because the
existing menu section translates less directly to the new UI,
which uses a row of individual toggles for settings, lock and
shutdown.
In order to not complicate the grid layout further by supporting
rows with a different number of columns than the overall grid and
children at their natural size, create a custom, non-reactive
SystemItem item that spans an entire row, and contains the individual
toggles.
This works quite well, even with the shutdown item that uses a menu
for the various actions.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2393>
-rw-r--r-- | widgets/_quick-settings.scss | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/_quick-settings.scss b/widgets/_quick-settings.scss index 664f24c..82d88b4 100644 --- a/widgets/_quick-settings.scss +++ b/widgets/_quick-settings.scss @@ -83,3 +83,7 @@ .quick-toggle-menu-container { padding: 2 * $base_padding $base_padding 0; } + +.quick-settings-system-item { + & > StBoxLayout { spacing: 2 * $base_padding; } +} |