[gnome-software/wip/exalm/upgrade-gradient: 3/3] style: Update default background on upgrade banner
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/exalm/upgrade-gradient: 3/3] style: Update default background on upgrade banner
- Date: Thu, 11 Nov 2021 07:11:41 +0000 (UTC)
commit 46afb104b75943a5fa8395006003e602a5d4ab3d
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Nov 10 17:55:59 2021 +0500
style: Update default background on upgrade banner
Use a colorful gradient that looks less like a placeholder. Vary it
between light and dark.
src/gnome-software.gresource.xml | 1 +
src/style-dark.css | 3 +++
src/style.css | 5 ++---
3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-software.gresource.xml b/src/gnome-software.gresource.xml
index 5d7163faf..9280d81bb 100644
--- a/src/gnome-software.gresource.xml
+++ b/src/gnome-software.gresource.xml
@@ -51,6 +51,7 @@
<file preprocess="xml-stripblanks">gs-upgrade-banner.ui</file>
<file preprocess="xml-stripblanks">org.freedesktop.PackageKit.xml</file>
<file>style.css</file>
+ <file>style-dark.css</file>
<file>style-hc.css</file>
<file preprocess="xml-stripblanks" alias="up-to-date.svg">../data/assets/up-to-date.svg</file>
<file preprocess="xml-stripblanks"
alias="icons/scalable/apps/system-component-addon.svg">../data/icons/system-component-addon.svg</file>
diff --git a/src/style-dark.css b/src/style-dark.css
new file mode 100644
index 000000000..dfc920768
--- /dev/null
+++ b/src/style-dark.css
@@ -0,0 +1,3 @@
+.upgrade-banner-background {
+ background: linear-gradient(to bottom, @green_5, @blue_5);
+}
diff --git a/src/style.css b/src/style.css
index c2835494b..f21b932c9 100644
--- a/src/style.css
+++ b/src/style.css
@@ -300,9 +300,8 @@ star-image {
}
.upgrade-banner-background {
- background: linear-gradient(180deg, shade(@theme_bg_color, 1.0) 0%, shade(@theme_bg_color, 0.9) 100%);
- color: @theme_fg_color;
- border-bottom: 1px solid @borders;
+ background: linear-gradient(to bottom, @green_3, @blue_3);
+ color: white;
}
.upgrade-buttons #button_upgrades_install {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]