[gtk+] Adwaita: noticiable scale slider active state for the dark variant
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: noticiable scale slider active state for the dark variant
- Date: Sat, 14 Jun 2014 09:31:20 +0000 (UTC)
commit 83bc345b5037b4a917729281707fe3b1dcaa91eb
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Sat Jun 14 11:30:22 2014 +0200
Adwaita: noticiable scale slider active state for the dark variant
gtk/resources/theme/Adwaita/_common.scss | 5 ++++-
gtk/resources/theme/Adwaita/gtk-contained-dark.css | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 551fd81..542728d 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -1249,7 +1249,10 @@ GtkCheckButton.text-button:selected { background-color: transparent; }
border-color: $backdrop_insensitive_color;
}
}
- &:active { border: 1px solid darken($selected_borders_color, 3%); }
+ &:active {
+ border: 1px solid if($variant=='light',darken($selected_borders_color,3%),
+ darken($selected_bg_color,15%));
+ }
&.fine-tune:active { //FIXME: Lapo doesn't like the shrinkage. Bad for touch
border: 4px solid transparent; //margin
//FIXME: there's a square background under the slider
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index c659b3c..3b28903 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -1584,7 +1584,7 @@ GtkCheckButton.text-button:selected {
box-shadow: inset 0 1px rgba(255, 255, 255, 0);
border-color: #454c4c; }
.scale.slider:active {
- border: 1px solid #0c233b; }
+ border: 1px solid #14375d; }
.scale.slider.fine-tune:active {
border: 4px solid transparent;
box-shadow: inset 0 2px rgba(238, 238, 236, 0.1), inset 0 0 0 1px #0c233b; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]