wip: make system color change work properly on macOS

This commit is contained in:
tomboylover93 2024-12-28 13:15:30 -03:00
parent 9a86898471
commit f9b2f19bca

View File

@ -586,7 +586,7 @@ void MainWindow::CreateConnects() {
Config::setMainWindowTheme(static_cast<int>(Theme::System));
bool isSystemDarkMode;
#ifdef __linux__
#if defined(__linux__) || defined(__APPLE__)
const QPalette defaultPalette;
const auto text = defaultPalette.color(QPalette::WindowText);
const auto window = defaultPalette.color(QPalette::Window);
@ -997,7 +997,7 @@ void MainWindow::SetLastUsedTheme() {
case Theme::System:
ui->setThemeSystem->setChecked(true);
bool isSystemDarkMode;
#ifdef __linux__
#if defined(__linux__) || defined(__APPLE__)
const QPalette defaultPalette;
const auto text = defaultPalette.color(QPalette::WindowText);
const auto window = defaultPalette.color(QPalette::Window);
@ -1186,7 +1186,7 @@ bool MainWindow::eventFilter(QObject* obj, QEvent* event) {
if (ui->setThemeSystem->isChecked()) {
bool isSystemDarkMode;
#ifdef __linux__
#if defined(__linux__) || defined(__APPLE__)
const QPalette defaultPalette;
const auto text = defaultPalette.color(QPalette::WindowText);
const auto window = defaultPalette.color(QPalette::Window);