[gtk+] Adwaita: scales on selected list rows.



commit 4d31b2ca0de8a8e10396b031e3c0a3c6b9948a68
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Wed Sep 2 11:01:08 2015 +0200

    Adwaita: scales on selected list rows.

 gtk/theme/Adwaita/_common.scss           |   18 +++++++++++++++++
 gtk/theme/Adwaita/gtk-contained-dark.css |   31 ++++++++++++++++++++++++++++++
 gtk/theme/Adwaita/gtk-contained.css      |   31 ++++++++++++++++++++++++++++++
 3 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 2978954..8abf21a 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -2302,6 +2302,7 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
       border-color: $backdrop_borders_color;
       background-color: $insensitive_bg_color;
     }
+
     //OSD troughs
     .osd & {
       border-color: $osd_borders_color;
@@ -2325,6 +2326,23 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
       }
     }
   }
+  // scales on selected list rows
+  .list-row:selected & {
+    border-color: $selected_borders_color;
+    &.trough {
+      box-shadow: inset 1px 1px transparentize(black, 0.9);
+      &:backdrop { box-shadow: none; }
+      &.highlight:backdrop { border-color: $selected_borders_color; }
+    }
+    &:insensitive,
+    &.trough.highlight:insensitive {
+      border-color: $selected_bg_color;
+      box-shadow: none;
+      background-color: mix($selected_fg_color, $selected_bg_color, 50%);
+      background-image: none;
+      &:backdrop { background-color: mix($backdrop_selected_fg_color, $selected_bg_color, 50%); }
+    }
+  }
 }
 
 @each $d,$dn in ('', 'horz'),
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 4a01502..553d4a8 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -3074,6 +3074,37 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
       .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:backdrop {
         border-color: rgba(0, 0, 0, 0.7);
         background-image: none; }
+  .list-row:selected .scale, .list-row:selected
+  .scale.scale-has-marks-above.scale-has-marks-below, .list-row:selected
+  .scale.vertical.scale-has-marks-above.scale-has-marks-below {
+    border-color: #0f2b48; }
+    .list-row:selected .scale.trough, .list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below.trough, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough {
+      box-shadow: inset 1px 1px rgba(0, 0, 0, 0.1); }
+      .list-row:selected .scale.trough:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:backdrop {
+        box-shadow: none; }
+      .list-row:selected .scale.trough.highlight:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:backdrop {
+        border-color: #0f2b48; }
+    .list-row:selected .scale:insensitive, .list-row:selected .scale.trough.highlight:insensitive, 
.list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below:insensitive, .list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below:insensitive, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive {
+      border-color: #215d9c;
+      box-shadow: none;
+      background-color: #90aece;
+      background-image: none; }
+      .list-row:selected .scale:insensitive:backdrop, .list-row:selected 
.scale.trough.highlight:insensitive:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below:insensitive:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive:backdrop, 
.list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below:insensitive:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive:backdrop {
+        background-color: #90aece; }
 
 .scale.scale-has-marks-below {
   -GtkScale-slider-length: 20;
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index f8e5619..b9cf139 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -3236,6 +3236,37 @@ GtkCheckButton.text-button, GtkRadioButton.text-button {
       .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:backdrop {
         border-color: rgba(0, 0, 0, 0.7);
         background-image: none; }
+  .list-row:selected .scale, .list-row:selected
+  .scale.scale-has-marks-above.scale-has-marks-below, .list-row:selected
+  .scale.vertical.scale-has-marks-above.scale-has-marks-below {
+    border-color: #184472; }
+    .list-row:selected .scale.trough, .list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below.trough, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough {
+      box-shadow: inset 1px 1px rgba(0, 0, 0, 0.1); }
+      .list-row:selected .scale.trough:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:backdrop {
+        box-shadow: none; }
+      .list-row:selected .scale.trough.highlight:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:backdrop {
+        border-color: #184472; }
+    .list-row:selected .scale:insensitive, .list-row:selected .scale.trough.highlight:insensitive, 
.list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below:insensitive, .list-row:selected
+    .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below:insensitive, .list-row:selected
+    .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive {
+      border-color: #4a90d9;
+      box-shadow: none;
+      background-color: #a5c8ec;
+      background-image: none; }
+      .list-row:selected .scale:insensitive:backdrop, .list-row:selected 
.scale.trough.highlight:insensitive:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below:insensitive:backdrop, .list-row:selected
+      .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive:backdrop, 
.list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below:insensitive:backdrop, .list-row:selected
+      .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive:backdrop {
+        background-color: #a5c8ec; }
 
 .scale.scale-has-marks-below {
   -GtkScale-slider-length: 20;


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