[gnome-software/gnome-3-20] review row: Use flat buttons instead of a special style class
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-20] review row: Use flat buttons instead of a special style class
- Date: Thu, 30 Jun 2016 13:46:17 +0000 (UTC)
commit b64c913e2a994e5010f97ca44ea0ade78a91eb5a
Author: Kalev Lember <klember redhat com>
Date: Thu Jun 30 13:34:40 2016 +0200
review row: Use flat buttons instead of a special style class
This ensures that they get a raised appearance when hovered and that
they get a pressed appearance when pressed.
https://bugzilla.gnome.org/show_bug.cgi?id=767972
src/gs-review-row.ui | 20 +++++---------------
src/gtk-style.css | 4 ----
2 files changed, 5 insertions(+), 19 deletions(-)
---
diff --git a/src/gs-review-row.ui b/src/gs-review-row.ui
index 21661b0..39a9fed 100644
--- a/src/gs-review-row.ui
+++ b/src/gs-review-row.ui
@@ -121,9 +121,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <style>
- <class name="naked-button"/>
- </style>
+ <property name="relief">none</property>
</object>
<packing>
<property name="expand">False</property>
@@ -137,9 +135,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <style>
- <class name="naked-button"/>
- </style>
+ <property name="relief">none</property>
</object>
<packing>
<property name="expand">False</property>
@@ -153,9 +149,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
- <style>
- <class name="naked-button"/>
- </style>
+ <property name="relief">none</property>
</object>
<packing>
<property name="expand">False</property>
@@ -183,9 +177,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">end</property>
- <style>
- <class name="naked-button"/>
- </style>
+ <property name="relief">none</property>
</object>
<packing>
<property name="expand">False</property>
@@ -200,9 +192,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">end</property>
- <style>
- <class name="naked-button"/>
- </style>
+ <property name="relief">none</property>
</object>
<packing>
<property name="expand">False</property>
diff --git a/src/gtk-style.css b/src/gtk-style.css
index f33d057..1bb1cc5 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -212,10 +212,6 @@ button.star, .button.star {
outline-offset: -1px;
}
-.naked-button {
- all: unset;
-}
-
/* for the review dialog */
.star-enabled {
color: @theme_selected_bg_color;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]