Fix build

This commit is contained in:
Victor Tran 2021-08-04 12:15:45 +10:00
parent 63d67dda50
commit 6e14b43261

View file

@ -47,9 +47,9 @@ void tStyleManager::updateStyle() {
QPalette pal = QApplication::palette();
//Get the accent colour
QColor accentCol;
#ifdef Q_OS_WIN
QSettings accentDetection("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\DWM", QSettings::NativeFormat);
QColor accentCol;
if (accentDetection.contains("ColorizationColor")) {
accentCol = QColor::fromRgb(QRgb(accentDetection.value("ColorizationColor").toInt() & 0x00FFFFFF));
if (d->currentStyle == ContemporaryLight) {