[gnome-software] Use standard GTK CSS button styles for the license buttons
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Use standard GTK CSS button styles for the license buttons
- Date: Wed, 5 Jul 2017 11:52:26 +0000 (UTC)
commit af35dd29ccf7094aa062f045f59cdc53fe846d5a
Author: Richard Hughes <richard hughsie com>
Date: Wed Jul 5 12:51:28 2017 +0100
Use standard GTK CSS button styles for the license buttons
The logic here is that we want them to look like buttons so people click on
them, rather than just flat colors. Ideally we'd have a 'success-action' made
up from 'success_color' but that requires GTK changes and further design work.
src/gs-details-page.ui | 7 ++-----
src/gtk-style.css | 38 --------------------------------------
2 files changed, 2 insertions(+), 43 deletions(-)
---
diff --git a/src/gs-details-page.ui b/src/gs-details-page.ui
index cacd1a0..37ef4ff 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="details-license-free"/>
+ <class name="suggested-action"/>
</style>
</object>
<packing>
@@ -1092,7 +1092,7 @@
<property name="receives_default">True</property>
<property name="halign">start</property>
<style>
- <class name="details-license-nonfree"/>
+ <class name="destructive-action"/>
</style>
</object>
<packing>
@@ -1108,9 +1108,6 @@
<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 c259469..a0d1273 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -53,23 +53,6 @@
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;
@@ -82,27 +65,6 @@
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]