[gnome-software/1225-do-not-allow-distro-upgrades-if-release-art-is-missing: 83/86] gs-plugin-fedora-pkgdb-collections: Change background image size
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1225-do-not-allow-distro-upgrades-if-release-art-is-missing: 83/86] gs-plugin-fedora-pkgdb-collections: Change background image size
- Date: Tue, 10 Aug 2021 13:45:54 +0000 (UTC)
commit eb157cabf3194a37f0652c230717013947f9a388
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]