[gnome-software/1225-do-not-allow-distro-upgrades-if-release-art-is-missing: 16/18] gs-plugin-fedora-pkgdb-collections: Change background image size




commit d5075219e7c7cdebad5eba48fa8f3f65b25e103a
Author: Milan Crha <mcrha redhat com>
Date:   Thu Aug 5 12:59:30 2021 +0200

    gs-plugin-fedora-pkgdb-collections: Change background image size
    
    Let it spread the provided image to the whole space, instead of crop
    it. It also requires to have provided reasonable sized background
    images.

 plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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 998cac345..1b8492693 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -302,7 +302,7 @@ _create_upgrade_from_info (GsPlugin *plugin, PkgdbItem *item)
        if (background != NULL) {
                css = g_strdup_printf ("background: %s;"
                                       "background-position: top;"
-                                      "background-size: cover;"
+                                      "background-size: 100%% 100%%;"
                                       "color: white; text-shadow: 0 2px 2px rgba(0,0,0,0.5);",
                                       background);
                gs_app_set_metadata (app, "GnomeSoftware::UpgradeBanner-css", css);


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