[gnome-software/1418-drop-os-upgrade-banner-in-favour-of-a-plain-background-colour] fedora-pkgdb-collections: Default to upgrade background gradient, instead of image



commit 088bb9a4fa824cce37d785494a3819c57946b691
Author: Milan Crha <mcrha redhat com>
Date:   Mon Nov 1 11:53:11 2021 +0100

    fedora-pkgdb-collections: Default to upgrade background gradient, instead of image
    
    Let the distro override the system upgrade background image, if they want to,
    but default to no background image, use a plain gradient instead.
    
    Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1418

 data/assets/upgrade-bg.png                          | Bin 15441 -> 17507 bytes
 .../gs-plugin-fedora-pkgdb-collections.c            |   2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/assets/upgrade-bg.png b/data/assets/upgrade-bg.png
index 55118c44f..d48ef8ddb 100644
Binary files a/data/assets/upgrade-bg.png and b/data/assets/upgrade-bg.png differ
diff --git a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c 
b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
index 5865a1995..a170848cb 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -274,7 +274,7 @@ _get_upgrade_css_background (guint version)
        if (g_file_test (filename2, G_FILE_TEST_EXISTS))
                return g_strdup_printf ("url('%s')", filename2);
 
-       return g_strdup ("url('" DATADIR "/gnome-software/upgrade-bg.png')");
+       return NULL;
 }
 
 static gint


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]