Refresh distro logo patch

This commit is contained in:
Michael Catanzaro 2021-03-10 14:12:23 -06:00
parent 5accafcca6
commit 6646c56e2d
2 changed files with 196 additions and 374 deletions

View File

@ -1,386 +1,195 @@
From 649943e98848e8b4ee147c81cfdfda0f55c70420 Mon Sep 17 00:00:00 2001 From 4369e31ec541172e1c0d7c64645c7990e413bbca Mon Sep 17 00:00:00 2001
From: Michael Catanzaro <mcatanzaro@gnome.org> From: Michael Catanzaro <mcatanzaro@gnome.org>
Date: Mon, 16 Mar 2020 13:37:29 -0500 Date: Tue, 9 Mar 2021 14:51:54 -0600
Subject: [PATCH] Replace GNOME logo with Fedora vertical logo Subject: [PATCH 1/3] info-overview: add build option to control distributor
logo
This replaces our previous branding patch that used the Fedora logo from Currently, we display a 256x256 version of the OS icon from
the system icon theme. That's no longer good enough because we want to /etc/os-release. This is too big for my taste, and it's also not
display the "Fedora" text underneath our logo now, and we probably don't sufficient for distros that want to display a logo that is not an icon.
want to add that version of the logo to the system icon theme, since For instance, because we no longer display the operating system name
text does not work well in icons. immediately beneath the logo, it may be desirable to use a logo variant
that includes text. This patch adds a meson build option that
distributions can use to override the logo.
There was also a proposal to get the logo from /etc/os-release, but that Because the logo might include text, distributions may want to vary the
has a similar problem. We have several different versions of the logo, logo used in dark mode. A subsequent commit will add a second option for
and only one can go there. this.
https://pagure.io/fedora-workstation/issue/135
https://bugzilla.gnome.org/show_bug.cgi?id=695691
--- ---
.../info-overview/GnomeLogoVerticalMedium.svg | 134 ------------------ meson.build | 6 ++++++
panels/info-overview/cc-info-overview-panel.c | 17 --- meson_options.txt | 1 +
.../info-overview/cc-info-overview-panel.ui | 1 + panels/info-overview/cc-info-overview-panel.c | 4 ++++
panels/info-overview/fedora_vertical.png | Bin 0 -> 6979 bytes 3 files changed, 11 insertions(+)
.../info-overview/info-overview.gresource.xml | 2 +-
panels/info-overview/meson.build | 2 +-
6 files changed, 3 insertions(+), 153 deletions(-)
delete mode 100644 panels/info-overview/GnomeLogoVerticalMedium.svg
create mode 100644 panels/info-overview/fedora_vertical.png
diff --git a/panels/info-overview/GnomeLogoVerticalMedium.svg b/panels/info-overview/GnomeLogoVerticalMedium.svg diff --git a/meson.build b/meson.build
deleted file mode 100644 index e8333c0da..1661caa4b 100644
index b697f06a5..000000000 --- a/meson.build
--- a/panels/info-overview/GnomeLogoVerticalMedium.svg +++ b/meson.build
+++ /dev/null @@ -50,6 +50,12 @@ foreach define: set_defines
@@ -1,134 +0,0 @@ config_h.set_quoted(define[0], define[1])
-<?xml version="1.0" encoding="UTF-8" standalone="no"?> endforeach
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
- +distributor_logo = get_option('distributor_logo')
-<svg +if (distributor_logo != '')
- xmlns:dc="http://purl.org/dc/elements/1.1/" + config_h.set_quoted('DISTRIBUTOR_LOGO', distributor_logo,
- xmlns:cc="http://creativecommons.org/ns#" + description: 'Define to absolute path of distributor logo')
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" +endif
- xmlns:svg="http://www.w3.org/2000/svg" +
- xmlns="http://www.w3.org/2000/svg" # meson does not support octal values, so it must be handled as a
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" # string. See: https://github.com/mesonbuild/meson/issues/2047
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" config_h.set('USER_DIR_MODE', '0700',
- version="1.0" diff --git a/meson_options.txt b/meson_options.txt
- width="97.966095" index 1b7b54810..93e551373 100644
- height="138.95122" --- a/meson_options.txt
- id="svg1903" +++ b/meson_options.txt
- inkscape:version="0.48.1 r9760" @@ -8,3 +8,4 @@ option('tracing', type: 'boolean', value: false, description: 'add extra debuggi
- sodipodi:docname="GnomeLogoVerticalMedium.svg"> option('wayland', type: 'boolean', value: true, description: 'build with Wayland support')
- <metadata option('profile', type: 'combo', choices: ['default','development'], value: 'default')
- id="metadata24"> option('malcontent', type: 'boolean', value: false, description: 'build with malcontent support')
- <rdf:RDF> +option('distributor_logo', type: 'string', description: 'absolute path to distributor logo for the About panel')
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <sodipodi:namedview
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1"
- objecttolerance="10"
- gridtolerance="10"
- guidetolerance="10"
- inkscape:pageopacity="0"
- inkscape:pageshadow="2"
- inkscape:window-width="818"
- inkscape:window-height="738"
- id="namedview22"
- showgrid="false"
- inkscape:zoom="2.0645911"
- inkscape:cx="6.1022513"
- inkscape:cy="68.392751"
- inkscape:window-x="460"
- inkscape:window-y="26"
- inkscape:window-maximized="0"
- inkscape:current-layer="svg1903"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0" />
- <defs
- id="defs1905">
- <inkscape:perspective
- sodipodi:type="inkscape:persp3d"
- inkscape:vp_x="0 : 244.11613 : 1"
- inkscape:vp_y="0 : 1000 : 0"
- inkscape:vp_z="401.74014 : 244.11613 : 1"
- inkscape:persp3d-origin="200.87007 : 162.74409 : 1"
- id="perspective26" />
- </defs>
- <g
- transform="matrix(0.30686102,0,0,0.30686102,-57.94673,-76.524295)"
- id="layer1">
- <g
- transform="translate(925.8326,120.8762)"
- id="g3963">
- <g
- transform="matrix(2.914897,0,0,2.914897,-717.5904,128.5015)"
- style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
- id="g3771">
- <g
- style="fill:#000000;fill-opacity:1"
- id="g3773">
- <path
- d="M 86.068,0 C 61.466,0 56.851,35.041 70.691,35.041 84.529,35.041 110.671,0 86.068,0 z"
- style="fill:#000000;fill-opacity:1"
- id="path3775"
- inkscape:connector-curvature="0" />
- <path
- d="M 45.217,30.699 C 52.586,31.149 60.671,2.577 46.821,4.374 32.976,6.171 37.845,30.249 45.217,30.699 z"
- style="fill:#000000;fill-opacity:1"
- id="path3777"
- inkscape:connector-curvature="0" />
- <path
- d="M 11.445,48.453 C 16.686,46.146 12.12,23.581 3.208,29.735 -5.7,35.89 6.204,50.759 11.445,48.453 z"
- style="fill:#000000;fill-opacity:1"
- id="path3779"
- inkscape:connector-curvature="0" />
- <path
- d="M 26.212,36.642 C 32.451,35.37 32.793,9.778 21.667,14.369 10.539,18.961 19.978,37.916 26.212,36.642 l 0,0 z"
- style="fill:#000000;fill-opacity:1"
- id="path3781"
- inkscape:connector-curvature="0" />
- <path
- d="m 58.791,93.913 c 1.107,8.454 -6.202,12.629 -13.36,7.179 C 22.644,83.743 83.16,75.088 79.171,51.386 75.86,31.712 15.495,37.769 8.621,68.553 3.968,89.374 27.774,118.26 52.614,118.26 c 12.22,0 26.315,-11.034 28.952,-25.012 C 83.58,82.589 57.867,86.86 58.791,93.913 l 0,0 z"
- style="fill:#000000;fill-opacity:1"
- id="path3783"
- inkscape:connector-curvature="0" />
- </g>
- </g>
- <g
- transform="matrix(1.098291,0,0,1.098291,41.06056,-50.07504)"
- id="g3956">
- <path
- d="m -565.99523,509.46063 c -8.08731,0.21792 -14.47394,3.12448 -19.17071,8.69866 -4.86385,5.80101 -7.31024,13.81651 -7.31024,24.03862 0,10.19394 2.44651,18.18745 7.31024,23.98846 4.88761,5.801 11.59815,8.69866 20.15764,8.69866 8.5831,0 15.3105,-2.89766 20.17436,-8.69866 4.86373,-5.80101 7.29358,-13.79452 7.29353,-23.98846 -5e-5,-10.22211 -2.4298,-18.23761 -7.29353,-24.03862 -4.86386,-5.80075 -11.59131,-8.69866 -20.17436,-8.69866 -0.33434,0 -0.6582,-0.009 -0.98693,0 z m 0.60221,11.77669 c 0.12927,-0.003 0.25357,0 0.38472,0 4.21998,0 7.48996,1.8261 9.8028,5.48697 2.31266,3.66086 3.47944,8.82788 3.47949,15.47362 0,6.61757 -1.16692,11.74604 -3.47949,15.40691 -2.31274,3.66086 -5.58286,5.50352 -9.8028,5.50352 -4.19632,0 -7.43983,-1.84266 -9.75257,-5.50352 -2.31274,-3.66087 -3.47944,-8.78934 -3.47949,-15.40691 0,-6.64574 1.16684,-11.81276 3.47949,-15.47362 2.24035,-3.54647 5.35963,-5.37604 9.36785,-5.48697 z"
- style="font-size:148.699646px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
- id="path3787"
- inkscape:connector-curvature="0" />
- <path
- d="m -657.35432,568.97161 c -7.12362,5.98235 -17.72219,5.91366 -22.13752,5.91366 -8.8932,0 -15.93855,-2.92879 -21.13613,-8.78612 -5.19765,-5.88525 -7.7964,-13.85456 -7.7964,-23.90791 0,-10.16578 2.64646,-18.16325 7.93945,-23.99241 5.293,-5.82892 12.54098,-8.74363 21.74413,-8.74363 3.55245,0 6.94991,0.39433 10.19254,1.18273 3.26638,0.78841 6.34203,1.95706 9.22697,3.50595 l -3.70487,10.9527 c -1.62185,-0.88773 -3.4788,-1.76286 -5.20022,-2.37807 -2.93262,-0.98557 -5.87712,-1.47823 -8.83351,-1.47823 -5.48379,0 -9.71581,1.81623 -12.69601,5.44892 -2.95649,3.60454 -4.4347,8.7718 -4.4347,15.50204 0,6.67415 1.4305,11.82733 4.29167,15.46003 2.86099,3.6327 7.16068,5.44892 12.19522,5.44892 5.11476,0 8.28269,-1.28922 9.97226,-2.64762 l 0,-10.91144 -11.08087,0 0,-10.89809 21.45799,0"
- style="font-size:148.699646px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
- id="path3789"
- inkscape:connector-curvature="0" />
- <path
- d="m -528.50252,510.59568 17.5241,0 12.15952,39.37066 12.23105,-39.37066 14.81181,0 6.69132,63.06461 -13.01787,0 -4.0148,-39.4349 -12.30257,39.62391 -8.72628,0 -12.30263,-40.9623 -4.01479,40.77329 -13.05365,0 6.69132,-63.06461"
- style="font-size:148.699646px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
- id="path3793"
- inkscape:connector-curvature="0" />
- <path
- d="m -455.68828,510.59568 37.15811,0 0,12.29183 -23.38928,0 0,13.08097 17.97969,0 0,10.95369 -17.97969,0 0,14.44629 24.17608,0 0,12.29183 -37.94491,0 0,-63.06461"
- style="font-size:148.699646px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
- id="path3795"
- inkscape:connector-curvature="0" />
- <path
- d="m -647.94283,510.59568 8.6869,0 27.44915,37.90083 0,-37.90083 11.71533,0 0,63.06461 -8.6869,0 -27.4491,-37.90083 0,37.90083 -11.71538,0 0,-63.06461"
- style="font-size:148.699646px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
- id="path3791"
- inkscape:connector-curvature="0" />
- </g>
- </g>
- </g>
-</svg>
diff --git a/panels/info-overview/cc-info-overview-panel.c b/panels/info-overview/cc-info-overview-panel.c diff --git a/panels/info-overview/cc-info-overview-panel.c b/panels/info-overview/cc-info-overview-panel.c
index bd0e07762..884e3da44 100644 index bd0e07762..95a5904df 100644
--- a/panels/info-overview/cc-info-overview-panel.c --- a/panels/info-overview/cc-info-overview-panel.c
+++ b/panels/info-overview/cc-info-overview-panel.c +++ b/panels/info-overview/cc-info-overview-panel.c
@@ -866,21 +866,6 @@ cc_info_panel_row_activated_cb (CcInfoOverviewPanel *self, @@ -869,6 +869,9 @@ cc_info_panel_row_activated_cb (CcInfoOverviewPanel *self,
static void
setup_os_logo (CcInfoOverviewPanel *panel)
{
+#ifdef DISTRIBUTOR_LOGO
+ gtk_image_set_from_file (panel->os_logo, DISTRIBUTOR_LOGO);
+#else
g_autofree char *logo_name = g_get_os_info ("LOGO");
if (logo_name != NULL)
{
@@ -879,6 +882,7 @@ setup_os_logo (CcInfoOverviewPanel *panel)
{
gtk_image_set_from_resource (panel->os_logo, "/org/gnome/control-center/info-overview/GnomeLogoVerticalMedium.svg");
}
+#endif
}
static void
--
GitLab
From f08669767ca87ff99fc08e1a7334c8f2e7f18f0b Mon Sep 17 00:00:00 2001
From: Michael Catanzaro <mcatanzaro@gnome.org>
Date: Tue, 9 Mar 2021 16:02:46 -0600
Subject: [PATCH 2/3] info-overview: add build option to specify a dark mode
logo variant
Let's allow distributions to specify a different logo to use when using
a dark GTK theme. This is best-effort only since it relies on the
convention that dark themes must end with "dark" and therefore will fail
for a theme named "midnight" or anything that doesn't match convention.
---
meson.build | 5 ++++
meson_options.txt | 1 +
panels/info-overview/cc-info-overview-panel.c | 27 +++++++++++++++++++
3 files changed, 33 insertions(+)
diff --git a/meson.build b/meson.build
index 1661caa4b..124171626 100644
--- a/meson.build
+++ b/meson.build
@@ -54,6 +54,11 @@ distributor_logo = get_option('distributor_logo')
if (distributor_logo != '')
config_h.set_quoted('DISTRIBUTOR_LOGO', distributor_logo,
description: 'Define to absolute path of distributor logo')
+ dark_mode_distributor_logo = get_option('dark_mode_distributor_logo')
+ if (dark_mode_distributor_logo != '')
+ config_h.set_quoted('DARK_MODE_DISTRIBUTOR_LOGO', dark_mode_distributor_logo,
+ description: 'Define to absolute path of distributor logo for use in dark mode')
+ endif
endif
# meson does not support octal values, so it must be handled as a
diff --git a/meson_options.txt b/meson_options.txt
index 93e551373..5305c8606 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -9,3 +9,4 @@ option('wayland', type: 'boolean', value: true, description: 'build with Wayland
option('profile', type: 'combo', choices: ['default','development'], value: 'default')
option('malcontent', type: 'boolean', value: false, description: 'build with malcontent support')
option('distributor_logo', type: 'string', description: 'absolute path to distributor logo for the About panel')
+option('dark_mode_distributor_logo', type: 'string', description: 'absolute path to distributor logo dark mode variant')
diff --git a/panels/info-overview/cc-info-overview-panel.c b/panels/info-overview/cc-info-overview-panel.c
index 95a5904df..cb20e16b1 100644
--- a/panels/info-overview/cc-info-overview-panel.c
+++ b/panels/info-overview/cc-info-overview-panel.c
@@ -866,10 +866,37 @@ cc_info_panel_row_activated_cb (CcInfoOverviewPanel *self,
open_software_update (self); open_software_update (self);
} }
-static void +#ifdef DARK_MODE_DISTRIBUTOR_LOGO
-setup_os_logo (CcInfoOverviewPanel *panel) +static gboolean
-{ +is_dark_mode (CcInfoOverviewPanel *panel)
- g_autofree char *logo_name = g_get_os_info ("LOGO"); +{
- if (logo_name != NULL) + GdkScreen *screen;
- { + GtkSettings *settings;
- gtk_image_set_from_icon_name (panel->os_logo, logo_name, GTK_ICON_SIZE_INVALID); + g_autofree char *theme_name = NULL;
- gtk_image_set_pixel_size (panel->os_logo, 256); +
- } + theme_name = g_strdup (g_getenv ("GTK_THEME"));
- else + if (theme_name != NULL)
- { + return g_str_has_suffix (theme_name, "dark");
- gtk_image_set_from_resource (panel->os_logo, "/org/gnome/control-center/info-overview/GnomeLogoVerticalMedium.svg"); +
- } + screen = gtk_widget_get_screen (GTK_WIDGET (panel));
-} + settings = gtk_settings_get_for_screen (screen);
- +
+ g_object_get (settings, "gtk-theme-name", &theme_name, NULL);
+ return theme_name != NULL && g_str_has_suffix (theme_name, "dark");
+}
+#endif
+
static void static void
cc_info_overview_panel_class_init (CcInfoOverviewPanelClass *klass) setup_os_logo (CcInfoOverviewPanel *panel)
{ {
@@ -929,8 +914,6 @@ cc_info_overview_panel_init (CcInfoOverviewPanel *self) #ifdef DISTRIBUTOR_LOGO
+#ifdef DARK_MODE_DISTRIBUTOR_LOGO
info_overview_panel_setup_overview (self); + if (is_dark_mode (panel))
info_overview_panel_setup_virt (self); + {
- + gtk_image_set_from_file (panel->os_logo, DARK_MODE_DISTRIBUTOR_LOGO);
- setup_os_logo (self); + return;
} + }
+#endif
GtkWidget * gtk_image_set_from_file (panel->os_logo, DISTRIBUTOR_LOGO);
diff --git a/panels/info-overview/cc-info-overview-panel.ui b/panels/info-overview/cc-info-overview-panel.ui #else
index 2f5d3cf8b..d593729c7 100644 g_autofree char *logo_name = g_get_os_info ("LOGO");
--- a/panels/info-overview/cc-info-overview-panel.ui
+++ b/panels/info-overview/cc-info-overview-panel.ui
@@ -28,6 +28,7 @@
<object class="GtkImage" id="os_logo">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="resource">/org/gnome/control-center/info-overview/fedora_vertical.png</property>
</object>
<packing>
<property name="expand">False</property>
diff --git a/panels/info-overview/fedora_vertical.png b/panels/info-overview/fedora_vertical.png
new file mode 100644
index 0000000000000000000000000000000000000000..ddd581ea97a98a5fe8bb030eef658ec7362f62da
GIT binary patch
literal 6979
zcma)Bbx<5Uu)jkOD+d%PQi}Vb1&UL8_@Tw!p+Iqm;!c6$?#0~;g~Oq^JH?8-+aZtd
z|MzCzWHvk5WRh%t$;u>LNkIw+lN1vG0N}_-LsedQ-V3FG&|Yc_0<LiY02uV;(<ddF
zPoF659qr7&*q8wTjIrNhg{8a2$a@Vw7f=&QU`2d@7Ap`zCCD2vC5pjT!Rl{eY>xr-
zI5H8D`D@ztrzSP~Ya8Wdfn}5+AHNU$0!%H^;m>kd5M!Ya$Nj&(Vt%{%DM7eKtjN&c
z|K%m9DNd2CityLCoe0#&&Nnbm;$)C<aF4F?y1n%zUe{XLc_P=d>NECJq|Gu5`9fd^
zR<v70+xfNu9vWgk<3CH0A*S`&Y*E?a8|6<%%_8B75BJyr*Q8h*6$ERoOotVPb(a=?
zhW{w78}x{*Q)jK~6TZU=B>85Rdhk9J+)bTC`7tPf3zM-+GDto1H5SHVjOQ)7UOSX6
zSQnMUku?Ver}hB-IdJu__QF88rwRvVefx*eeh_#b)rzqHPQ*215o664t@5(4T@}?_
zM5gL}!ztc)8;-6nACDRCuVo-w7WP7d-hkrgKj!{7-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j?@@piQO4VQ
zdB<hIzJ>Fa4Ue$1pThwLTxZT`m`xSZUdaDj`2K(VR(u4XJ>yuBB!VO>k6yl405TE^
K&`NQ`fd2t&mONJg
literal 0
HcmV?d00001
diff --git a/panels/info-overview/info-overview.gresource.xml b/panels/info-overview/info-overview.gresource.xml
index 83806e0ad..68cc49626 100644
--- a/panels/info-overview/info-overview.gresource.xml
+++ b/panels/info-overview/info-overview.gresource.xml
@@ -2,6 +2,6 @@
<gresources>
<gresource prefix="/org/gnome/control-center/info-overview">
<file preprocess="xml-stripblanks">cc-info-overview-panel.ui</file>
- <file>GnomeLogoVerticalMedium.svg</file>
+ <file>fedora_vertical.png</file>
</gresource>
</gresources>
diff --git a/panels/info-overview/meson.build b/panels/info-overview/meson.build
index 14663f24c..d10c29e78 100644
--- a/panels/info-overview/meson.build
+++ b/panels/info-overview/meson.build
@@ -28,7 +28,7 @@ sources = files(
)
resource_data = files(
- 'GnomeLogoVerticalMedium.svg',
+ 'fedora_vertical.png',
'cc-info-overview-panel.ui'
)
-- --
2.29.2 GitLab
From c379ccc4e8f0bcdee78361f134ba29d3a25f7528 Mon Sep 17 00:00:00 2001
From: Michael Catanzaro <mcatanzaro@gnome.org>
Date: Wed, 10 Mar 2021 11:30:57 -0600
Subject: [PATCH 3/3] info-overview: reduce size of logo when using icon from
/etc/os-release
When using the icon from /etc/os-release, display it as 128x128 rather
than 256x256. In distributions that don't ship a 128x128, such as
Fedora, this results in the 256x256 icon being scaled down to a
reasonable size. 256x256 is so large here as to be clearly undesirable.
128x128 is also the size that Ubuntu uses in its downstream patch. Might
as well reduce the need for patching as far as possible, even though
Fedora doesn't plan to use this codepath.
---
panels/info-overview/cc-info-overview-panel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/panels/info-overview/cc-info-overview-panel.c b/panels/info-overview/cc-info-overview-panel.c
index cb20e16b1..3575b90c5 100644
--- a/panels/info-overview/cc-info-overview-panel.c
+++ b/panels/info-overview/cc-info-overview-panel.c
@@ -903,7 +903,7 @@ setup_os_logo (CcInfoOverviewPanel *panel)
if (logo_name != NULL)
{
gtk_image_set_from_icon_name (panel->os_logo, logo_name, GTK_ICON_SIZE_INVALID);
- gtk_image_set_pixel_size (panel->os_logo, 256);
+ gtk_image_set_pixel_size (panel->os_logo, 128);
}
else
{
--
GitLab

View File

@ -13,14 +13,14 @@
Name: gnome-control-center Name: gnome-control-center
Version: 40~beta Version: 40~beta
Release: 4%{?dist} Release: 5%{?dist}
Summary: Utilities to configure the GNOME desktop Summary: Utilities to configure the GNOME desktop
License: GPLv2+ and CC-BY-SA License: GPLv2+ and CC-BY-SA
URL: http://www.gnome.org URL: http://www.gnome.org
Source0: https://download.gnome.org/sources/gnome-control-center/40/gnome-control-center-%{tarball_version}.tar.xz Source0: https://download.gnome.org/sources/gnome-control-center/40/gnome-control-center-%{tarball_version}.tar.xz
# https://bugzilla.gnome.org/show_bug.cgi?id=695691 # https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/965
Patch0: distro-logo.patch Patch0: distro-logo.patch
Patch1: fix-language-chooser.patch Patch1: fix-language-chooser.patch
@ -151,7 +151,16 @@ utilities.
%autosetup -p1 -S git -n gnome-control-center-%{tarball_version} %autosetup -p1 -S git -n gnome-control-center-%{tarball_version}
%build %build
%meson -Ddocumentation=true %meson \
-Ddocumentation=true \
%if 0%{?fedora}
-Ddistributor_logo=%{_datadir}/pixmaps/fedora-logo-small.png \
-Ddark_mode_distributor_logo=%{_datadir}/pixmaps/system-logo-white.png \
%elif 0%{?rhel}
-Ddistributor_logo=%{_datadir}/pixmaps/fedora-logo.png \
-Ddark_mode_distributor_logo=%{_datadir}/pixmaps/system-logo-white.png \
%endif
%{nil}
%meson_build %meson_build
%install %install
@ -200,6 +209,10 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gnome-control-center
%dir %{_datadir}/gnome/wm-properties %dir %{_datadir}/gnome/wm-properties
%changelog %changelog
* Wed Mar 10 2021 Michael Catanzaro <mcatanzaro@redhat.com> - 40~beta-5
- Refresh distro logo patch
- Drop Recommends: vino, let vino die!
* Sun Mar 07 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 40~beta-4 * Sun Mar 07 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 40~beta-4
- Fix modifications of the networks (Fixes: RHBZ#1932674) - Fix modifications of the networks (Fixes: RHBZ#1932674)