[gnome-builder] vcs-ui: Use a branch icon for git branches
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vcs-ui: Use a branch icon for git branches
- Date: Thu, 31 Dec 2020 18:11:58 +0000 (UTC)
commit c7c048d11d93100e2f26c39d0a0f6c645e499a9c
Author: vanadiae <vanadiae35 gmail com>
Date: Wed Dec 23 18:30:53 2020 +0100
vcs-ui: Use a branch icon for git branches
Currently the symbolic icon used to prefix the name of a branch is git's
logo.
But this icon could use of an icon representing better what it is.
So this commits changes this git icon to a more appropriate branch icon.
.../actions/builder-vcs-branch-symbolic.symbolic.png | Bin 0 -> 244 bytes
.../actions/builder-vcs-branch-symbolic.symbolic.png | Bin 0 -> 409 bytes
.../actions/builder-vcs-branch-symbolic.symbolic.png | Bin 0 -> 600 bytes
.../actions/builder-vcs-branch-symbolic.symbolic.png | Bin 0 -> 789 bytes
.../scalable/actions/builder-vcs-branch-symbolic.svg | 8 ++++++++
src/plugins/vcsui/gbp-vcsui-tree-addin.c | 2 +-
6 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/data/icons/hicolor/16x16/actions/builder-vcs-branch-symbolic.symbolic.png
b/data/icons/hicolor/16x16/actions/builder-vcs-branch-symbolic.symbolic.png
new file mode 100644
index 000000000..299cac08e
Binary files /dev/null and b/data/icons/hicolor/16x16/actions/builder-vcs-branch-symbolic.symbolic.png differ
diff --git a/data/icons/hicolor/32x32/actions/builder-vcs-branch-symbolic.symbolic.png
b/data/icons/hicolor/32x32/actions/builder-vcs-branch-symbolic.symbolic.png
new file mode 100644
index 000000000..1f17b9261
Binary files /dev/null and b/data/icons/hicolor/32x32/actions/builder-vcs-branch-symbolic.symbolic.png differ
diff --git a/data/icons/hicolor/48x48/actions/builder-vcs-branch-symbolic.symbolic.png
b/data/icons/hicolor/48x48/actions/builder-vcs-branch-symbolic.symbolic.png
new file mode 100644
index 000000000..6796ba959
Binary files /dev/null and b/data/icons/hicolor/48x48/actions/builder-vcs-branch-symbolic.symbolic.png differ
diff --git a/data/icons/hicolor/64x64/actions/builder-vcs-branch-symbolic.symbolic.png
b/data/icons/hicolor/64x64/actions/builder-vcs-branch-symbolic.symbolic.png
new file mode 100644
index 000000000..b6ef90e82
Binary files /dev/null and b/data/icons/hicolor/64x64/actions/builder-vcs-branch-symbolic.symbolic.png differ
diff --git a/data/icons/hicolor/scalable/actions/builder-vcs-branch-symbolic.svg
b/data/icons/hicolor/scalable/actions/builder-vcs-branch-symbolic.svg
new file mode 100644
index 000000000..a576aaef0
--- /dev/null
+++ b/data/icons/hicolor/scalable/actions/builder-vcs-branch-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="surface29631">
+<path style=" stroke:none;fill-rule:nonzero;fill:rgb(18.039216%,20.392157%,21.176471%);fill-opacity:1;" d="M
3.949219 1 C 2.867188 1.027344 2 1.914062 2 3 C 2 3.714844 2.382812 4.375 3 4.730469 L 3 15 L 5 15 L 5
4.730469 C 5.617188 4.375 6 3.714844 6 3 C 6 1.894531 5.105469 1 4 1 C 3.984375 1 3.96875 1 3.949219 1 Z M 4
2 C 4.550781 2 5 2.449219 5 3 C 5 3.550781 4.550781 4 4 4 C 3.449219 4 3 3.550781 3 3 C 3 2.449219 3.449219 2
4 2 Z M 4 2 "/>
+<path style=" stroke:none;fill-rule:nonzero;fill:rgb(18.039216%,20.392157%,21.176471%);fill-opacity:1;" d="M
11 3 L 11 7 C 11 7.84375 10.8125 8.292969 10.558594 8.550781 C 10.304688 8.804688 9.867188 9 9 9 L 8.996094 9
L 6.976562 9.011719 C 5.90625 9.019531 4.949219 9.527344 4.230469 10.238281 C 3.511719 10.953125 3 11.917969
3 13 L 5 13 C 5 12.582031 5.238281 12.058594 5.640625 11.65625 C 6.042969 11.257812 6.578125 11.015625
6.992188 11.011719 L 9 11 C 10.191406 11 11.253906 10.695312 11.984375 9.949219 C 12.714844 9.207031 13
8.15625 13 7 L 13 3 Z M 11 3 "/>
+<path style=" stroke:none;fill-rule:nonzero;fill:rgb(18.039216%,20.392157%,21.176471%);fill-opacity:1;" d="M
15 5 L 9 5 L 12 1 Z M 15 5 "/>
+</g>
+</svg>
diff --git a/src/plugins/vcsui/gbp-vcsui-tree-addin.c b/src/plugins/vcsui/gbp-vcsui-tree-addin.c
index 3e813b733..9d9feaa52 100644
--- a/src/plugins/vcsui/gbp-vcsui-tree-addin.c
+++ b/src/plugins/vcsui/gbp-vcsui-tree-addin.c
@@ -341,7 +341,7 @@ gbp_vcsui_tree_addin_list_branches_cb (GObject *object,
child = g_object_new (IDE_TYPE_TREE_NODE,
"display-name", name,
- "icon-name", "builder-vcs-git-symbolic",
+ "icon-name", "builder-vcs-branch-symbolic",
"item", branch,
"tag", "vcs-branch",
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]