Skip to content

Commit

Permalink
Forgot to make dark mode conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuerp committed Jun 30, 2023
1 parent 73a245a commit 707b6fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Console.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/** Console.cpp (2023.06.26) P. Stuer **/
/** Console.cpp (2023.06.30) P. Stuer **/

#include "pch.h"

Expand Down Expand Up @@ -46,7 +46,8 @@ void Console::Create(HWND hWnd, bool wordwrap, bool darkMode) noexcept

::PostMessageW(hWnd, WM_COMMAND, MAKEWPARAM(lcp_ansi, itm_fontstyle), (LPARAM) _hRichEdit);

(void) ::SetWindowTheme(_hRichEdit, L"DarkMode_Explorer", nullptr);
if (darkMode)
(void) ::SetWindowTheme(_hRichEdit, L"DarkMode_Explorer", nullptr);

_DarkMode = darkMode;
}
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ branch. Pull requests are warmly welcome.

## Change Log

v0.3.1, 2023-06-30, *"Is it dark in here?"* (Redux)

* Bug Fix: Forgot to make dark mode conditional.

v0.3.0, 2023-06-26, *"Is it dark in here?"*

* Implemented light and dark mode.
Expand Down
6 changes: 3 additions & 3 deletions Resources.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/** $VER: Resource.h (2023.06.26) **/
/** $VER: Resource.h (2023.06.30) **/

#pragma once

Expand All @@ -22,7 +22,7 @@

#define NUM_FILE_MAJOR 0
#define NUM_FILE_MINOR 3
#define NUM_FILE_PATCH 0
#define NUM_FILE_PATCH 1
#define NUM_FILE_PRERELEASE 0

#define STR_FILE_NAME TEXT(STR_COMPONENT_FILENAME)
Expand All @@ -31,7 +31,7 @@

#define NUM_PRODUCT_MAJOR 0
#define NUM_PRODUCT_MINOR 3
#define NUM_PRODUCT_PATCH 0
#define NUM_PRODUCT_PATCH 1
#define NUM_PRODUCT_PRERELEASE 0

#define STR_PRODUCT_NAME STR_COMPANY_NAME TEXT(" ") STR_INTERNAL_NAME
Expand Down

0 comments on commit 707b6fc

Please sign in to comment.