[iagno] Adapt high_contrast.theme to HighContrastInverse.



commit 4480208d8669f52e1fa2a65467977955a73e343a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Feb 16 14:25:45 2016 +0100

    Adapt high_contrast.theme to HighContrastInverse.

 data/high_contrast.svg             |  124 ++++++++++++++++++------------------
 data/themes/high_contrast.theme.in |    6 +-
 src/game-view.vala                 |    2 +-
 3 files changed, 66 insertions(+), 66 deletions(-)
---
diff --git a/data/high_contrast.svg b/data/high_contrast.svg
index 29f43cc..8e82eb9 100644
--- a/data/high_contrast.svg
+++ b/data/high_contrast.svg
@@ -10,99 +10,99 @@
    width="16" height="8">
 
   <!-- line one, first tile is empty -->
-  <circle r="0.8" cy="1" cx="3" style="fill:#000000" />
-  <circle r="0" cy="1" cx="3" style="fill:#ececec" />
+  <circle r="0.8" cy="1" cx="3" style="fill:#3f3f3f" />
+  <circle r="0" cy="1" cx="3" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="1" cx="5" style="fill:#000000" />
-  <circle r="0.02" cy="1" cx="5" style="fill:#ececec" />
+  <circle r="0.8" cy="1" cx="5" style="fill:#3f3f3f" />
+  <circle r="0.02" cy="1" cx="5" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="1" cx="7" style="fill:#000000" />
-  <circle r="0.04" cy="1" cx="7" style="fill:#ececec" />
+  <circle r="0.8" cy="1" cx="7" style="fill:#3f3f3f" />
+  <circle r="0.04" cy="1" cx="7" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="1" cx="9" style="fill:#000000" />
-  <circle r="0.06" cy="1" cx="9" style="fill:#ececec" />
+  <circle r="0.8" cy="1" cx="9" style="fill:#3f3f3f" />
+  <circle r="0.06" cy="1" cx="9" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="1" cx="11" style="fill:#000000" />
-  <circle r="0.08" cy="1" cx="11" style="fill:#ececec" />
+  <circle r="0.8" cy="1" cx="11" style="fill:#3f3f3f" />
+  <circle r="0.08" cy="1" cx="11" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="1" cx="13" style="fill:#000000" />
-  <circle r="0.10" cy="1" cx="13" style="fill:#ececec" />
+  <circle r="0.8" cy="1" cx="13" style="fill:#3f3f3f" />
+  <circle r="0.10" cy="1" cx="13" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="1" cx="15" style="fill:#000000" />
-  <circle r="0.12" cy="1" cx="15" style="fill:#ececec" />
+  <circle r="0.8" cy="1" cx="15" style="fill:#3f3f3f" />
+  <circle r="0.12" cy="1" cx="15" style="fill:#e0e0e0" />
 
   <!-- line 2 -->
-  <circle r="0.8" cy="3" cx="1" style="fill:#000000" />
-  <circle r="0.14" cy="3" cx="1" style="fill:#ececec" />
+  <circle r="0.8" cy="3" cx="1" style="fill:#3f3f3f" />
+  <circle r="0.14" cy="3" cx="1" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="3" cx="3" style="fill:#000000" />
-  <circle r="0.16" cy="3" cx="3" style="fill:#ececec" />
+  <circle r="0.8" cy="3" cx="3" style="fill:#3f3f3f" />
+  <circle r="0.16" cy="3" cx="3" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="3" cx="5" style="fill:#000000" />
-  <circle r="0.18" cy="3" cx="5" style="fill:#ececec" />
+  <circle r="0.8" cy="3" cx="5" style="fill:#3f3f3f" />
+  <circle r="0.18" cy="3" cx="5" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="3" cx="7" style="fill:#000000" />
-  <circle r="0.2" cy="3" cx="7" style="fill:#ececec" />
+  <circle r="0.8" cy="3" cx="7" style="fill:#3f3f3f" />
+  <circle r="0.2" cy="3" cx="7" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="3" cx="9" style="fill:#000000" />
-  <circle r="0.22" cy="3" cx="9" style="fill:#ececec" />
+  <circle r="0.8" cy="3" cx="9" style="fill:#3f3f3f" />
+  <circle r="0.22" cy="3" cx="9" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="3" cx="11" style="fill:#000000" />
-  <circle r="0.24" cy="3" cx="11" style="fill:#ececec" />
+  <circle r="0.8" cy="3" cx="11" style="fill:#3f3f3f" />
+  <circle r="0.24" cy="3" cx="11" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="3" cx="13" style="fill:#000000" />
-  <circle r="0.26" cy="3" cx="13" style="fill:#ececec" />
+  <circle r="0.8" cy="3" cx="13" style="fill:#3f3f3f" />
+  <circle r="0.26" cy="3" cx="13" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="3" cx="15" style="fill:#000000" />
-  <circle r="0.28" cy="3" cx="15" style="fill:#ececec" />
+  <circle r="0.8" cy="3" cx="15" style="fill:#3f3f3f" />
+  <circle r="0.28" cy="3" cx="15" style="fill:#e0e0e0" />
 
   <!-- line 3 -->
-  <circle r="0.8" cy="5" cx="1" style="fill:#000000" />
-  <circle r="0.3" cy="5" cx="1" style="fill:#ececec" />
+  <circle r="0.8" cy="5" cx="1" style="fill:#3f3f3f" />
+  <circle r="0.3" cy="5" cx="1" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="5" cx="3" style="fill:#000000" />
-  <circle r="0.32" cy="5" cx="3" style="fill:#ececec" />
+  <circle r="0.8" cy="5" cx="3" style="fill:#3f3f3f" />
+  <circle r="0.32" cy="5" cx="3" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="5" cx="5" style="fill:#000000" />
-  <circle r="0.34" cy="5" cx="5" style="fill:#ececec" />
+  <circle r="0.8" cy="5" cx="5" style="fill:#3f3f3f" />
+  <circle r="0.34" cy="5" cx="5" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="5" cx="7" style="fill:#000000" />
-  <circle r="0.36" cy="5" cx="7" style="fill:#ececec" />
+  <circle r="0.8" cy="5" cx="7" style="fill:#3f3f3f" />
+  <circle r="0.36" cy="5" cx="7" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="5" cx="9" style="fill:#000000" />
-  <circle r="0.38" cy="5" cx="9" style="fill:#ececec" />
+  <circle r="0.8" cy="5" cx="9" style="fill:#3f3f3f" />
+  <circle r="0.38" cy="5" cx="9" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="5" cx="11" style="fill:#000000" />
-  <circle r="0.4" cy="5" cx="11" style="fill:#ececec" />
+  <circle r="0.8" cy="5" cx="11" style="fill:#3f3f3f" />
+  <circle r="0.4" cy="5" cx="11" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="5" cx="13" style="fill:#000000" />
-  <circle r="0.42" cy="5" cx="13" style="fill:#ececec" />
+  <circle r="0.8" cy="5" cx="13" style="fill:#3f3f3f" />
+  <circle r="0.42" cy="5" cx="13" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="5" cx="15" style="fill:#000000" />
-  <circle r="0.44" cy="5" cx="15" style="fill:#ececec" />
+  <circle r="0.8" cy="5" cx="15" style="fill:#3f3f3f" />
+  <circle r="0.44" cy="5" cx="15" style="fill:#e0e0e0" />
 
   <!-- line 4 -->
-  <circle r="0.8" cy="7" cx="1" style="fill:#000000" />
-  <circle r="0.46" cy="7" cx="1" style="fill:#ececec" />
+  <circle r="0.8" cy="7" cx="1" style="fill:#3f3f3f" />
+  <circle r="0.46" cy="7" cx="1" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="7" cx="3" style="fill:#000000" />
-  <circle r="0.48" cy="7" cx="3" style="fill:#ececec" />
+  <circle r="0.8" cy="7" cx="3" style="fill:#3f3f3f" />
+  <circle r="0.48" cy="7" cx="3" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="7" cx="5" style="fill:#000000" />
-  <circle r="0.5" cy="7" cx="5" style="fill:#ececec" />
+  <circle r="0.8" cy="7" cx="5" style="fill:#3f3f3f" />
+  <circle r="0.5" cy="7" cx="5" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="7" cx="7" style="fill:#000000" />
-  <circle r="0.52" cy="7" cx="7" style="fill:#ececec" />
+  <circle r="0.8" cy="7" cx="7" style="fill:#3f3f3f" />
+  <circle r="0.52" cy="7" cx="7" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="7" cx="9" style="fill:#000000" />
-  <circle r="0.54" cy="7" cx="9" style="fill:#ececec" />
+  <circle r="0.8" cy="7" cx="9" style="fill:#3f3f3f" />
+  <circle r="0.54" cy="7" cx="9" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="7" cx="11" style="fill:#000000" />
-  <circle r="0.56" cy="7" cx="11" style="fill:#ececec" />
+  <circle r="0.8" cy="7" cx="11" style="fill:#3f3f3f" />
+  <circle r="0.56" cy="7" cx="11" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="7" cx="13" style="fill:#000000" />
-  <circle r="0.58" cy="7" cx="13" style="fill:#ececec" />
+  <circle r="0.8" cy="7" cx="13" style="fill:#3f3f3f" />
+  <circle r="0.58" cy="7" cx="13" style="fill:#e0e0e0" />
 
-  <circle r="0.8" cy="7" cx="15" style="fill:#000000" />
-  <circle r="0.6" cy="7" cx="15" style="fill:#ececec" />
+  <circle r="0.8" cy="7" cx="15" style="fill:#3f3f3f" />
+  <circle r="0.6" cy="7" cx="15" style="fill:#e0e0e0" />
 </svg>
diff --git a/data/themes/high_contrast.theme.in b/data/themes/high_contrast.theme.in
index 6ac61a7..8100936 100644
--- a/data/themes/high_contrast.theme.in
+++ b/data/themes/high_contrast.theme.in
@@ -15,9 +15,9 @@ Blue=1.0
 Radius=0
 
 [Mark]
-Red=0.0
-Green=0.0
-Blue=0.0
+Red=0.4
+Green=0.4
+Blue=0.4
 Width=3
 
 [Border]
diff --git a/src/game-view.vala b/src/game-view.vala
index 054ac76..f0fbd47 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -167,7 +167,7 @@ public class GameView : Gtk.DrawingArea
         var defaults = Gtk.Settings.get_default ();
 
         string filename;
-        if (defaults.gtk_theme_name == "HighContrast")
+        if ("HighContrast" in defaults.gtk_theme_name)
             filename = "high_contrast.theme";
         else if (defaults.gtk_application_prefer_dark_theme == true)
             filename = "adwaita.theme";


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