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/AutoAnswer/BotChatHandler.cpp b/AutoAnswer/BotChatHandler.cpp
index fa70e47..c700ea5 100644
--- a/AutoAnswer/BotChatHandler.cpp
+++ b/AutoAnswer/BotChatHandler.cpp
@@ -62,7 +62,7 @@
std::map<std::string, std::string>
BotChatHandler::getChatHandlerDetails()
{
- return {{"name", NAME}, {"iconPath", datapath_ + sep + "icon.png"}, {"pluginId", id()}};
+ return {{"name", NAME}, {"iconPath", datapath_ + sep + "icon.svg"}, {"pluginId", id()}};
}
void
diff --git a/AutoAnswer/data/icon.png b/AutoAnswer/data/icon.png
index 2ce0aab..e84fc73 100644
--- a/AutoAnswer/data/icon.png
+++ b/AutoAnswer/data/icon.png
Binary files differ
diff --git a/AutoAnswer/data/icon.svg b/AutoAnswer/data/icon.svg
new file mode 100644
index 0000000..62d6dae
--- /dev/null
+++ b/AutoAnswer/data/icon.svg
@@ -0,0 +1,31 @@
+<?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>a</title>
+ <defs>
+ <linearGradient x1="76.2299879%" y1="13.0862101%" x2="30.8422379%" y2="92.6706692%" id="linearGradient-1">
+ <stop stop-color="#20A5A1" offset="0%"></stop>
+ <stop stop-color="#28F4F9" offset="100%"></stop>
+ </linearGradient>
+ </defs>
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+ <g id="a" fill-rule="nonzero">
+ <g transform="translate(18.000000, 0.000000)">
+ <g id="Group" transform="translate(0.000000, 36.084906)">
+ <path d="M204.339623,204.198113 L132.169811,204.198113 C92.4056604,204.198113 60,171.863208 60,132.028302 C60,92.2641509 92.759434,58.9386792 132.523585,58.9386792 L120.919811,37.6415094 L65.3773585,47.2641509 L12.0283019,84.0566038 L4.45754717,99.0566038 C1.69811321,109.599057 0.283018868,120.707547 0.283018868,132.099057 C0.283018868,204.764151 59.4339623,263.915094 132.169811,263.915094 L196.981132,263.915094 L219.410377,245.943396 L223.79717,215.306604 L204.339623,204.198113 Z" id="Path" fill="url(#linearGradient-1)"></path>
+ <path d="M263.632075,168.608491 C263.632075,182.476415 263.632075,217.146226 263.632075,217.146226 C263.632075,217.146226 263.278302,224.433962 253.231132,229.95283 C243.183962,235.471698 196.061321,263.915094 196.061321,263.915094 C196.061321,263.915094 204.551887,259.740566 204.551887,247.641509 C204.551887,235.542453 204.551887,201.580189 204.551887,201.580189 L204.551887,132.099057 C204.551887,132.099057 206.179245,80.5896226 153.75,63.4669811 C101.320755,46.3443396 27.5235849,67.0754717 3.11320755,101.886792 C3.11320755,101.886792 15.2830189,31.0613208 86.6037736,8.06603774 C157.924528,-14.9292453 202.853774,16.9811321 227.334906,41.6037736 C251.816038,66.2264151 263.632075,94.9528302 263.632075,168.608491 Z" id="Path" fill="#28F4F9"></path>
+ </g>
+ <g id="Group" transform="translate(218.632075, 152.830189)" fill="#000000">
+ <ellipse id="Oval" cx="29.2216981" cy="8.49056604" rx="5.30660377" ry="8.3490566"></ellipse>
+ <ellipse id="Oval" cx="5.80188679" cy="18.8915094" rx="5.30660377" ry="8.3490566"></ellipse>
+ </g>
+ <g id="Group" transform="translate(113.207547, 173.349057)" fill="#000000">
+ <path d="M36.509434,0.495283019 C39.3396226,0.495283019 41.6745283,2.83018868 41.6745283,5.66037736 C41.6745283,8.49056604 39.3396226,10.8254717 36.509434,10.8254717 C33.6792453,10.8254717 31.3443396,8.49056604 31.3443396,5.66037736 C31.4150943,2.83018868 33.6792453,0.495283019 36.509434,0.495283019 Z" id="Path"></path>
+ <path d="M20.8726415,0.495283019 C23.7028302,0.495283019 26.0377358,2.83018868 26.0377358,5.66037736 C26.0377358,8.49056604 23.7028302,10.8254717 20.8726415,10.8254717 C18.0424528,10.8254717 15.7075472,8.49056604 15.7075472,5.66037736 C15.7075472,2.83018868 18.0424528,0.495283019 20.8726415,0.495283019 Z" id="Path"></path>
+ <path d="M5.16509434,0.495283019 C7.99528302,0.495283019 10.3301887,2.83018868 10.3301887,5.66037736 C10.3301887,8.49056604 7.99528302,10.8254717 5.16509434,10.8254717 C2.33490566,10.8254717 0,8.49056604 0,5.66037736 C0,2.83018868 2.33490566,0.495283019 5.16509434,0.495283019 Z" id="Path"></path>
+ </g>
+ <path d="M134.080189,0.353773585 C128.70283,0.353773585 124.316038,4.74056604 124.316038,10.1179245 C124.316038,15.495283 128.70283,19.8820755 134.080189,19.8820755 C139.457547,19.8820755 143.84434,15.495283 143.84434,10.1179245 C143.84434,4.74056604 139.457547,0.353773585 134.080189,0.353773585 Z" id="Path" fill="#28F4F9"></path>
+ <rect id="Rectangle" fill="#28F4F9" x="133.089623" y="18.75" width="1.98113208" height="21.5801887"></rect>
+ </g>
+ </g>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/AutoAnswer/manifest.json b/AutoAnswer/manifest.json
index bcb9a4b..5855af7 100644
--- a/AutoAnswer/manifest.json
+++ b/AutoAnswer/manifest.json
@@ -1,5 +1,6 @@
{
"name": "AutoAnswer",
"description" : "A plugin that automatically answers with given text",
- "version" : "0.1.0"
+ "version" : "0.1.0",
+ "iconPath" : "icon.svg"
}