@ -1,6 +1,6 @@
|
||||
{ |
||||
"require": { |
||||
"endroid/qr-code": "^4.4", |
||||
"wikimedia/less.php": "^3.1" |
||||
} |
||||
"require": { |
||||
"endroid/qr-code": "^4.4", |
||||
"wikimedia/less.php": "^3.1" |
||||
} |
||||
} |
||||
|
@ -1,41 +1,41 @@
|
||||
<?php // This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
|
||||
$loc = array( |
||||
'subtitle' => "QR codes generator", |
||||
'description' => "Generate QR codes freely. Choose content, size, colors…", |
||||
'subtitle' => "QR codes generator", |
||||
'description' => "Generate QR codes freely. Choose content, size, colors…", |
||||
|
||||
'label_content' => "Text to encode", |
||||
'label_redundancy' => "Redundancy rate", |
||||
'label_margin' => "Margin size", |
||||
'label_size' => "Image size", |
||||
'label_bgColor' => "Background color", |
||||
'label_mainColor' => "Foreground color", |
||||
'label_content' => "Text to encode", |
||||
'label_redundancy' => "Redundancy rate", |
||||
'label_margin' => "Margin size", |
||||
'label_size' => "Image size", |
||||
'label_bgColor' => "Background color", |
||||
'label_mainColor' => "Foreground color", |
||||
|
||||
'placeholder' => "Enter the text to encode in the QR code", |
||||
'placeholder_pixels' => "automatic", |
||||
'placeholder' => "Enter the text to encode in the QR code", |
||||
'placeholder_pixels' => "automatic", |
||||
|
||||
'help_content' => " |
||||
<p>You can encode whatever text you want.</p> |
||||
<p>Software which decodes these QR codes could suggest to open them with dedicated software, depending on their <a href='https://en.wikipedia.org/wiki/List_of_URI_schemes' hreflang='en' rel='help external noreferrer'>URI scheme</a>.</p> |
||||
<p>For instance, to open a webpage: <code>https://www.example/</code></p> |
||||
<p>To send an email: <code>mailto:contact@email.example</code></p> |
||||
<p>To share geographic coordinates: <code>geo:48.867564,2.364057</code></p> |
||||
", |
||||
'help_redundancy' => "Redundancy is the duplication of information in the QR code to correct errors during decoding. A higher rate will produce a bigger QR code, but will have a better chance of being decoded correctly.", |
||||
'help_margin' => "Number of pixels in each white band around the QR code.", |
||||
'help_size' => "Image width and height in pixels, without the margin.", |
||||
'help_content' => " |
||||
<p>You can encode whatever text you want.</p> |
||||
<p>Software which decodes these QR codes could suggest to open them with dedicated software, depending on their <a href='https://en.wikipedia.org/wiki/List_of_URI_schemes' hreflang='en' rel='help external noreferrer'>URI scheme</a>.</p> |
||||
<p>For instance, to open a webpage: <code>https://www.example/</code></p> |
||||
<p>To send an email: <code>mailto:contact@email.example</code></p> |
||||
<p>To share geographic coordinates: <code>geo:48.867564,2.364057</code></p> |
||||
", |
||||
'help_redundancy' => "Redundancy is the duplication of information in the QR code to correct errors during decoding. A higher rate will produce a bigger QR code, but will have a better chance of being decoded correctly.", |
||||
'help_margin' => "Number of pixels in each white band around the QR code.", |
||||
'help_size' => "Image width and height in pixels, without the margin.", |
||||
|
||||
'button_create' => "Generate", |
||||
'button_download' => "Save this QR code", |
||||
'button_create' => "Generate", |
||||
'button_download' => "Save this QR code", |
||||
|
||||
'title_showOnlyQR' => "Show this QR code only", |
||||
'title_showOnlyQR' => "Show this QR code only", |
||||
|
||||
'alt_QR_before' => 'QR code meaning "', |
||||
'alt_QR_after' => '"', |
||||
'alt_QR_before' => 'QR code meaning "', |
||||
'alt_QR_after' => '"', |
||||
|
||||
'metaText_qr' => " |
||||
<h3>What's a QR code?</h3> |
||||
A QR code is a 2 dimensional barcode in which text is written in binary. It can be decoded with a device equipped with a photo sensor and an adequate software. |
||||
<a href='https://en.wikipedia.org/wiki/QR_code' hreflang='en' rel='help external noreferrer'>QR code on Wikipedia</a>. |
||||
", |
||||
'metaText_legal' => "LibreQR " . LIBREQR_VERSION . " is a free software whose <a href='https://code.antopie.org/miraty/libreqr/' rel='external noreferrer'>source code</a> is available under the terms of the <abbr title='GNU Affero General Public License version 3 or any later version'><a href='LICENSE.html' hreflang='en' rel='license'>AGPLv3</a>+</abbr>.", |
||||
'metaText_qr' => " |
||||
<h3>What's a QR code?</h3> |
||||
A QR code is a 2 dimensional barcode in which text is written in binary. It can be decoded with a device equipped with a photo sensor and an adequate software. |
||||
<a href='https://en.wikipedia.org/wiki/QR_code' hreflang='en' rel='help external noreferrer'>QR code on Wikipedia</a>. |
||||
", |
||||
'metaText_legal' => "LibreQR " . LIBREQR_VERSION . " is a free software whose <a href='https://code.antopie.org/miraty/libreqr/' rel='external noreferrer'>source code</a> is available under the terms of the <abbr title='GNU Affero General Public License version 3 or any later version'><a href='LICENSE.html' hreflang='en' rel='license'>AGPLv3</a>+</abbr>.", |
||||
); |
||||
|
@ -1,41 +1,41 @@
|
||||
<?php // This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
|
||||
$loc = array( |
||||
'subtitle' => "Générer des codes QR", |
||||
'description' => "Générer des codes QR librement. Choix du contenu, de la taille, des couleurs…", |
||||
'subtitle' => "Générer des codes QR", |
||||
'description' => "Générer des codes QR librement. Choix du contenu, de la taille, des couleurs…", |
||||
|
||||
'label_content' => "Texte à encoder", |
||||
'label_redundancy' => "Taux de redondance", |
||||
'label_margin' => "Taille de la marge", |
||||
'label_size' => "Taille de l'image", |
||||
'label_bgColor' => "Couleur de fond", |
||||
'label_mainColor' => "Couleur de premier plan", |
||||
'label_content' => "Texte à encoder", |
||||
'label_redundancy' => "Taux de redondance", |
||||
'label_margin' => "Taille de la marge", |
||||
'label_size' => "Taille de l'image", |
||||
'label_bgColor' => "Couleur de fond", |
||||
'label_mainColor' => "Couleur de premier plan", |
||||
|
||||
'placeholder' => "Entrez le texte à encoder dans le code QR", |
||||
'placeholder_pixels' => "automatique", |
||||
'placeholder' => "Entrez le texte à encoder dans le code QR", |
||||
'placeholder_pixels' => "automatique", |
||||
|
||||
'help_content' => " |
||||
<p>Vous pouvez encoder ce que vous voulez sous forme de texte.</p> |
||||
<p>Les logiciels qui décodent ces codes QR pourraient proposer de les ouvrir avec un logiciel dédié, en fonction de leur <a href='https://fr.wikipedia.org/wiki/Sch%C3%A9ma_d%27URI' hreflang='fr' rel='help external noreferrer'>schéma d'URI</a>.</p> |
||||
<p>Par exemple, pour ouvrir une page Web : <code>https://www.example/</code></p> |
||||
<p>Pour envoyer un mail : <code>mailto:contact@email.example</code></p> |
||||
<p>Pour partager des coordonnées géographique : <code>geo:48.867564,2.364057</code></p> |
||||
", |
||||
'help_redundancy' => "La redondance est la duplication des informations dans le code QR afin de corriger les erreurs lors du décodage. Un taux plus élevé produira un code QR plus grand, mais aura plus de chance d'être décodé correctement.", |
||||
'help_margin' => "Nombre de pixels de chaque bande blanche autour du code QR.", |
||||
'help_size' => "Largeur et hauteur de l'image en pixels, sans la marge.", |
||||
'help_content' => " |
||||
<p>Vous pouvez encoder ce que vous voulez sous forme de texte.</p> |
||||
<p>Les logiciels qui décodent ces codes QR pourraient proposer de les ouvrir avec un logiciel dédié, en fonction de leur <a href='https://fr.wikipedia.org/wiki/Sch%C3%A9ma_d%27URI' hreflang='fr' rel='help external noreferrer'>schéma d'URI</a>.</p> |
||||
<p>Par exemple, pour ouvrir une page Web : <code>https://www.example/</code></p> |
||||
<p>Pour envoyer un mail : <code>mailto:contact@email.example</code></p> |
||||
<p>Pour partager des coordonnées géographique : <code>geo:48.867564,2.364057</code></p> |
||||
", |
||||
'help_redundancy' => "La redondance est la duplication des informations dans le code QR afin de corriger les erreurs lors du décodage. Un taux plus élevé produira un code QR plus grand, mais aura plus de chance d'être décodé correctement.", |
||||
'help_margin' => "Nombre de pixels de chaque bande blanche autour du code QR.", |
||||
'help_size' => "Largeur et hauteur de l'image en pixels, sans la marge.", |
||||
|
||||
'button_create' => "Générer", |
||||
'button_download' => "Enregistrer ce code QR", |
||||
'button_create' => "Générer", |
||||
'button_download' => "Enregistrer ce code QR", |
||||
|
||||
'title_showOnlyQR' => "Afficher uniquement ce code QR", |
||||
'title_showOnlyQR' => "Afficher uniquement ce code QR", |
||||
|
||||
'alt_QR_before' => "Code QR signifiant « ", |
||||
'alt_QR_after' => " »", |
||||
'alt_QR_before' => "Code QR signifiant « ", |
||||
'alt_QR_after' => " »", |
||||
|
||||
'metaText_qr' => " |
||||
<h3>Qu'est-ce qu'un code QR ?</h3> |
||||
Un code QR est un code-barres en 2 dimensions dans lequel du texte est inscrit en binaire. Il peut être décodé avec un appareil muni d'un capteur photo et d'un logiciel adéquat. |
||||
<a href='https://fr.wikipedia.org/wiki/Code_QR' hreflang='fr' rel='help external noreferrer'>Code QR sur Wikipédia</a>. |
||||
", |
||||
'metaText_legal' => "LibreQR " . LIBREQR_VERSION . " est un logiciel libre dont le <a href='https://code.antopie.org/miraty/libreqr/' rel='external noreferrer'>code source</a> est disponible selon les termes de l'<abbr title='GNU Affero General Public License version 3 ou toute version ultérieure'><a href='LICENSE.html' hreflang='en' rel='license'>AGPLv3</a>+</abbr>.", |
||||
'metaText_qr' => " |
||||
<h3>Qu'est-ce qu'un code QR ?</h3> |
||||
Un code QR est un code-barres en 2 dimensions dans lequel du texte est inscrit en binaire. Il peut être décodé avec un appareil muni d'un capteur photo et d'un logiciel adéquat. |
||||
<a href='https://fr.wikipedia.org/wiki/Code_QR' hreflang='fr' rel='help external noreferrer'>Code QR sur Wikipédia</a>. |
||||
", |
||||
'metaText_legal' => "LibreQR " . LIBREQR_VERSION . " est un logiciel libre dont le <a href='https://code.antopie.org/miraty/libreqr/' rel='external noreferrer'>code source</a> est disponible selon les termes de l'<abbr title='GNU Affero General Public License version 3 ou toute version ultérieure'><a href='LICENSE.html' hreflang='en' rel='license'>AGPLv3</a>+</abbr>.", |
||||
); |
||||
|
@ -1,32 +1,32 @@
|
||||
<?php // This file is part of LibreQR, which is distributed under the GNU AGPLv3+ license
|
||||
$loc = array( |
||||
'subtitle' => "subtitle", |
||||
'description' => "description", |
||||
'subtitle' => "subtitle", |
||||
'description' => "description", |
||||
|
||||
'label_content' => "label_content", |
||||
'label_redundancy' => "label_redundancy", |
||||
'label_margin' => "label_margin", |
||||
'label_size' => "label_size", |
||||
'label_bgColor' => "label_bgColor", |
||||
'label_mainColor' => "label_mainColor", |
||||
'label_content' => "label_content", |
||||
'label_redundancy' => "label_redundancy", |
||||
'label_margin' => "label_margin", |
||||
'label_size' => "label_size", |
||||
'label_bgColor' => "label_bgColor", |
||||
'label_mainColor' => "label_mainColor", |
||||
|
||||
'placeholder' => "placeholder", |
||||
'placeholder' => "placeholder", |
||||
|
||||
'value_default' => "value_default", |
||||
'value_default' => "value_default", |
||||
|
||||
'help_content' => "help_content", |
||||
'help_redundancy' => "help_redundancy", |
||||
'help_margin' => "help_margin", |
||||
'help_size' => "help_size", |
||||
'help_content' => "help_content", |
||||
'help_redundancy' => "help_redundancy", |
||||
'help_margin' => "help_margin", |
||||
'help_size' => "help_size", |
||||
|
||||
'button_create' => "button_create", |
||||
'button_download' => "button_download", |
||||
'button_create' => "button_create", |
||||
'button_download' => "button_download", |
||||
|
||||
'title_showOnlyQR' => "title_showOnlyQR", |
||||
'title_showOnlyQR' => "title_showOnlyQR", |
||||
|
||||
'alt_QR_before' => "alt_QR_before", |
||||
'alt_QR_after' => "alt_QR_after", |
||||
'alt_QR_before' => "alt_QR_before", |
||||
'alt_QR_after' => "alt_QR_after", |
||||
|
||||
'metaText_qr' => "metaText_qr", |
||||
'metaText_legal' => "metaText_legal", |
||||
'metaText_qr' => "metaText_qr", |
||||
'metaText_legal' => "metaText_legal", |
||||
); |
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@ -1,7 +1,7 @@
|
||||
|
||||
:root { |
||||
// base64 -w 0 logo-light.png |
||||
--logo-light: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX///8AAABVwtN+AAAAWElEQVQoz43O0RHAMAgCUDZg/y3ZgKJtP8PF/LzkiApcFG3IVgVICB0cqCPH368jMvCffsLuPWMLmOQ+FMBxNqvgXCZ8xixGsSNppWsF33hFaLjD27Xioh5ZH8ftcymlGAAAAABJRU5ErkJggg=="); |
||||
// base64 -w 0 logo-dark.png |
||||
--logo-dark: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX///8AAABVwtN+AAAAXklEQVQoz43SsRHAIAxDUW3g/bfUBoqckDL/AgWvMFgcKGcIYCkjDSJ2JgwvhhFHZ9cn2vDt/oUNvkcS3MpNRuh0ew6iyyYjbDCPGa2+WxL8lCN6vZYy+nBxED/+xgWM9DYk64ncIgAAAABJRU5ErkJggg=="); |
||||
// base64 -w 0 logo-light.png |
||||
--logo-light: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX///8AAABVwtN+AAAAWElEQVQoz43O0RHAMAgCUDZg/y3ZgKJtP8PF/LzkiApcFG3IVgVICB0cqCPH368jMvCffsLuPWMLmOQ+FMBxNqvgXCZ8xixGsSNppWsF33hFaLjD27Xioh5ZH8ftcymlGAAAAABJRU5ErkJggg=="); |
||||
// base64 -w 0 logo-dark.png |
||||
--logo-dark: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQMAAACQp+OdAAAABlBMVEX///8AAABVwtN+AAAAXklEQVQoz43SsRHAIAxDUW3g/bfUBoqckDL/AgWvMFgcKGcIYCkjDSJ2JgwvhhFHZ9cn2vDt/oUNvkcS3MpNRuh0ew6iyyYjbDCPGa2+WxL8lCN6vZYy+nBxED/+xgWM9DYk64ncIgAAAABJRU5ErkJggg=="); |
||||
} |
||||
|
Before Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 249 B |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 354 B |
Before Width: | Height: | Size: 198 B |
Before Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 6.3 KiB |
@ -1,27 +0,0 @@
|
||||
<?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 |
||||
"bg-light" => "#14678b", |
||||
"bgField-light" => "#2186b1", |
||||
"bgTextField-light" => "#2186b1", |
||||
"bgHelp-light" => "#118abe", |
||||
"border-light" => "#42a0c8", |
||||
"borderHover-light" => "#87d1f1", |
||||
"borderFocus-light" => "#e2f6ff", |
||||
"text-light" => "#ffffff", |
||||
"secondaryText-light" => "#bbe1f1", |
||||
// Dark theme |
||||
"bg-dark" => "#14678b", |
||||
"bgField-dark" => "#2186b1", |
||||
"bgTextField-dark" => "#2186b1", |
||||
"bgHelp-dark" => "#118abe", |
||||
"border-dark" => "#42a0c8", |
||||
"borderHover-dark" => "#87d1f1", |
||||
"borderFocus-dark" => "#e2f6ff", |
||||
"text-dark" => "#ffffff", |
||||
"secondaryText-dark" => "#bbe1f1" |
||||
); |
@ -1,36 +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 |
||||
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]; |
||||
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; |
||||
} |
||||
} |
||||
} |
||||
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; |
||||
} |
||||
foreach ($done as $done) { |
||||
$line = $line . ", " . $done; |
||||
} |
||||
|
||||
echo substr($line, 2) . "\n"; |
||||
echo substr($line, 2) . "\n"; |
||||
|
||||
} else { |
||||
echo "Usage: php themes/resize.php <theme name>\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>'"; |
||||
echo "Available only via CLI for security reasons. Use 'php themes/resize.php <theme name>'"; |
||||
} |
||||
|