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




commit 17938e1f9e1f3a45862bb5241dcf44c0ec828191
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 93f876cd0..b911126ad 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -301,7 +301,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]