[gnome-software] Revert "Use standard GTK CSS button styles for the license buttons"



commit 8772b6cff31a153353885b91a1ee8fc577985c11
Author: Jakub Steiner <jimmac gmail com>
Date:   Mon Jul 10 23:37:20 2017 +0200

    Revert "Use standard GTK CSS button styles for the license buttons"
    
    This reverts commit af35dd29ccf7094aa062f045f59cdc53fe846d5a.

 src/gs-details-page.ui |    7 +++++--
 src/gtk-style.css      |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-details-page.ui b/src/gs-details-page.ui
index 37ef4ff..cacd1a0 100644
--- a/src/gs-details-page.ui
+++ b/src/gs-details-page.ui
@@ -1075,7 +1075,7 @@
                                         <property name="receives_default">True</property>
                                         <property name="halign">start</property>
                                         <style>
-                                          <class name="suggested-action"/>
+                                          <class name="details-license-free"/>
                                         </style>
                                       </object>
                                       <packing>
@@ -1092,7 +1092,7 @@
                                         <property name="receives_default">True</property>
                                         <property name="halign">start</property>
                                         <style>
-                                          <class name="destructive-action"/>
+                                          <class name="details-license-nonfree"/>
                                         </style>
                                       </object>
                                       <packing>
@@ -1108,6 +1108,9 @@
                                         <property name="can_focus">True</property>
                                         <property name="receives_default">True</property>
                                         <property name="halign">start</property>
+                                        <style>
+                                          <class name="details-license-unknown"/>
+                                        </style>
                                       </object>
                                       <packing>
                                         <property name="expand">False</property>
diff --git a/src/gtk-style.css b/src/gtk-style.css
index a0d1273..c259469 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -53,6 +53,23 @@
        border-radius: 16px;
 }
 
+.details-license-free,
+.details-license-nonfree,
+.details-license-unknown,
+.details-license-free:backdrop,
+.details-license-nonfree:backdrop,
+.details-license-unknown:backdrop {
+       outline-offset: 0;
+       background-image: none;
+       border-image: none;
+       border-radius: 4px;
+       border-width: 0px;
+       padding: 1px 9px;
+       box-shadow: none;
+       text-shadow: none;
+       color: #ffffff;
+}
+
 .content-rating {
        outline-offset: 0;
        background-image: none;
@@ -65,6 +82,27 @@
        text-shadow: none;
 }
 
+.details-license-free, 
+.details-license-free label,
+.details-license-free:backdrop label {
+       color: #ffffff;
+       background-color: #4e9a06;
+}
+
+.details-license-nonfree,
+.details-license-nonfree label,
+.details-license-nonfree:backdrop label {
+       color: #ffffff;
+       background-color: #ee2222;
+}
+
+.details-license-unknown, 
+.details-license-unknown label,
+.details-license-unknown:backdrop label {
+  color: #000000;
+       background-color: #dbdbdb;
+}
+
 .kudo-pill {
        color: @theme_selected_fg_color;
        background-color: shade(@theme_selected_bg_color, 1.1);


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