Use correct colours for all system themes

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
(cherry picked from commit f08478c7ec)
This commit is contained in:
TheKodeToad
2025-03-23 14:17:43 +00:00
committed by github-actions[bot]
parent 57981a070f
commit 57120e0c9d
4 changed files with 5 additions and 21 deletions

View File

@ -40,23 +40,11 @@
#include "HintOverrideProxyStyle.h"
#include "ThemeManager.h"
SystemTheme::SystemTheme(const QString& styleName, const QPalette& palette, bool isDefaultTheme)
SystemTheme::SystemTheme(const QString& styleName, bool isDefaultTheme)
{
themeName = isDefaultTheme ? "system" : styleName;
widgetTheme = styleName;
colorPalette = palette;
}
void SystemTheme::apply(bool initial)
{
// See https://github.com/MultiMC/Launcher/issues/1790
// or https://github.com/PrismLauncher/PrismLauncher/issues/490
if (initial) {
QApplication::setStyle(new HintOverrideProxyStyle(QStyleFactory::create(qtTheme())));
return;
}
ITheme::apply(initial);
colorPalette = QStyleFactory::create(styleName)->standardPalette();
}
QString SystemTheme::id()