Backport one more patch to add shadows to icons in app tiles as well

This commit is contained in:
Kalev Lember 2019-03-13 13:24:42 +01:00
parent 0e66034692
commit d542c7fe6a
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,58 @@
From 6643b576cd629f1f3a591994623a26930919edb5 Mon Sep 17 00:00:00 2001
From: Kalev Lember <klember@redhat.com>
Date: Wed, 13 Mar 2019 13:21:40 +0100
Subject: [PATCH] Add drop shadows to icons in app tiles as well
In addition to app rows that commit f1431be fixed, the icons in app
tiles also need drop shadows to separate them from white background.
---
src/gs-app-tile.ui | 3 +++
src/gs-popular-tile.ui | 3 +++
src/gs-summary-tile.ui | 3 +++
3 files changed, 9 insertions(+)
diff --git a/src/gs-app-tile.ui b/src/gs-app-tile.ui
index b3510464e..167db8a19 100644
--- a/src/gs-app-tile.ui
+++ b/src/gs-app-tile.ui
@@ -71,6 +71,9 @@
<property name="visible">True</property>
<property name="width-request">64</property>
<property name="height-request">64</property>
+ <style>
+ <class name="icon-dropshadow"/>
+ </style>
</object>
<packing>
<property name="left-attach">0</property>
diff --git a/src/gs-popular-tile.ui b/src/gs-popular-tile.ui
index a6d792e0e..2b1cea33c 100644
--- a/src/gs-popular-tile.ui
+++ b/src/gs-popular-tile.ui
@@ -73,6 +73,9 @@
<property name="visible">True</property>
<property name="valign">center</property>
<property name="vexpand">True</property>
+ <style>
+ <class name="icon-dropshadow"/>
+ </style>
</object>
</child>
<child>
diff --git a/src/gs-summary-tile.ui b/src/gs-summary-tile.ui
index a63bbd6fd..0cb14cabe 100644
--- a/src/gs-summary-tile.ui
+++ b/src/gs-summary-tile.ui
@@ -70,6 +70,9 @@
<property name="visible">True</property>
<property name="width-request">64</property>
<property name="height-request">64</property>
+ <style>
+ <class name="icon-dropshadow"/>
+ </style>
</object>
<packing>
<property name="left-attach">0</property>
--
2.21.0

View File

@ -29,6 +29,7 @@ Source0: https://download.gnome.org/sources/gnome-software/3.32/%{name}-%{vers
# Backported from upstream
Patch0: 0001-app-row-Add-shadow-to-app-icons.patch
Patch1: 0001-Add-drop-shadows-to-icons-in-app-tiles-as-well.patch
%if 0%{?bundled_libdnf}
# libdnf is bundled to be able to match the exact same version that the