[gnome-software: 1/2] license-tile: Update the visuals
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] license-tile: Update the visuals
- Date: Tue, 2 Aug 2022 19:41:04 +0000 (UTC)
commit c5e14091e82fe14cd23cb73f48ac1a4d77914e50
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Jul 24 23:33:59 2022 +0200
license-tile: Update the visuals
This updates the icons and make them yellow.
Fixes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1835
data/icons/community-none-symbolic.svg | 8 ++++++++
data/icons/hand-open-symbolic.svg | 2 ++
src/gnome-software.gresource.xml | 2 ++
src/gs-license-tile.c | 10 +++++-----
4 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/data/icons/community-none-symbolic.svg b/data/icons/community-none-symbolic.svg
new file mode 100644
index 000000000..c0c07cbfb
--- /dev/null
+++ b/data/icons/community-none-symbolic.svg
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px"
height="16px" viewBox="0 0 16 16" version="1.1">
+<g id="surface25330">
+<path style="
stroke:none;fill-rule:nonzero;fill:rgb(13.333334%,13.333334%,13.333334%);fill-opacity:0.501961;" d="M 11 0 C
9.621094 0 8.5 1.121094 8.5 2.5 C 8.5 3.878906 9.621094 5 11 5 C 12.378906 5 13.5 3.878906 13.5 2.5 C 13.5
1.121094 12.378906 0 11 0 Z M 9 6 C 8.117188 6 6.933594 6.585938 6.230469 7.277344 L 10.953125 12 L 15 12 C
15.554688 12 16 11.554688 16 11 L 16 9 C 16 7.339844 14.660156 6 13 6 Z M 9 6 "/>
+<path style=" stroke:none;fill-rule:nonzero;fill:rgb(13.333334%,13.333334%,13.333334%);fill-opacity:1;" d="M
5 4 C 4.425781 4 3.898438 4.195312 3.476562 4.523438 L 6.980469 8.027344 C 7.304688 7.601562 7.5 7.074219 7.5
6.5 C 7.5 5.121094 6.378906 4 5 4 Z M 2.609375 5.78125 C 2.539062 6.007812 2.5 6.25 2.5 6.5 C 2.5 7.878906
3.621094 9 5 9 C 5.25 9 5.492188 8.964844 5.722656 8.894531 Z M 3 10 C 1.339844 10 0 11.339844 0 13 L 0 15 C
0 15.554688 0.445312 16 1 16 L 9 16 C 9.554688 16 10 15.554688 10 15 L 10 13.171875 L 6.828125 10 Z M 3 10 "/>
+<path style=" stroke:none;fill-rule:nonzero;fill:rgb(13.333334%,13.333334%,13.333334%);fill-opacity:1;" d="M
1.53125 0.457031 L 0.46875 1.519531 L 14.46875 15.519531 L 15.53125 14.457031 Z M 1.53125 0.457031 "/>
+</g>
+</svg>
diff --git a/data/icons/hand-open-symbolic.svg b/data/icons/hand-open-symbolic.svg
new file mode 100644
index 000000000..2e20f7483
--- /dev/null
+++ b/data/icons/hand-open-symbolic.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path d="m 8 0 c
0.554688 0 1 0.445312 1 1 v 6.5 s 0 0.5 0.5 0.5 s 0.5 -0.5 0.5 -0.5 v -4.5 c 0 -0.554688 0.445312 -1 1 -1 s 1
0.445312 1 1 v 8.5 c 0 0.5 0.5 0.5 0.5 0.5 l 1.792969 -1.707031 c 0.1875 -0.195313 0.445312 -0.300781 0.71875
-0.300781 c 1.082031 0.082031 1.144531 1.265624 0.695312 1.714843 l -3 3 c -0.707031 0.792969 -1.757812
1.289063 -2.707031 1.292969 h -6 c -3 0 -3 -3 -3 -3 v -8 c 0 -0.554688 0.445312 -1 1 -1 s 1 0.445312 1 1 v
3.5 s 0 0.5 0.5 0.5 s 0.5 -0.5 0.5 -0.5 v -6.5 c 0 -0.554688 0.445312 -1 1 -1 s 1 0.445312 1 1 v 5.5 s 0 0.5
0.5 0.5 s 0.5 -0.5 0.5 -0.5 v -6.5 c 0 -0.554688 0.445312 -1 1 -1 z m 0 0" fill="#222222"/></svg>
diff --git a/src/gnome-software.gresource.xml b/src/gnome-software.gresource.xml
index 60277a600..4b0900ed1 100644
--- a/src/gnome-software.gresource.xml
+++ b/src/gnome-software.gresource.xml
@@ -75,6 +75,7 @@
<file preprocess="xml-stripblanks"
alias="icons/scalable/emblems/chat-symbolic.svg">../data/icons/chat-symbolic.svg</file>
<file preprocess="xml-stripblanks"
alias="icons/scalable/emblems/cigarette-none-symbolic.svg">../data/icons/cigarette-none-symbolic.svg</file>
<file preprocess="xml-stripblanks"
alias="icons/scalable/emblems/cigarette-symbolic.svg">../data/icons/cigarette-symbolic.svg</file>
+ <file preprocess="xml-stripblanks"
alias="icons/scalable/emblems/community-none-symbolic.svg">../data/icons/community-none-symbolic.svg</file>
<file preprocess="xml-stripblanks"
alias="icons/scalable/emblems/community-symbolic.svg">../data/icons/community-symbolic.svg</file>
<file preprocess="xml-stripblanks"
alias="icons/scalable/devices/desktop-symbolic.svg">../data/icons/desktop-symbolic.svg</file>
<file preprocess="xml-stripblanks"
alias="icons/scalable/devices/emblem-synchronizing-symbolic.svg">../data/icons/emblem-synchronizing-symbolic.svg</file>
@@ -82,6 +83,7 @@
<file preprocess="xml-stripblanks"
alias="icons/scalable/devices/external-link-symbolic.svg">../data/icons/external-link-symbolic.svg</file>
<file preprocess="xml-stripblanks"
alias="icons/scalable/emblems/flag-outline-thin-symbolic.svg">../data/icons/flag-outline-thin-symbolic.svg</file>
<file preprocess="xml-stripblanks"
alias="icons/scalable/emblems/graveyard-symbolic.svg">../data/icons/graveyard-symbolic.svg</file>
+ <file preprocess="xml-stripblanks"
alias="icons/scalable/emblems/hand-open-symbolic.svg">../data/icons/hand-open-symbolic.svg</file>
<file preprocess="xml-stripblanks"
alias="icons/scalable/devices/heart-filled-symbolic.svg">../data/icons/heart-filled-symbolic.svg</file>
<file preprocess="xml-stripblanks"
alias="icons/scalable/emblems/help-link-symbolic.svg">../data/icons/help-link-symbolic.svg</file>
<file preprocess="xml-stripblanks"
alias="icons/scalable/emblems/money-none-symbolic.svg">../data/icons/money-none-symbolic.svg</file>
diff --git a/src/gs-license-tile.c b/src/gs-license-tile.c
index 2a2513c97..ffac3ba93 100644
--- a/src/gs-license-tile.c
+++ b/src/gs-license-tile.c
@@ -125,10 +125,10 @@ gs_license_tile_refresh (GsLicenseTile *self)
}
} else {
title = _("Proprietary");
- css_class = "grey";
- lozenge_icon_names[0] = "dialog-warning-symbolic";
- lozenge_icon_names[1] = "face-sad-symbolic";
- lozenge_icon_names[2] = "padlock-open-symbolic";
+ css_class = "yellow";
+ lozenge_icon_names[0] = "hand-open-symbolic";
+ lozenge_icon_names[1] = "dialog-warning-symbolic";
+ lozenge_icon_names[2] = "community-none-symbolic";
get_involved_visible = TRUE;
get_involved_label = _("_Learn More");
@@ -140,7 +140,7 @@ gs_license_tile_refresh (GsLicenseTile *self)
for (gsize i = 0; i < G_N_ELEMENTS (self->lozenges); i++) {
GtkStyleContext *context = gtk_widget_get_style_context (self->lozenges[i]);
gtk_style_context_remove_class (context, "green");
- gtk_style_context_remove_class (context, "grey");
+ gtk_style_context_remove_class (context, "yellow");
gtk_style_context_add_class (context, css_class);
gs_lozenge_set_icon_name (GS_LOZENGE (self->lozenges[i]), lozenge_icon_names[i]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]