[gnome-software] 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] review row: Use flat buttons instead of a special style class
- Date: Thu, 30 Jun 2016 11:38:08 +0000 (UTC)
commit 1e4aafca74eea2350951b8481c3008ac75aea3bf
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 b52d5c7..69869a8 100644
--- a/src/gs-review-row.ui
+++ b/src/gs-review-row.ui
@@ -125,9 +125,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>
@@ -141,9 +139,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>
@@ -157,9 +153,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>
@@ -187,9 +181,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>
@@ -204,9 +196,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 bae1fb4..a996ed8 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -236,10 +236,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]