[caribou: 3/15] Add scanning style to CSS



commit 3e198106c13d3a43adc70e3777006f3e9c46250f
Author: Eitan Isaacson <eitan monotonous org>
Date:   Sat May 28 12:57:25 2011 -0700

    Add scanning style to CSS

 data/antler/style.css |   33 +++++++++++++++++++++++++++++++--
 1 files changed, 31 insertions(+), 2 deletions(-)
---
diff --git a/data/antler/style.css b/data/antler/style.css
index 075bceb..460b123 100644
--- a/data/antler/style.css
+++ b/data/antler/style.css
@@ -4,6 +4,10 @@
 @define-color keyboard_color2 darker(#000e29);
 @define-color key_text_color #ffffff;
 @define-color insensitive_color #888888;
+ define-color key_scan_color1 #dd0000;
+ define-color key_scan_color2 darker(@key_scan_color1);
+ define-color group_scan_color1 #00aa00;
+ define-color group_scan_color2 darker(@group_scan_color1);
 
 .antler-keyboard-button {
   border-width: 0;
@@ -30,8 +34,8 @@
   background-image: -gtk-gradient (linear,
 				     left top,
 				     left bottom,
-				     from (shade(@button_color1, 1.4)),
-				     to (shade(@button_color2, 1.4)));
+				     from (shade(@button_color2, 1.4)),
+				     to (shade(@button_color1, 1.4)));
 }
 
 .antler-keyboard-button:insensitive { 
@@ -43,6 +47,31 @@
   color: #aaaaaa;
 }
 
+.antler-keyboard-button:selected,
+.antler-keyboard-button:selected:inconsistent { /* scanning */
+  background-image: -gtk-gradient (linear,
+                                     left top,
+                                     left bottom,
+                                     from (@key_scan_color1),
+                                     to (@key_scan_color2));
+}
+
+.antler-keyboard-button:selected:active {
+  background-image: -gtk-gradient (linear,
+				     left top,
+				     left bottom,
+				     from (shade(@key_scan_color2, 1.4)),
+				     to (shade(@key_scan_color1, 1.4)));
+}
+
+.antler-keyboard-button:inconsistent { /* scanning */
+  background-image: -gtk-gradient (linear,
+                                     left top,
+                                     left bottom,
+                                     from (@group_scan_color1),
+                                     to (@group_scan_color2));
+}
+
 .antler-keyboard-window {
 background-image: -gtk-gradient (linear,
   left top,



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