removed menu bar appearance change

Signed-off-by: Reuben Sonnenschein <137012810+frigtear@users.noreply.github.com>
This commit is contained in:
Reuben Sonnenschein 2026-02-10 16:15:49 -06:00
parent 7cda5e738f
commit 1fc139117b

View file

@ -31,15 +31,6 @@ void ThemeManager::setTitlebarColorOnMac(WId windowId, QColor color)
window.titlebarAppearsTransparent = YES;
window.backgroundColor = [NSColor colorWithRed:color.redF() green:color.greenF() blue:color.blueF() alpha:color.alphaF()];
// Unfortunately there seems to be no easy way to set the titlebar text color.
// The closest we can do without dubious hacks is set the dark/light mode state based on the brightness of the
// background color, which should at least make the text readable even if we can't use the theme's text color.
// It's a good idea to set this anyway since it also affects some other UI elements like text shadows (PrismLauncher#3825).
if (color.lightnessF() < 0.5) {
window.appearance = [NSAppearance appearanceNamed:NSAppearanceNameDarkAqua];
} else {
window.appearance = [NSAppearance appearanceNamed:NSAppearanceNameAqua];
}
}
void ThemeManager::setTitlebarColorOfAllWindowsOnMac(QColor color)