[gnome-software] Make the star widget match the mockups



commit 10d4b959a6e1e31804b0a487200a061f1ae1f49a
Author: Richard Hughes <richard hughsie com>
Date:   Fri Oct 11 20:27:48 2013 +0100

    Make the star widget match the mockups

 src/gs-star-widget.ui |   14 +++++---------
 src/gtk-style.css     |   10 ++++++++++
 2 files changed, 15 insertions(+), 9 deletions(-)
---
diff --git a/src/gs-star-widget.ui b/src/gs-star-widget.ui
index 04adcb9..0f4e18c 100644
--- a/src/gs-star-widget.ui
+++ b/src/gs-star-widget.ui
@@ -9,13 +9,12 @@
         <property name="can_focus">False</property>
         <property name="halign">center</property>
         <property name="valign">center</property>
-        <property name="spacing">6</property>
+        <property name="spacing">1</property>
         <child>
           <object class="GtkButton" id="button1">
             <property name="visible">True</property>
             <style>
-              <class name="child"/>
-              <class name="tile"/>
+              <class name="star"/>
             </style>
             <child>
               <object class="GtkImage" id="image1">
@@ -34,8 +33,7 @@
           <object class="GtkButton" id="button2">
             <property name="visible">True</property>
             <style>
-              <class name="child"/>
-              <class name="tile"/>
+              <class name="star"/>
             </style>
             <child>
               <object class="GtkImage" id="image2">
@@ -54,8 +52,7 @@
           <object class="GtkButton" id="button3">
             <property name="visible">True</property>
             <style>
-              <class name="child"/>
-              <class name="tile"/>
+              <class name="star"/>
             </style>
             <child>
               <object class="GtkImage" id="image3">
@@ -74,8 +71,7 @@
           <object class="GtkButton" id="button4">
             <property name="visible">True</property>
             <style>
-              <class name="child"/>
-              <class name="tile"/>
+              <class name="star"/>
             </style>
             <child>
               <object class="GtkImage" id="image4">
diff --git a/src/gtk-style.css b/src/gtk-style.css
index 10383b0..a9e69dd 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -64,3 +64,13 @@ GtkNotebook.main-notebook-software > GtkScrolledWindow {
 .image-list {
        background-color: transparent;
 }
+
+.button.star {
+       -GtkWidget-focus-padding: 0;
+       background-color: transparent;
+       background-image: none;
+       border-image: none;
+       border-radius: 0;
+       border-width: 0px;
+       padding: 0;
+}


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