From 51a54085f37d0f0430df8bfe941aebca6f74337d Mon Sep 17 00:00:00 2001 From: chenxuuu Date: Wed, 25 May 2022 11:51:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=8C=E7=BB=B4=E7=A0=81=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBDown/ConsoleQRCode.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BBDown/ConsoleQRCode.cs b/BBDown/ConsoleQRCode.cs index 7aeae4d59..e4a406518 100644 --- a/BBDown/ConsoleQRCode.cs +++ b/BBDown/ConsoleQRCode.cs @@ -24,9 +24,10 @@ public void GetGraphic(ConsoleColor darkColor, ConsoleColor lightColor) { for (int x = 0; x < QrCodeData.ModuleMatrix[y].Count; x++) { - Console.BackgroundColor = QrCodeData.ModuleMatrix[y][x] ? ConsoleColor.White : ConsoleColor.Black; - Console.Write(" "); + Console.ForegroundColor = QrCodeData.ModuleMatrix[y][x] ? darkColor : lightColor; + Console.Write("██"); } + Console.BackgroundColor = darkColor; Console.WriteLine(""); } Console.BackgroundColor = previousBackColor;