Browse Source

switch to svg flags

master
Guillaume Castagnino 2 years ago
parent
commit
600b17bda2
  1. 2
      fookb.qml
  2. 4
      fookb.qrc
  3. BIN
      images/fr.png
  4. 5
      images/fr.svg
  5. BIN
      images/ru.png
  6. 5
      images/ru.svg

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

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

BIN
images/fr.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 B

5
images/fr.svg

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

BIN
images/ru.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 383 B

5
images/ru.svg

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

Loading…
Cancel
Save