[gnome-software] Use the OSD theme for the upgrade banner buttons
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Use the OSD theme for the upgrade banner buttons
- Date: Wed, 20 Apr 2016 11:49:23 +0000 (UTC)
commit 8439a08e3c4c3e7dee6287f40a222e13b0e74907
Author: Richard Hughes <richard hughsie com>
Date: Wed Apr 20 11:11:40 2016 +0100
Use the OSD theme for the upgrade banner buttons
src/gs-upgrade-banner.ui | 24 ++++++++----------------
src/gtk-style.css | 11 ++++-------
2 files changed, 12 insertions(+), 23 deletions(-)
---
diff --git a/src/gs-upgrade-banner.ui b/src/gs-upgrade-banner.ui
index d1ce4f5..67b0e60 100644
--- a/src/gs-upgrade-banner.ui
+++ b/src/gs-upgrade-banner.ui
@@ -57,6 +57,10 @@
<property name="valign">end</property>
<property name="spacing">12</property>
<property name="margin_top">16</property>
+ <style>
+ <class name="osd"/>
+ <class name="upgrade-buttons"/>
+ </style>
<child>
<object class="GtkButton" id="button_upgrades_help">
<property name="label" translatable="yes">_Learn More</property>
@@ -65,10 +69,7 @@
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
- <property name="relief">none</property>
- <style>
- <class name="upgrade-button"/>
- </style>
+ <property name="relief">normal</property>
</object>
<packing>
<property name="expand">False</property>
@@ -122,10 +123,7 @@
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
- <property name="relief">none</property>
- <style>
- <class name="upgrade-button"/>
- </style>
+ <property name="relief">normal</property>
</object>
<packing>
<property name="expand">False</property>
@@ -140,10 +138,7 @@
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
- <property name="relief">none</property>
- <style>
- <class name="upgrade-button"/>
- </style>
+ <property name="relief">normal</property>
</object>
<packing>
<property name="expand">False</property>
@@ -158,10 +153,7 @@
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
- <property name="relief">none</property>
- <style>
- <class name="upgrade-button"/>
- </style>
+ <property name="relief">normal</property>
</object>
<packing>
<property name="expand">False</property>
diff --git a/src/gtk-style.css b/src/gtk-style.css
index e5d60ce..0f643fc 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -279,16 +279,13 @@ button.star, .button.star {
.upgrade-banner {
background-color: #1c5288;
border-radius: 14px;
- padding: 18px;
+ padding: 0px;
color: @theme_selected_fg_color;
}
-.upgrade-button {
- background-image: none;
- background-color: #5899dc;
- box-shadow: none;
- color: @theme_selected_fg_color;
- border-color: @theme_selected_bg_color;
+.upgrade-buttons {
+ padding: 18px;
+ border-radius: 0px 0px 14px 14px;
}
.upgrade-progressbar {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]