Disable accent color in titlebar for improved aesthetics

This commit is contained in:
mr. M
2024-12-25 13:32:11 +01:00
parent 50a432b176
commit c52bffc619

View File

@@ -1,12 +1,13 @@
diff --git a/widget/windows/nsLookAndFeel.cpp b/widget/windows/nsLookAndFeel.cpp diff --git a/widget/windows/nsLookAndFeel.cpp b/widget/windows/nsLookAndFeel.cpp
index 58c5fc3b55da47109e16cc3d6f44b0950b2965e7..ae1713898d0b8298480bdaf8a9ef7629423c3dee 100644 index 58c5fc3b55da47109e16cc3d6f44b0950b2965e7..85e3f1a21344678ad0e07f4663fa76653bd7ad3d 100644
--- a/widget/windows/nsLookAndFeel.cpp --- a/widget/windows/nsLookAndFeel.cpp
+++ b/widget/windows/nsLookAndFeel.cpp +++ b/widget/windows/nsLookAndFeel.cpp
@@ -849,6 +849,7 @@ auto nsLookAndFeel::ComputeTitlebarColors() -> TitlebarColors { @@ -838,7 +838,7 @@ auto nsLookAndFeel::ComputeTitlebarColors() -> TitlebarColors {
// turned on. result.mAccentInactive = dwmKey.GetValueAsDword(u"AccentColorInactive"_ns);
result.mUseAccent = result.mAccentInactiveText = GetAccentColorText(result.mAccentInactive);
dwmKey.GetValueAsDword(u"ColorPrevalence"_ns).valueOr(0) == 1;
+ result.mUseAccent = false; // Zen: Disable accent color in titlebar because it's ugly - if (WinUtils::MicaEnabled()) {
if (!result.mUseAccent) { + if (WinUtils::MicaEnabled() || true) { // Zen: Disable accent color in titlebar because it's ugly
return result; // Use transparent titlebar backgrounds when using mica.
} result.mActiveDark.mBg = result.mActiveLight.mBg =
result.mInactiveDark.mBg = result.mInactiveLight.mBg = NS_TRANSPARENT;