From 20244af600b1aa158f5a2217a63c4b6c7ae38886 Mon Sep 17 00:00:00 2001 From: Skull Merlin <86374920+skkuull@users.noreply.github.com> Date: Sun, 29 May 2022 21:15:24 +0300 Subject: [PATCH 1/2] dark console --- src/client/component/console.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/client/component/console.cpp b/src/client/component/console.cpp index eab34a0b..b8e9e38e 100644 --- a/src/client/component/console.cpp +++ b/src/client/component/console.cpp @@ -103,6 +103,14 @@ namespace console case WM_CLOSE: DestroyWindow(hWnd); return 0; + case WM_CTLCOLORSTATIC: + SetBkColor((HDC)wParam, RGB(49, 49, 49)); + SetTextColor((HDC)wParam, RGB(232, 230, 227)); + return (INT_PTR)CreateSolidBrush(RGB(49, 49, 49)); + case WM_CTLCOLOREDIT: + SetBkColor((HDC)wParam, RGB(49, 49, 49)); + SetTextColor((HDC)wParam, RGB(232, 230, 227)); + return (INT_PTR)CreateSolidBrush(RGB(49, 49, 49)); default: return DefWindowProcA(hWnd, uMsg, wParam, lParam); } @@ -249,7 +257,7 @@ namespace console WndClass.lpfnWndProc = ConWndProc; WndClass.hInstance = hInstance; WndClass.hIcon = icon; - WndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW); + WndClass.hbrBackground = CreateSolidBrush(RGB(49, 49, 49)); WndClass.hCursor = LoadCursorA(0, (LPCSTR)0x7F00); WndClass.lpszMenuName = NULL; WndClass.lpszClassName = ClassName; @@ -258,7 +266,7 @@ namespace console Rect.top = 0; Rect.left = 0; Rect.right = 620; - Rect.bottom = 450; + Rect.bottom = 430; AdjustWindowRect(&Rect, 0x80CA0000, 0); auto v4 = GetDesktopWindow(); auto v5 = GetDC(v4); From c19696e95ab6e6f601b56cda5f952557d2777764 Mon Sep 17 00:00:00 2001 From: Skull Merlin <86374920+skkuull@users.noreply.github.com> Date: Sun, 29 May 2022 21:49:28 +0300 Subject: [PATCH 2/2] xD --- src/client/component/console.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/component/console.cpp b/src/client/component/console.cpp index b8e9e38e..c12910e8 100644 --- a/src/client/component/console.cpp +++ b/src/client/component/console.cpp @@ -104,13 +104,13 @@ namespace console DestroyWindow(hWnd); return 0; case WM_CTLCOLORSTATIC: - SetBkColor((HDC)wParam, RGB(49, 49, 49)); + SetBkColor((HDC)wParam, RGB(50, 50, 50)); SetTextColor((HDC)wParam, RGB(232, 230, 227)); - return (INT_PTR)CreateSolidBrush(RGB(49, 49, 49)); + return (INT_PTR)CreateSolidBrush(RGB(50, 50, 50)); case WM_CTLCOLOREDIT: - SetBkColor((HDC)wParam, RGB(49, 49, 49)); + SetBkColor((HDC)wParam, RGB(50, 50, 50)); SetTextColor((HDC)wParam, RGB(232, 230, 227)); - return (INT_PTR)CreateSolidBrush(RGB(49, 49, 49)); + return (INT_PTR)CreateSolidBrush(RGB(50, 50, 50)); default: return DefWindowProcA(hWnd, uMsg, wParam, lParam); } @@ -257,7 +257,7 @@ namespace console WndClass.lpfnWndProc = ConWndProc; WndClass.hInstance = hInstance; WndClass.hIcon = icon; - WndClass.hbrBackground = CreateSolidBrush(RGB(49, 49, 49)); + WndClass.hbrBackground = CreateSolidBrush(RGB(50, 50, 50)); WndClass.hCursor = LoadCursorA(0, (LPCSTR)0x7F00); WndClass.lpszMenuName = NULL; WndClass.lpszClassName = ClassName;