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




commit 69b1f273717d46624832d047c95827b17bc5843c
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 40885b31f..6d46401bf 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]