Skip to content
Snippets Groups Projects
Commit d00bf41e authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

Icons to svg

add svg icons to plugins
change iconPath from png to svg
add iconPath to manifests

GitLab: #10
Change-Id: I2dd6d58636e926f5be577b68f8caa38d45068687
parent 05abe086
No related branches found
No related tags found
No related merge requests found
<?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
{
"name": "pluginName",
"description": "plugin description",
"version": "version"
"version": "version",
"iconPath" : "icon.svg"
}
\ No newline at end of file
......@@ -45,7 +45,7 @@ class PluginStructure(UserInfos):
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 @@ class PluginStructure(UserInfos):
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:
......
{
"name": "TensorflowSegmentation",
"description": "TensorflowSegmentation Plugin with Tensorflow 2.1.1",
"version": "1.0.2"
"version": "1.0.2",
"iconPath" : "icon.png"
}
\ No newline at end of file
......@@ -72,7 +72,7 @@ std::map<std::string, std::string>
PluginMediaHandler::getCallMediaHandlerDetails()
{
return {{"name", NAME},
{"iconPath", datapath_ + sep + "icon.png"},
{"iconPath", datapath_ + sep + "icon.svg"},
{"pluginId", id()},
{"attached", attached_},
{"dataType", "1"}};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment