[gnome-maps/wip/zoom-ui: 2/2] wip: new zoom control ui



commit 3f08f672af4a7e4e5bedd7a1d03069a4d1422fa1
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Wed Mar 12 09:17:10 2014 +0100

    wip: new zoom control ui

 data/gnome-maps.css                 |   39 +++++++++--------------------------
 data/media/zoom-in-insensitive.png  |  Bin 1686 -> 0 bytes
 data/media/zoom-in.png              |  Bin 2210 -> 0 bytes
 data/media/zoom-out-insensitive.png |  Bin 2210 -> 0 bytes
 data/media/zoom-out.png             |  Bin 2210 -> 0 bytes
 src/gnome-maps.data.gresource.xml   |    4 ---
 src/zoom-control.ui                 |    2 +
 7 files changed, 12 insertions(+), 33 deletions(-)
---
diff --git a/data/gnome-maps.css b/data/gnome-maps.css
index 22e8739..c011c2a 100644
--- a/data/gnome-maps.css
+++ b/data/gnome-maps.css
@@ -12,41 +12,22 @@
        border-radius: 0px;
 }
 
-.zoom-control {
-    background-color: transparent;
-}
-
 .zoom-control GtkButton {
-    background-repeat: no-repeat;
-    opacity: 0.65;
-    border-width: 0;
-    border-image-width: 0;
+    background-color: @theme_bg_color;
+    border-color: @borders;
+    border: 1px solid;
+    border-radius: 0px;
 }
 
 .zoom-control GtkButton:hover {
-    opacity: 0.5;
-}
-
-#zoom-in-button {
-    background-image: url('zoom-in.png');
-    border-top-left-radius: 6px;
-    border-top-right-radius: 6px;
-    border-bottom-left-radius: 0px;
-    border-bottom-right-radius: 0px;
-}
-
-#zoom-in-button:insensitive {
-    background-image: url('zoom-in-insensitive.png');
+    background-color: shade (@theme_bg_color, 1.02);
 }
 
-#zoom-out-button {
-    background-image: url('zoom-out.png');
-    border-top-left-radius: 0px;
-    border-top-right-radius: 0px;
-    border-bottom-left-radius: 6px;
-    border-bottom-right-radius: 6px;
+.zoom-control GtkLabel {
+    color: @theme_fg_color;
+    font: 13;
 }
 
-#zoom-out-button:insensitive {
-    background-image: url('zoom-out-insensitive.png');
+.zoom-control GtkLabel:insensitive {
+    color: @insensitive_fg_color;
 }
diff --git a/src/gnome-maps.data.gresource.xml b/src/gnome-maps.data.gresource.xml
index 6250d60..a5c40d3 100644
--- a/src/gnome-maps.data.gresource.xml
+++ b/src/gnome-maps.data.gresource.xml
@@ -7,9 +7,5 @@
     <file preprocess="xml-stripblanks">search-popup.ui</file>
     <file preprocess="xml-stripblanks">context-menu.ui</file>
     <file alias="application.css">../data/gnome-maps.css</file>
-    <file alias="zoom-in.png">../data/media/zoom-in.png</file>
-    <file alias="zoom-out.png">../data/media/zoom-out.png</file>
-    <file alias="zoom-in-insensitive.png">../data/media/zoom-in-insensitive.png</file>
-    <file alias="zoom-out-insensitive.png">../data/media/zoom-out-insensitive.png</file>
   </gresource>
 </gresources>
diff --git a/src/zoom-control.ui b/src/zoom-control.ui
index ed86d12..e041c22 100644
--- a/src/zoom-control.ui
+++ b/src/zoom-control.ui
@@ -15,6 +15,7 @@
         <property name="width-request">24></property>
         <property name="height-request">24></property>
         <property name="can_focus">False</property>
+        <property name="label">+</property>
       </object>
     </child>
     <child>
@@ -23,6 +24,7 @@
         <property name="width-request">24></property>
         <property name="height-request">24></property>
         <property name="can_focus">False</property>
+        <property name="label">−</property>
       </object>
     </child>
   </object>


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