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




commit cee4743c7d2c7f4b66e6a38d989f65fb409d6629
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 2da96f1db..eaef561ab 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -276,7 +276,7 @@ _get_upgrade_css_background (guint version)
        if (g_file_test (filename2, G_FILE_TEST_EXISTS))
                return g_strdup_printf ("url('file://%s')", filename2);
 
-       return g_strdup ("url('file://" DATADIR "/gnome-software/upgrade-bg.png')");
+       return NULL;
 }
 
 static gint


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