diff --git a/examples/text.php b/examples/text.php index 74003f622..fe33ec5d7 100644 --- a/examples/text.php +++ b/examples/text.php @@ -21,30 +21,23 @@ $options->quietzoneSize = 2; $options->outputType = QROutputInterface::STRING_TEXT; $options->eol = "\n"; $options->textLineStart = str_repeat(' ', 6); -$options->textDark = QRString::ansi8('██', 253); -$options->textLight = QRString::ansi8('░░', 253); $options->moduleValues = [ - // finder QRMatrix::M_FINDER_DARK => QRString::ansi8('██', 124), QRMatrix::M_FINDER => QRString::ansi8('░░', 124), QRMatrix::M_FINDER_DOT => QRString::ansi8('██', 124), - // alignment QRMatrix::M_ALIGNMENT_DARK => QRString::ansi8('██', 2), QRMatrix::M_ALIGNMENT => QRString::ansi8('░░', 2), - // timing QRMatrix::M_TIMING_DARK => QRString::ansi8('██', 184), QRMatrix::M_TIMING => QRString::ansi8('░░', 184), - // format QRMatrix::M_FORMAT_DARK => QRString::ansi8('██', 200), QRMatrix::M_FORMAT => QRString::ansi8('░░', 200), - // version QRMatrix::M_VERSION_DARK => QRString::ansi8('██', 21), QRMatrix::M_VERSION => QRString::ansi8('░░', 21), - // dark module QRMatrix::M_DARKMODULE => QRString::ansi8('██', 53), - // data QRMatrix::M_DATA_DARK => QRString::ansi8('██', 166), QRMatrix::M_DATA => QRString::ansi8('░░', 166), + QRMatrix::M_QUIETZONE => QRString::ansi8('░░', 253), + QRMatrix::M_SEPARATOR => QRString::ansi8('░░', 253), ]; diff --git a/src/Output/QRString.php b/src/Output/QRString.php index 4f64b5b49..db73b5fa5 100644 --- a/src/Output/QRString.php +++ b/src/Output/QRString.php @@ -38,7 +38,7 @@ class QRString extends QROutputAbstract{ * @inheritDoc */ protected function getDefaultModuleValue(bool $isDark):string{ - return ($isDark) ? $this->options->textDark : $this->options->textLight; + return ($isDark) ? '██' : '░░'; } /** diff --git a/src/QROptionsTrait.php b/src/QROptionsTrait.php index 343d233b3..0c2e1413c 100644 --- a/src/QROptionsTrait.php +++ b/src/QROptionsTrait.php @@ -425,19 +425,6 @@ trait QROptionsTrait{ * QRString settings */ - /** - * String substitute for dark - * - * @see https://en.wikipedia.org/wiki/Block_Elements - * @see https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit - */ - protected string $textDark = '██'; - - /** - * String substitute for light - */ - protected string $textLight = '░░'; - /** * An optional line prefix, e.g. empty space to align the QR Code in a console */