switch to svg flags

This commit is contained in:
Guillaume Castagnino 2020-03-13 09:12:37 +01:00
parent dc03d17639
commit 600b17bda2
6 changed files with 13 additions and 3 deletions

View File

@ -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 {

View File

@ -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>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 B

5
images/fr.svg Normal file
View File

@ -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>

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 383 B

5
images/ru.svg Normal file
View File

@ -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>

After

Width:  |  Height:  |  Size: 207 B