[gnome-shell/T27795: 15/138] Update default background color for login and lock screens



commit ba0817e753c02bd9e951c9176de69b27d08dd5a5
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Mon Sep 11 17:33:02 2017 +0100

    Update default background color for login and lock screens
    
    Use a darker, more blue color to match the new plymouth theme
    for startup and shutdown screens.
    
    https://phabricator.endlessm.com/T15693

 data/theme/gnome-shell-high-contrast.scss |  1 +
 data/theme/gnome-shell-sass/_endless.scss | 18 ++++++++++++++++++
 data/theme/gnome-shell.scss               |  1 +
 data/theme/meson.build                    |  3 ++-
 js/ui/background.js                       |  2 +-
 5 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/gnome-shell-high-contrast.scss b/data/theme/gnome-shell-high-contrast.scss
index 4ac340c92a..b3f05faaea 100644
--- a/data/theme/gnome-shell-high-contrast.scss
+++ b/data/theme/gnome-shell-high-contrast.scss
@@ -3,6 +3,7 @@ $variant: 'light';
 @import "gnome-shell-sass/_high-contrast-colors"; //use gtk colors
 @import "gnome-shell-sass/_drawing";
 @import "gnome-shell-sass/_common";
+@import "gnome-shell-sass/_endless";
 
 //force symbolic icons
 stage {
diff --git a/data/theme/gnome-shell-sass/_endless.scss b/data/theme/gnome-shell-sass/_endless.scss
new file mode 100644
index 0000000000..996a831ce0
--- /dev/null
+++ b/data/theme/gnome-shell-sass/_endless.scss
@@ -0,0 +1,18 @@
+// Endless-specific overrides and definitions
+//
+// All the definitions here will be processed AFTER _common.scss and other SASS
+// source files, meaning that they will override the relevant rules in the
+// generated CSS files, just as doing it in "raw" CSS would do.
+//
+// However, be aware that overriding here the values of SASS variables defined in
+// those other files won't override the end result for rules already declared in
+// those files as well, which will still be using the original value as they are
+// pre-processed before _endless.css. In those cases, modifying those files directly
+// is probably the best way forward (e.g. modifying _common.css for $font-family)).
+
+
+// Lock screen
+
+#lockDialogGroup {
+  background: #12282e url(resource:///org/gnome/shell/theme/noise-texture.png);
+}
diff --git a/data/theme/gnome-shell.scss b/data/theme/gnome-shell.scss
index 3def5896cf..aeb374c581 100644
--- a/data/theme/gnome-shell.scss
+++ b/data/theme/gnome-shell.scss
@@ -3,3 +3,4 @@ $variant: 'dark';
 @import "gnome-shell-sass/_colors"; //use gtk colors
 @import "gnome-shell-sass/_drawing";
 @import "gnome-shell-sass/_common";
+@import "gnome-shell-sass/_endless";
diff --git a/data/theme/meson.build b/data/theme/meson.build
index 22bae3dd2c..0b91966cee 100644
--- a/data/theme/meson.build
+++ b/data/theme/meson.build
@@ -4,7 +4,8 @@ theme_sources = files([
   'gnome-shell-sass/_colors.scss',
   'gnome-shell-sass/_common.scss',
   'gnome-shell-sass/_drawing.scss',
-  'gnome-shell-sass/_high-contrast-colors.scss'
+  'gnome-shell-sass/_high-contrast-colors.scss',
+  'gnome-shell-sass/_endless.scss'
 ])
 
 styles = [
diff --git a/js/ui/background.js b/js/ui/background.js
index 8432abc75e..48b483daf7 100644
--- a/js/ui/background.js
+++ b/js/ui/background.js
@@ -100,7 +100,7 @@ const LoginManager = imports.misc.loginManager;
 const Main = imports.ui.main;
 const Params = imports.misc.params;
 
-var DEFAULT_BACKGROUND_COLOR = Clutter.Color.from_pixel(0x2e3436ff);
+var DEFAULT_BACKGROUND_COLOR = Clutter.Color.from_pixel(0x12282eff);
 
 const BACKGROUND_SCHEMA = 'org.gnome.desktop.background';
 const PRIMARY_COLOR_KEY = 'primary-color';


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]