mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-26 16:48:08 +00:00
:octocat: added QRMatrix::M_*_DARK constants for convenience
This commit is contained in:
+17
-17
@@ -22,30 +22,30 @@ header('Content-Type: text/html; charset=utf-8');
|
||||
'cssClass' => 'qrcode',
|
||||
'moduleValues' => [
|
||||
// finder
|
||||
(QRMatrix::M_FINDER | QRMatrix::IS_DARK) => '#A71111', // dark (true)
|
||||
QRMatrix::M_FINDER => '#FFBFBF', // light (false)
|
||||
(QRMatrix::M_FINDER_DOT | QRMatrix::IS_DARK) => '#A71111', // finder dot, dark (true)
|
||||
QRMatrix::M_FINDER_DARK => '#A71111', // dark (true)
|
||||
QRMatrix::M_FINDER_DOT => '#A71111', // finder dot, dark (true)
|
||||
QRMatrix::M_FINDER => '#FFBFBF', // light (false)
|
||||
// alignment
|
||||
(QRMatrix::M_ALIGNMENT | QRMatrix::IS_DARK) => '#A70364',
|
||||
QRMatrix::M_ALIGNMENT => '#FFC9C9',
|
||||
QRMatrix::M_ALIGNMENT_DARK => '#A70364',
|
||||
QRMatrix::M_ALIGNMENT => '#FFC9C9',
|
||||
// timing
|
||||
(QRMatrix::M_TIMING | QRMatrix::IS_DARK) => '#98005D',
|
||||
QRMatrix::M_TIMING => '#FFB8E9',
|
||||
QRMatrix::M_TIMING_DARK => '#98005D',
|
||||
QRMatrix::M_TIMING => '#FFB8E9',
|
||||
// format
|
||||
(QRMatrix::M_FORMAT | QRMatrix::IS_DARK) => '#003804',
|
||||
QRMatrix::M_FORMAT => '#00FB12',
|
||||
QRMatrix::M_FORMAT_DARK => '#003804',
|
||||
QRMatrix::M_FORMAT => '#00FB12',
|
||||
// version
|
||||
(QRMatrix::M_VERSION | QRMatrix::IS_DARK) => '#650098',
|
||||
QRMatrix::M_VERSION => '#E0B8FF',
|
||||
QRMatrix::M_VERSION_DARK => '#650098',
|
||||
QRMatrix::M_VERSION => '#E0B8FF',
|
||||
// data
|
||||
(QRMatrix::M_DATA | QRMatrix::IS_DARK) => '#4A6000',
|
||||
QRMatrix::M_DATA => '#ECF9BE',
|
||||
QRMatrix::M_DATA_DARK => '#4A6000',
|
||||
QRMatrix::M_DATA => '#ECF9BE',
|
||||
// darkmodule
|
||||
(QRMatrix::M_DARKMODULE | QRMatrix::IS_DARK) => '#080063',
|
||||
QRMatrix::M_DARKMODULE => '#080063',
|
||||
// separator
|
||||
QRMatrix::M_SEPARATOR => '#AFBFBF',
|
||||
QRMatrix::M_SEPARATOR => '#AFBFBF',
|
||||
// quietzone
|
||||
QRMatrix::M_QUIETZONE => '#DDDDDD',
|
||||
QRMatrix::M_QUIETZONE => '#DDDDDD',
|
||||
],
|
||||
]);
|
||||
|
||||
@@ -58,7 +58,7 @@ header('Content-Type: text/html; charset=utf-8');
|
||||
<title>QRCode test</title>
|
||||
<style>
|
||||
div.qrcode{
|
||||
margin: 5em;
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
/* rows */
|
||||
|
||||
Reference in New Issue
Block a user