From ebaf969a0521cd8ef6465dd704db6a01cdf45203 Mon Sep 17 00:00:00 2001 From: nana-4 Date: Mon, 20 Jan 2020 00:25:51 +0900 Subject: [PATCH] theme: Import widget stylesheets in a reasonable order Instead of alphabetical ordering, sort the widget stylesheets from more global to more local while grouping related things. This helps reduce unintended behaviors and ugly overrides and make styling and debugging easier. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/938 --- data/theme/gnome-shell-sass/_widgets.scss | 62 +++++++++++++---------- 1 file changed, 36 insertions(+), 26 deletions(-) diff --git a/data/theme/gnome-shell-sass/_widgets.scss b/data/theme/gnome-shell-sass/_widgets.scss index 997fb8069..4ff6a122c 100644 --- a/data/theme/gnome-shell-sass/_widgets.scss +++ b/data/theme/gnome-shell-sass/_widgets.scss @@ -5,34 +5,44 @@ // /* WIDGETS */ -@import 'widgets/app-grid'; -@import 'widgets/app-switcher'; -@import 'widgets/buttons'; -@import 'widgets/calendar'; -@import 'widgets/check-box'; -@import 'widgets/corner-ripple'; -@import 'widgets/dash'; -@import 'widgets/dialogs'; + +// Primary widgets @import 'widgets/entries'; -@import 'widgets/hotplug'; -@import 'widgets/ibus-popup'; -@import 'widgets/keyboard'; -@import 'widgets/login-dialog'; -@import 'widgets/looking-glass'; -@import 'widgets/message-list'; -@import 'widgets/notifications'; -@import 'widgets/misc'; -@import 'widgets/network-dialog'; -@import 'widgets/osd'; -@import 'widgets/overview'; -@import 'widgets/panel'; -@import 'widgets/popovers'; -@import 'widgets/screen-shield'; +@import 'widgets/buttons'; +@import 'widgets/check-box'; +@import 'widgets/switches'; +@import 'widgets/slider'; @import 'widgets/scrollbars'; +// Popovers +@import 'widgets/popovers'; +@import 'widgets/calendar'; +@import 'widgets/message-list'; +@import 'widgets/ibus-popup'; +// Notifications +@import 'widgets/notifications'; +@import 'widgets/hotplug'; +// Dialogs +@import 'widgets/dialogs'; +@import 'widgets/network-dialog'; +// OSDs +@import 'widgets/osd'; +@import 'widgets/app-switcher'; +@import 'widgets/workspace-switcher'; +// Panel +@import 'widgets/panel'; +@import 'widgets/corner-ripple'; +// Overview +@import 'widgets/overview'; +@import 'widgets/window-picker'; @import 'widgets/search-entry'; @import 'widgets/search-results'; -@import 'widgets/slider'; -@import 'widgets/switches'; +@import 'widgets/app-grid'; +@import 'widgets/dash'; +// A11y / misc +@import 'widgets/misc'; @import 'widgets/tiled-previews'; -@import 'widgets/window-picker'; -@import 'widgets/workspace-switcher'; +@import 'widgets/keyboard'; +@import 'widgets/looking-glass'; +// Lock / login screens +@import 'widgets/login-dialog'; +@import 'widgets/screen-shield';