Use prefers-color-scheme to let the client make the light/dark choice
|
|
@ -1,15 +0,0 @@
|
|||
<?php
|
||||
|
||||
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512); // Liste les dimensions des icones
|
||||
|
||||
$variablesTheme = array(
|
||||
"bg" => "#2a2a2a",
|
||||
"bgField" => "#31363B",
|
||||
"bgTextField" => "#232629",
|
||||
"bgHelp" => "#151616",
|
||||
"border" => "#5f5f5f",
|
||||
"borderHover" => "#808080",
|
||||
"borderFocus" => "white",
|
||||
"text" => "white",
|
||||
"secondaryText" => "#bababa"
|
||||
); // Définit les couleurs du thème
|
||||
|
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 207 B |
|
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 163 B |
|
Before Width: | Height: | Size: 249 B After Width: | Height: | Size: 249 B |
|
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 246 B |
|
Before Width: | Height: | Size: 187 B After Width: | Height: | Size: 187 B |
|
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 293 B |
|
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 217 B |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 198 B |
|
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 231 B |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
27
themes/libreqr/theme.php
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
// List icons dimensions
|
||||
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512);
|
||||
|
||||
$colorScheme = array(
|
||||
// Light theme
|
||||
"bg-light" => "white",
|
||||
"bgField-light" => "#eeeeee",
|
||||
"bgTextField-light" => "#e5e5e5",
|
||||
"bgHelp-light" => "#ececec",
|
||||
"border-light" => "#65666b",
|
||||
"borderHover-light" => "#46484e",
|
||||
"borderFocus-light" => "#2a2a2a",
|
||||
"text-light" => "#2a2a2a",
|
||||
"secondaryText-light" => "#868686",
|
||||
// Dark theme
|
||||
"bg-dark" => "#2a2a2a",
|
||||
"bgField-dark" => "#31363B",
|
||||
"bgTextField-dark" => "#232629",
|
||||
"bgHelp-dark" => "#151616",
|
||||
"border-dark" => "#5f5f5f",
|
||||
"borderHover-dark" => "#808080",
|
||||
"borderFocus-dark" => "white",
|
||||
"text-dark" => "white",
|
||||
"secondaryText-dark" => "#bababa"
|
||||
);
|
||||
|
Before Width: | Height: | Size: 209 B |
|
Before Width: | Height: | Size: 159 B |
|
Before Width: | Height: | Size: 242 B |
|
Before Width: | Height: | Size: 242 B |
|
Before Width: | Height: | Size: 183 B |
|
Before Width: | Height: | Size: 287 B |
|
Before Width: | Height: | Size: 214 B |
|
Before Width: | Height: | Size: 335 B |
|
Before Width: | Height: | Size: 192 B |
|
Before Width: | Height: | Size: 226 B |
|
Before Width: | Height: | Size: 6.2 KiB |
|
|
@ -1,15 +0,0 @@
|
|||
<?php
|
||||
|
||||
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512); // Liste les dimensions des icones
|
||||
|
||||
$variablesTheme = array(
|
||||
"bg" => "white",
|
||||
"bgField" => "#eeeeee",
|
||||
"bgTextField" => "#e5e5e5",
|
||||
"bgHelp" => "#ececec",
|
||||
"border" => "#65666b",
|
||||
"borderHover" => "#46484e",
|
||||
"borderFocus" => "#2a2a2a",
|
||||
"text" => "#2a2a2a",
|
||||
"secondaryText" => "#868686"
|
||||
); // Définit les couleurs du thème
|
||||
|
|
@ -1,15 +1,27 @@
|
|||
<?php
|
||||
|
||||
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512); // Liste les dimensions des icones
|
||||
// List icons dimensions
|
||||
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512);
|
||||
|
||||
$variablesTheme = array(
|
||||
"bg" => "#14678b",
|
||||
"bgField" => "#2186b1",
|
||||
"bgTextField" => "#2186b1",
|
||||
"bgHelp" => "#118abe",
|
||||
"border" => "#42a0c8",
|
||||
"borderHover" => "#87d1f1",
|
||||
"borderFocus" => "#e2f6ff",
|
||||
"text" => "#ffffff",
|
||||
"secondaryText" => "#bbe1f1"
|
||||
); // Définit les couleurs du thème
|
||||
$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,4 +1,9 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
A small script that can be used to generate LibreQR's icons
|
||||
*/
|
||||
|
||||
if (php_sapi_name() == "cli") {
|
||||
if (isset($argv[1])) {
|
||||
$done = array();
|
||||
|
|
|
|||