From a76278a91693d1489614d856c12a7f4c76d29927 Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Tue, 23 Jan 2018 00:00:38 +0100 Subject: [PATCH] Make lightdm-gtk-greeter's restart button blue (fixes #206) --- gtk-3.0/_lightdm-gtk-greeter.scss | 29 ++++------------------- gtk-3.0/gtk-contained.css | 38 ++++++++++++------------------- 2 files changed, 19 insertions(+), 48 deletions(-) diff --git a/gtk-3.0/_lightdm-gtk-greeter.scss b/gtk-3.0/_lightdm-gtk-greeter.scss index a4b2be2c..5b6de2a9 100644 --- a/gtk-3.0/_lightdm-gtk-greeter.scss +++ b/gtk-3.0/_lightdm-gtk-greeter.scss @@ -40,10 +40,11 @@ $variant: 'light'; button { padding: 3px 15px; - /*********************** - * login/unlock button * - ***********************/ - &#login_button { + /************************************ + * login/unlock and restart buttons * + ************************************/ + &#login_button, + &#restart_button { border-color: shade($selected_bg_color, 0.8); background-image: linear-gradient(to bottom, shade($selected_bg_color, 1.02), @@ -83,26 +84,6 @@ $variant: 'light'; ); } } - /****************** - * restart button * - ******************/ - &#restart_button { - border-color: shade($warning_color, 0.8); - background-image: linear-gradient(to bottom, - shade($warning_color, 1.02), - shade($warning_color, 0.95) 90%, - shade($warning_color, 0.90) - ); - color: $selected_fg_color; - &:hover,&:active { - border-color: shade($warning_color, 0.7); - background-image: linear-gradient(to bottom, - shade($warning_color, 1.12), - shade($warning_color, 1.05) 90%, - shade($warning_color, 1.00) - ); - } - } } } diff --git a/gtk-3.0/gtk-contained.css b/gtk-3.0/gtk-contained.css index c1b530d7..54d69600 100644 --- a/gtk-3.0/gtk-contained.css +++ b/gtk-3.0/gtk-contained.css @@ -4573,26 +4573,29 @@ XfdesktopIconView.view { .lightdm-gtk-greeter #shutdown_dialog button, .lightdm-gtk-greeter #restart_dialog button { padding: 3px 15px; - /*********************** - * login/unlock button * - ***********************/ + /************************************ + * login/unlock and restart buttons * + ************************************/ /******************* * shutdown button * - *******************/ - /****************** - * restart button * - ******************/ } - .lightdm-gtk-greeter #login_window button#login_button, + *******************/ } + .lightdm-gtk-greeter #login_window button#login_button, .lightdm-gtk-greeter #login_window button#restart_button, .lightdm-gtk-greeter #shutdown_dialog button#login_button, - .lightdm-gtk-greeter #restart_dialog button#login_button { + .lightdm-gtk-greeter #shutdown_dialog button#restart_button, + .lightdm-gtk-greeter #restart_dialog button#login_button, + .lightdm-gtk-greeter #restart_dialog button#restart_button { border-color: shade(#398ee7, 0.8); background-image: linear-gradient(to bottom, shade(#398ee7, 1.02), shade(#398ee7, 0.95) 90%, shade(#398ee7, 0.9)); color: #ffffff; } - .lightdm-gtk-greeter #login_window button#login_button:hover, .lightdm-gtk-greeter #login_window button#login_button:active, + .lightdm-gtk-greeter #login_window button#login_button:hover, .lightdm-gtk-greeter #login_window button#login_button:active, .lightdm-gtk-greeter #login_window button#restart_button:hover, .lightdm-gtk-greeter #login_window button#restart_button:active, .lightdm-gtk-greeter #shutdown_dialog button#login_button:hover, .lightdm-gtk-greeter #shutdown_dialog button#login_button:active, + .lightdm-gtk-greeter #shutdown_dialog button#restart_button:hover, + .lightdm-gtk-greeter #shutdown_dialog button#restart_button:active, .lightdm-gtk-greeter #restart_dialog button#login_button:hover, - .lightdm-gtk-greeter #restart_dialog button#login_button:active { + .lightdm-gtk-greeter #restart_dialog button#login_button:active, + .lightdm-gtk-greeter #restart_dialog button#restart_button:hover, + .lightdm-gtk-greeter #restart_dialog button#restart_button:active { border-color: shade(#398ee7, 0.7); background-image: linear-gradient(to bottom, shade(#398ee7, 1.12), shade(#398ee7, 1.05) 90%, shade(#398ee7, 1)); } .lightdm-gtk-greeter #login_window button#shutdown_button, @@ -4608,19 +4611,6 @@ XfdesktopIconView.view { .lightdm-gtk-greeter #restart_dialog button#shutdown_button:active { border-color: shade(#cc0000, 0.7); background-image: linear-gradient(to bottom, shade(#cc0000, 1.12), shade(#cc0000, 1.05) 90%, shade(#cc0000, 1)); } - .lightdm-gtk-greeter #login_window button#restart_button, - .lightdm-gtk-greeter #shutdown_dialog button#restart_button, - .lightdm-gtk-greeter #restart_dialog button#restart_button { - border-color: shade(#f57900, 0.8); - background-image: linear-gradient(to bottom, shade(#f57900, 1.02), shade(#f57900, 0.95) 90%, shade(#f57900, 0.9)); - color: #ffffff; } - .lightdm-gtk-greeter #login_window button#restart_button:hover, .lightdm-gtk-greeter #login_window button#restart_button:active, - .lightdm-gtk-greeter #shutdown_dialog button#restart_button:hover, - .lightdm-gtk-greeter #shutdown_dialog button#restart_button:active, - .lightdm-gtk-greeter #restart_dialog button#restart_button:hover, - .lightdm-gtk-greeter #restart_dialog button#restart_button:active { - border-color: shade(#f57900, 0.7); - background-image: linear-gradient(to bottom, shade(#f57900, 1.12), shade(#f57900, 1.05) 90%, shade(#f57900, 1)); } .lightdm-gtk-greeter #content_frame { padding-bottom: 14px; } .lightdm-gtk-greeter #login_window menu {