[gnome-software/1205-reviews-ratings-are-rounded-to-integer-stars: 17/17] gs-review-histogram: Use the new GsStarImage instead of the theme icon
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1205-reviews-ratings-are-rounded-to-integer-stars: 17/17] gs-review-histogram: Use the new GsStarImage instead of the theme icon
- Date: Mon, 7 Jun 2021 15:40:35 +0000 (UTC)
commit a9adf045ada6acc5830bfc185ebed9676c2c1fb2
Author: Milan Crha <mcrha redhat com>
Date: Mon Jun 7 17:33:38 2021 +0200
gs-review-histogram: Use the new GsStarImage instead of the theme icon
To have the star image consistent everywhere.
src/gs-review-histogram.ui | 90 ++++++++--------------------------------------
src/gtk-style-hc.css | 8 -----
src/gtk-style.css | 5 ---
3 files changed, 15 insertions(+), 88 deletions(-)
---
diff --git a/src/gs-review-histogram.ui b/src/gs-review-histogram.ui
index 11d4c6bff..8c52a018c 100644
--- a/src/gs-review-histogram.ui
+++ b/src/gs-review-histogram.ui
@@ -48,53 +48,33 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
- <object class="GtkImage" id="star5_1">
+ <object class="GsStarImage" id="star5_1">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
<child>
- <object class="GtkImage" id="star5_2">
+ <object class="GsStarImage" id="star5_2">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
<child>
- <object class="GtkImage" id="star5_3">
+ <object class="GsStarImage" id="star5_3">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
<child>
- <object class="GtkImage" id="star5_4">
+ <object class="GsStarImage" id="star5_4">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
<child>
- <object class="GtkImage" id="star5_5">
+ <object class="GsStarImage" id="star5_5">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
</object>
@@ -144,43 +124,27 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
- <object class="GtkImage" id="star4_1">
+ <object class="GsStarImage" id="star4_1">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
<child>
- <object class="GtkImage" id="star4_2">
+ <object class="GsStarImage" id="star4_2">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
<child>
- <object class="GtkImage" id="star4_3">
+ <object class="GsStarImage" id="star4_3">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
<child>
- <object class="GtkImage" id="star4_4">
+ <object class="GsStarImage" id="star4_4">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
</object>
@@ -230,33 +194,21 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
- <object class="GtkImage" id="star3_1">
+ <object class="GsStarImage" id="star3_1">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
<child>
- <object class="GtkImage" id="star3_2">
+ <object class="GsStarImage" id="star3_2">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
<child>
- <object class="GtkImage" id="star3_3">
+ <object class="GsStarImage" id="star3_3">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
</object>
@@ -306,23 +258,15 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
- <object class="GtkImage" id="star2_1">
+ <object class="GsStarImage" id="star2_1">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
<child>
- <object class="GtkImage" id="star2_2">
+ <object class="GsStarImage" id="star2_2">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
</object>
@@ -372,13 +316,9 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
- <object class="GtkImage" id="star1_1">
+ <object class="GsStarImage" id="star1_1">
<property name="visible">True</property>
- <property name="icon_name">starred-symbolic</property>
<property name="sensitive">False</property>
- <style>
- <class name="star-disabled"/>
- </style>
</object>
</child>
</object>
diff --git a/src/gtk-style-hc.css b/src/gtk-style-hc.css
index 52fd38570..95abfed93 100644
--- a/src/gtk-style-hc.css
+++ b/src/gtk-style-hc.css
@@ -215,14 +215,6 @@ star-image {
-GsStarImage-star-bg: #777777;
}
-.star-disabled {
- color: #777777;
-}
-
-.star-disabled:disabled {
- color: #777777;
-}
-
.counter-label {
text-shadow: none;
color: @theme_selected_fg_color;
diff --git a/src/gtk-style.css b/src/gtk-style.css
index 506da0c2d..9ae565469 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -488,11 +488,6 @@ star-image {
-GsStarImage-star-bg: #deddda;
}
-.star-disabled,
-.star-disabled:disabled {
- color: @unfocused_insensitive_color;
-}
-
.counter-label {
text-shadow: none;
color: @theme_selected_fg_color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]