Skip to content

Commit

Permalink
Use debug log level when setting title bar color
Browse files Browse the repository at this point in the history
  • Loading branch information
equeim committed Sep 7, 2024
1 parent c0ed16a commit 2517017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/darkthemeapplier_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ namespace tremotesf {

void applyDarkThemeToTitleBar(QWindow* window) {
if (isRunningOnWindows11OrGreater()) {
info().log("Setting DWMWA_CAPTION_COLOR on {}", *window);
debug().log("Setting DWMWA_CAPTION_COLOR on {}", *window);
const auto qcolor = QGuiApplication::palette().color(QPalette::Window);
const auto color = RGB(qcolor.red(), qcolor.green(), qcolor.blue());
try {
Expand All @@ -108,7 +108,7 @@ namespace tremotesf {
warning().logWithException(e, "Failed to set DWMWA_CAPTION_COLOR on {}", *window);
}
} else {
info().log("Setting DWMWA_USE_IMMERSIVE_DARK_MODE on {}", *window);
debug().log("Setting DWMWA_USE_IMMERSIVE_DARK_MODE on {}", *window);
const auto attribute = []() -> DWORD {
if (isRunningOnWindows10_2004OrGreater()) {
return DWMWINDOWATTRIBUTE_compat::DWMWA_USE_IMMERSIVE_DARK_MODE_SINCE_2004;
Expand Down

0 comments on commit 2517017

Please sign in to comment.