branche initiale
BIN
themes/libreqr/icons/128.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
themes/libreqr/icons/16.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
themes/libreqr/icons/192.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
themes/libreqr/icons/256.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
themes/libreqr/icons/32.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
themes/libreqr/icons/384.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
BIN
themes/libreqr/icons/48.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
themes/libreqr/icons/512.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
BIN
themes/libreqr/icons/64.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
themes/libreqr/icons/96.png
Normal file
After Width: | Height: | Size: 14 KiB |
259
themes/libreqr/libreqr.svg
Executable file
@ -0,0 +1,259 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg height="16" width="16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="1" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="2" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="3" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="4" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="5" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="6" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="7" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="8" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="9" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="10" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="11" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="12" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="13" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="14" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="0" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="1" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="1" y="1" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="2" y="1" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="3" y="1" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="4" y="1" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="5" y="1" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="6" y="1" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="7" y="1" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="8" y="1" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="9" y="1" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="10" y="1" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="11" y="1" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="12" y="1" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="13" y="1" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="14" y="1" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="1" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="2" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="1" y="2" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="2" y="2" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="3" y="2" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="4" y="2" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="5" y="2" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="6" y="2" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="7" y="2" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="8" y="2" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="9" y="2" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="10" y="2" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="11" y="2" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="12" y="2" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="13" y="2" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="14" y="2" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="2" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="3" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="1" y="3" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="2" y="3" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="3" y="3" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="4" y="3" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="5" y="3" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="6" y="3" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="7" y="3" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="8" y="3" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="9" y="3" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="10" y="3" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="11" y="3" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="12" y="3" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="13" y="3" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="14" y="3" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="3" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="4" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="1" y="4" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="2" y="4" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="3" y="4" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="4" y="4" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="5" y="4" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="6" y="4" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="7" y="4" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="8" y="4" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="9" y="4" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="10" y="4" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="11" y="4" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="12" y="4" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="13" y="4" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="14" y="4" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="4" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="1" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="2" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="3" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="4" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="5" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="6" y="5" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="7" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="8" y="5" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="9" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="10" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="11" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="12" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="13" y="5" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="14" y="5" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="5" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="1" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="2" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="3" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="4" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="5" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="6" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="7" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="8" y="6" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="9" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="10" y="6" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="11" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="12" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="13" y="6" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="14" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="6" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="7" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="1" y="7" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="2" y="7" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="3" y="7" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="4" y="7" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="5" y="7" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="6" y="7" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="7" y="7" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="8" y="7" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="9" y="7" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="10" y="7" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="11" y="7" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="12" y="7" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="13" y="7" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="14" y="7" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="7" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="8" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="1" y="8" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="2" y="8" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="3" y="8" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="4" y="8" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="5" y="8" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="6" y="8" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="7" y="8" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="8" y="8" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="9" y="8" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="10" y="8" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="11" y="8" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="12" y="8" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="13" y="8" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="14" y="8" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="8" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="9" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="1" y="9" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="2" y="9" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="3" y="9" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="4" y="9" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="5" y="9" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="6" y="9" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="7" y="9" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="8" y="9" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="9" y="9" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="10" y="9" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="11" y="9" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="12" y="9" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="13" y="9" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="14" y="9" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="9" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="10" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="1" y="10" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="2" y="10" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="3" y="10" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="4" y="10" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="5" y="10" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="6" y="10" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="7" y="10" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="8" y="10" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="9" y="10" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="10" y="10" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="11" y="10" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="12" y="10" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="13" y="10" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="14" y="10" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="10" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="11" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="1" y="11" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="2" y="11" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="3" y="11" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="4" y="11" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="5" y="11" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="6" y="11" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="7" y="11" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="8" y="11" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="9" y="11" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="10" y="11" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="11" y="11" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="12" y="11" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="13" y="11" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="14" y="11" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="11" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="12" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="1" y="12" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="2" y="12" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="3" y="12" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="4" y="12" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="5" y="12" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="6" y="12" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="7" y="12" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="8" y="12" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="9" y="12" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="10" y="12" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="11" y="12" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="12" y="12" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="13" y="12" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="14" y="12" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="12" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="13" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="1" y="13" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="2" y="13" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="3" y="13" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="4" y="13" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="5" y="13" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="6" y="13" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="7" y="13" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="8" y="13" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="9" y="13" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="10" y="13" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="11" y="13" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="12" y="13" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="13" y="13" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="14" y="13" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="13" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="14" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="1" y="14" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="2" y="14" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="3" y="14" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="4" y="14" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="5" y="14" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="6" y="14" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="7" y="14" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="8" y="14" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="9" y="14" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="10" y="14" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="11" y="14" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="12" y="14" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="13" y="14" />
|
||||||
|
<rect fill="#fff" height="1" width="1" x="14" y="14" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="14" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="0" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="1" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="2" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="3" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="4" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="5" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="6" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="7" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="8" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="9" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="10" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="11" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="12" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="13" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="14" y="15" />
|
||||||
|
<rect fill="#000" height="1" width="1" x="15" y="15" />
|
||||||
|
</svg>
|
After Width: | Height: | Size: 14 KiB |
1
themes/libreqr/logo.less
Executable file
@ -0,0 +1 @@
|
|||||||
|
|
36
themes/libreqr/theme.php
Executable file
@ -0,0 +1,36 @@
|
|||||||
|
<?php // This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
|
||||||
|
|
||||||
|
// List icons dimensions
|
||||||
|
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512);
|
||||||
|
|
||||||
|
$colorScheme = array(
|
||||||
|
// Light theme
|
||||||
|
"text-light" => "black",
|
||||||
|
"bg-light" => "#ffffff", // Must be a long hexadecimal color
|
||||||
|
"bgField-light" => "white",
|
||||||
|
"bgHelp-light" => "white",
|
||||||
|
"bgTextarea-light" => "white",
|
||||||
|
"textareaText-light" => "black",
|
||||||
|
"textareaPlaceholder-light" => "#868686",
|
||||||
|
"border-light" => "black",
|
||||||
|
"borderHover-light" => "black",
|
||||||
|
"borderFocus-light" => "black",
|
||||||
|
"borderHelp-light" => "black",
|
||||||
|
"borderQr-light" => "black",
|
||||||
|
// Dark theme
|
||||||
|
"text-dark" => "white",
|
||||||
|
"bg-dark" => "#000000", // Must be a long hexadecimal color
|
||||||
|
"bgField-dark" => "#000000",
|
||||||
|
"bgHelp-dark" => "#000000",
|
||||||
|
"bgTextarea-dark" => "#000000",
|
||||||
|
"textareaText-dark" => "white",
|
||||||
|
"textareaPlaceholder-dark" => "#bababa",
|
||||||
|
"border-dark" => "white",
|
||||||
|
"borderWidth-dark" => "2px",
|
||||||
|
"borderHover-dark" => "white",
|
||||||
|
"borderHoverWidth-dark" => "3px",
|
||||||
|
"borderFocus-dark" => "white",
|
||||||
|
"borderFocusWidth-dark" => "4px",
|
||||||
|
"borderHelp-dark" => "white",
|
||||||
|
"borderQr-dark" => "white",
|
||||||
|
);
|
36
themes/resize.php
Executable file
@ -0,0 +1,36 @@
|
|||||||
|
<?php // This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
|
||||||
|
|
||||||
|
/*
|
||||||
|
A small script that can be used to generate LibreQR's icons
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (php_sapi_name() == "cli") {
|
||||||
|
if (isset($argv[1])) {
|
||||||
|
$done = array();
|
||||||
|
$line = "";
|
||||||
|
$theme = $argv[1];
|
||||||
|
|
||||||
|
for ($pow = 0; $pow <= 3; $pow++) {
|
||||||
|
for ($mult = 1; $mult <= 4; $mult++) {
|
||||||
|
$size = $mult * 2**(4+$pow);
|
||||||
|
if (!in_array($size, $done)) {
|
||||||
|
shell_exec("convert themes/" . $theme . "/icons/source.png -scale " . $size . "x" . $size . " themes/" . $theme . "/icons/" . $size . ".png");
|
||||||
|
shell_exec("pngquant -f themes/" . $theme . "/icons/" . $size . ".png --output themes/" . $theme . "/icons/" . $size . ".png");
|
||||||
|
$done[] = $size;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($done as $done) {
|
||||||
|
$line = $line . ", " . $done;
|
||||||
|
}
|
||||||
|
|
||||||
|
echo substr($line, 2) . "\n";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
echo "Usage: php themes/resize.php <theme name>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
echo "Available only via CLI for security reasons. Use 'php themes/resize.php <theme name>'";
|
||||||
|
}
|