From b5fd7fefa17636ce69f4f38066d5758c7f33b44d Mon Sep 17 00:00:00 2001
From: stsdc <6031763+stsdc@users.noreply.github.com>
Date: Fri, 25 Mar 2022 20:07:51 +0100
Subject: [PATCH] make bash icon more consistent with elementary style
---
data/icons/extra/16/bash.svg | 172 +++++---
data/icons/extra/48/bash.svg | 695 +++++++++++++++++++++++--------
src/Managers/Process.vala | 2 -
src/Managers/ProcessManager.vala | 2 +-
4 files changed, 652 insertions(+), 219 deletions(-)
diff --git a/data/icons/extra/16/bash.svg b/data/icons/extra/16/bash.svg
index e03819e6..039dd858 100644
--- a/data/icons/extra/16/bash.svg
+++ b/data/icons/extra/16/bash.svg
@@ -4,7 +4,7 @@
width="16"
height="16"
id="svg4372"
- sodipodi:docname="bash-monochrome-dark.svg"
+ sodipodi:docname="bash.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
@@ -27,13 +27,13 @@
inkscape:window-height="1019"
id="namedview23"
showgrid="true"
- inkscape:zoom="31.5"
- inkscape:cx="13.222222"
- inkscape:cy="8.031746"
+ inkscape:zoom="22.627417"
+ inkscape:cx="14.03165"
+ inkscape:cy="9.2807765"
inkscape:window-x="0"
inkscape:window-y="30"
inkscape:window-maximized="1"
- inkscape:current-layer="layer1"
+ inkscape:current-layer="g265"
inkscape:document-rotation="0"
inkscape:pagecheckerboard="0">
+
+
+
+
+
+
+
+
+
+
+
+
@@ -111,45 +160,6 @@
-
-
-
- $
-
+
+
+
+
+
+
+
+
+
+
diff --git a/data/icons/extra/48/bash.svg b/data/icons/extra/48/bash.svg
index 29226e72..4daf73c0 100644
--- a/data/icons/extra/48/bash.svg
+++ b/data/icons/extra/48/bash.svg
@@ -27,13 +27,13 @@
inkscape:window-height="1019"
id="namedview35"
showgrid="false"
- inkscape:zoom="8"
- inkscape:cx="23.3125"
- inkscape:cy="31.375"
+ inkscape:zoom="16"
+ inkscape:cx="25.40625"
+ inkscape:cy="29.625"
inkscape:window-x="0"
inkscape:window-y="30"
inkscape:window-maximized="1"
- inkscape:current-layer="svg6649"
+ inkscape:current-layer="g84893"
inkscape:document-rotation="0"
inkscape:pagecheckerboard="0"
showguides="true">
@@ -50,110 +50,447 @@
dotted="true" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ id="defs6651">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -166,67 +503,95 @@
-
-
-
-
-
-
-
-
-
+ id="g26140">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Managers/Process.vala b/src/Managers/Process.vala
index a4b46cc4..fdfb864e 100644
--- a/src/Managers/Process.vala
+++ b/src/Managers/Process.vala
@@ -28,8 +28,6 @@ public class Monitor.Process : GLib.Object {
set {
if (value == null) {
_icon = ProcessUtils.get_default_icon ();
- // } else if (application_name == "bash") {
- // _icon = ProcessUtils.get_bash_icon ();
} else {
_icon = value;
}
diff --git a/src/Managers/ProcessManager.vala b/src/Managers/ProcessManager.vala
index 0ad53a68..6237eca8 100644
--- a/src/Managers/ProcessManager.vala
+++ b/src/Managers/ProcessManager.vala
@@ -211,7 +211,7 @@ namespace Monitor {
if (key.contains (process.application_name)) {
process.application_name = apps_info_list.get (key).get_name ();
// debug (apps_info_list.get (key).get_icon ().to_string ());
- // process.icon = apps_info_list.get (key).get_icon ();
+ process.icon = apps_info_list.get (key).get_icon ();
}
}