[gnome-software] Use the Fedora themed image for the upgrade banner
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Use the Fedora themed image for the upgrade banner
- Date: Wed, 20 Apr 2016 11:49:28 +0000 (UTC)
commit c23122346d0d6494a33841ec7aa47c641dd0b8a5
Author: Richard Hughes <richard hughsie com>
Date: Wed Apr 20 11:13:42 2016 +0100
Use the Fedora themed image for the upgrade banner
src/plugins/gs-plugin-fedora-distro-upgrades.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fedora-distro-upgrades.c b/src/plugins/gs-plugin-fedora-distro-upgrades.c
index a6d9b03..11178de 100644
--- a/src/plugins/gs-plugin-fedora-distro-upgrades.c
+++ b/src/plugins/gs-plugin-fedora-distro-upgrades.c
@@ -275,6 +275,7 @@ gs_plugin_add_distro_upgrades (GsPlugin *plugin,
g_autofree gchar *app_id = NULL;
g_autofree gchar *app_version = NULL;
g_autofree gchar *url = NULL;
+ g_autofree gchar *css = NULL;
g_autoptr(GsApp) app = NULL;
/* only interested in upgrades to the same distro */
@@ -307,6 +308,14 @@ gs_plugin_add_distro_upgrades (GsPlugin *plugin,
distro_info->version);
gs_app_set_url (app, AS_URL_KIND_HOMEPAGE, url);
+ /* use a fancy background */
+ css = g_strdup_printf ("background:
url('/usr/share/backgrounds/f%i/default/standard/f%i.png');"
+ "background-position: center;"
+ "background-size: cover;",
+ distro_info->version,
+ distro_info->version);
+ gs_app_set_metadata (app, "GnomeSoftware::UpgradeBanner-css", css);
+
gs_plugin_add_app (list, app);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]