mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 09:26:34 +00:00
Disable accent color in titlebar for improved aesthetics
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user