Icons to svg
add svg icons to plugins
change iconPath from png to svg
add iconPath to manifests
GitLab: #10
Change-Id: I2dd6d58636e926f5be577b68f8caa38d45068687
diff --git a/SDK/Docs/manifestHelper.txt b/SDK/Docs/manifestHelper.txt
index 0c36a2f..5a988ef 100644
--- a/SDK/Docs/manifestHelper.txt
+++ b/SDK/Docs/manifestHelper.txt
@@ -7,7 +7,8 @@
{
"name": "foo", -> plugin name
"description: "This plugins does this and that", -> plugin functionalities description
- "version": "0.0.0" -> plugin version, must be of the form X.Y.Z
+ "version": "0.0.0", -> plugin version, must be of the form X.Y.Z
+ "iconPath" : "icon.svg"
}
For more technical information, please refer to:
diff --git a/SDK/Templates/genericChatHandler.cpp b/SDK/Templates/genericChatHandler.cpp
index 9010214..03185cc 100644
--- a/SDK/Templates/genericChatHandler.cpp
+++ b/SDK/Templates/genericChatHandler.cpp
@@ -40,7 +40,7 @@
GENERICChatHandler::getChatHandlerDetails()
{
return { {"name", NAME},
- {"iconPath", datapath_ + sep + "icon.png"},
+ {"iconPath", datapath_ + sep + "icon.svg"},
{"pluginId", id()} };
}
diff --git a/SDK/Templates/genericMediaHandler.cpp b/SDK/Templates/genericMediaHandler.cpp
index 4a6ee78..109ec71 100644
--- a/SDK/Templates/genericMediaHandler.cpp
+++ b/SDK/Templates/genericMediaHandler.cpp
@@ -49,7 +49,7 @@
GENERICMediaHandler::getCallMediaHandlerDetails()
{
return {{"name", NAME},
- {"iconPath", datapath_ + sep + "icon.png"},
+ {"iconPath", datapath_ + sep + "icon.svg"},
{"pluginId", id()},
{"attached", attached_},
{"dataType", "1"}};
diff --git a/SDK/Templates/icon.png b/SDK/Templates/icon.png
index 2ce0aab..a84ae07 100644
--- a/SDK/Templates/icon.png
+++ b/SDK/Templates/icon.png
Binary files differ
diff --git a/SDK/Templates/icon.svg b/SDK/Templates/icon.svg
new file mode 100644
index 0000000..326b0fe
--- /dev/null
+++ b/SDK/Templates/icon.svg
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="300px" height="300px" viewBox="0 0 300 300" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <title>P</title>
+ <defs>
+ <linearGradient x1="-0.0143679903%" y1="50%" x2="99.9840558%" y2="50%" id="linearGradient-1">
+ <stop stop-color="#181844" offset="0%"></stop>
+ <stop stop-color="#1E1E4C" offset="2.84%"></stop>
+ <stop stop-color="#283261" offset="13.53%"></stop>
+ <stop stop-color="#2D4172" offset="24.68%"></stop>
+ <stop stop-color="#2E4A7C" offset="36.47%"></stop>
+ <stop stop-color="#2E4D7F" offset="50%"></stop>
+ <stop stop-color="#2D4576" offset="61.77%"></stop>
+ <stop stop-color="#273160" offset="81.25%"></stop>
+ <stop stop-color="#181844" offset="100%"></stop>
+ </linearGradient>
+ <linearGradient x1="-0.0143775661%" y1="50.0132404%" x2="99.9808363%" y2="50.0132404%" id="linearGradient-2">
+ <stop stop-color="#2867A2" offset="0%"></stop>
+ <stop stop-color="#2174B1" offset="3.82%"></stop>
+ <stop stop-color="#0B86C4" offset="11.77%"></stop>
+ <stop stop-color="#0A94D2" offset="20.81%"></stop>
+ <stop stop-color="#0C9BDB" offset="31.77%"></stop>
+ <stop stop-color="#109EDE" offset="50%"></stop>
+ <stop stop-color="#0C9BDB" offset="68.23%"></stop>
+ <stop stop-color="#0A94D2" offset="79.19%"></stop>
+ <stop stop-color="#0B86C4" offset="88.23%"></stop>
+ <stop stop-color="#2174B1" offset="96.18%"></stop>
+ <stop stop-color="#2867A2" offset="100%"></stop>
+ </linearGradient>
+ </defs>
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+ <g id="P" transform="translate(34.000000, 0.000000)">
+ <path d="M115.654206,0.0700934579 C51.7990654,0.0700934579 0.0700934579,51.8691589 0.0700934579,115.724299 L0.0700934579,299.929907 L80.3971963,299.929907 L80.3971963,225.841121 C91.5420561,229.415888 103.38785,231.378505 115.724299,231.378505 C179.579439,231.378505 231.308411,179.649533 231.308411,115.794393 C231.238318,51.8691589 179.509346,0.0700934579 115.654206,0.0700934579 Z M115.654206,151.051402 C96.1682243,151.051402 80.3271028,135.21028 80.3271028,115.724299 C80.3271028,96.2383178 96.1682243,80.3971963 115.654206,80.3971963 C135.140187,80.3971963 150.981308,96.2383178 150.981308,115.724299 C150.981308,135.21028 135.140187,151.051402 115.654206,151.051402 Z" id="Shape" fill="url(#linearGradient-1)"></path>
+ <path d="M133.247664,1.40186916 C133.247664,1.40186916 198.785047,18.9252336 193.808411,80.3971963 C188.831776,141.799065 137.663551,149.299065 105.490654,150.981308 C73.317757,152.663551 0.0700934579,159.462617 0.0700934579,242.803738 C0.0700934579,242.803738 29.8598131,210.490654 80.3971963,225.771028 C126.168224,239.579439 174.462617,225 202.219626,192.336449 C228.85514,160.934579 238.037383,123.014019 225.841121,80.3271028 C213.785047,38.4813084 173.971963,6.93925234 133.247664,1.40186916 Z" id="Path" fill="url(#linearGradient-2)"></path>
+ </g>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/SDK/Templates/manifest.json b/SDK/Templates/manifest.json
index d5c8df6..0e8ae89 100644
--- a/SDK/Templates/manifest.json
+++ b/SDK/Templates/manifest.json
@@ -1,5 +1,6 @@
{
"name": "pluginName",
"description": "plugin description",
- "version": "version"
+ "version": "version",
+ "iconPath" : "icon.svg"
}
\ No newline at end of file
diff --git a/SDK/pluginStructureProfile.py b/SDK/pluginStructureProfile.py
index d4b5c43..5a66a99 100644
--- a/SDK/pluginStructureProfile.py
+++ b/SDK/pluginStructureProfile.py
@@ -45,7 +45,7 @@
self.pluginDirectory = f"./../{self.pluginName}"
self.manifestFile = f"{self.pluginDirectory}/manifest.json"
self.pluginDataDirectory = f"{self.pluginDirectory}/data"
- self.pluginIcon = f"{self.pluginDataDirectory}/icon.png"
+ self.pluginIcon = f"{self.pluginDataDirectory}/icon.svg"
self.preferencesFile = f"{self.pluginDataDirectory}/preferences.json"
self.packageFile = f"{self.pluginDirectory}/package.json"
self.cmakelistsFile = f"{self.pluginDirectory}/CMakeLists.txt"
@@ -106,7 +106,7 @@
if (not os.path.exists(self.pluginDataDirectory)):
os.mkdir(self.pluginDataDirectory)
if (not os.path.exists(self.pluginIcon)):
- shutil.copyfile("./Templates/icon.png", self.pluginIcon)
+ shutil.copyfile("./Templates/icon.svg", self.pluginIcon)
def saveManifest(self, manifestTxt):
with open(self.manifestFile, 'w') as f: