switch to svg flags
authorGuillaume Castagnino <guillaume.castagnino@rohde-schwarz.com>
Fri, 13 Mar 2020 08:12:37 +0000 (09:12 +0100)
committerGuillaume Castagnino <guillaume.castagnino@rohde-schwarz.com>
Fri, 13 Mar 2020 08:12:37 +0000 (09:12 +0100)
fookb.qml
fookb.qrc
images/fr.png [deleted file]
images/fr.svg [new file with mode: 0644]
images/ru.png [deleted file]
images/ru.svg [new file with mode: 0644]

index 4a0c0d73c1dedad08f6e8e696b4359321bd8407e..5970b0766a0e32619494811e29eac2db71db070e 100644 (file)
--- a/fookb.qml
+++ b/fookb.qml
@@ -7,7 +7,7 @@ SystemTrayIcon {
     /* initial mapping is ru */
     property string lang: "ru"
     icon.source: {
-        return "qrc:/images/" + lang + ".png"
+        return "qrc:/images/" + lang + ".svg"
     }
 
     menu: Menu {
index 4ac095249da124a8ba46eb0bf06419e71108f19a..6fc5c09c271775a5b0f14726613f4afaed4968f6 100644 (file)
--- a/fookb.qrc
+++ b/fookb.qrc
@@ -1,7 +1,7 @@
 <!DOCTYPE RCC><RCC version="1.0">
 <qresource>
     <file>fookb.qml</file>
-    <file>images/fr.png</file>
-    <file>images/ru.png</file>
+    <file>images/fr.svg</file>
+    <file>images/ru.svg</file>
 </qresource>
 </RCC>
diff --git a/images/fr.png b/images/fr.png
deleted file mode 100644 (file)
index 5588751..0000000
Binary files a/images/fr.png and /dev/null differ
diff --git a/images/fr.svg b/images/fr.svg
new file mode 100644 (file)
index 0000000..c43631e
--- /dev/null
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2">
+<rect width="3" height="2" fill="#ED2939"/>
+<rect width="2" height="2" fill="#fff"/>
+<rect width="1" height="2" fill="#002395"/>
+</svg>
diff --git a/images/ru.png b/images/ru.png
deleted file mode 100644 (file)
index f1d09a4..0000000
Binary files a/images/ru.png and /dev/null differ
diff --git a/images/ru.svg b/images/ru.svg
new file mode 100644 (file)
index 0000000..d5533ed
--- /dev/null
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 6">
+<rect fill="#fff" width="9" height="3"/>
+<rect fill="#d52b1e" y="3" width="9" height="3"/>
+<rect fill="#0039a6" y="2" width="9" height="2"/>
+</svg>