Replace the runtime themes with ones that don't have sizing issues. Fixes #5554

This commit is contained in:
Dave Page
2020-07-17 14:26:51 +05:30
committed by Akshay Joshi
parent 64cdd509b0
commit 13d2f9131d
305 changed files with 2402 additions and 3744 deletions

View File

@@ -68,15 +68,13 @@ int main(int argc, char * argv[])
#ifdef Q_OS_WIN32
QSettings registry("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", QSettings::Registry64Format);
if (registry.value("AppsUseLightTheme", true).toBool())
{
qDebug( "Windows Light Mode...");
stylesheet.setFileName(":/light.qss");
}
else
if (!registry.value("AppsUseLightTheme", true).toBool())
{
qDebug( "Windows Dark Mode..." );
stylesheet.setFileName(":/dark.qss");
stylesheet.setFileName(":/qdarkstyle/style.qss");
stylesheet.open(QFile::ReadOnly | QFile::Text);
QTextStream stream(&stylesheet);
app.setStyleSheet(stream.readAll());
}
#endif
@@ -84,18 +82,12 @@ int main(int argc, char * argv[])
if (IsDarkMode())
{
qDebug( "macOS Dark Mode...");
stylesheet.setFileName(":/dark.qss");
}
else
{
qDebug( "macOS Light Mode..." );
stylesheet.setFileName(":/light.qss");
stylesheet.setFileName(":/qdarkstyle/style.qss");
stylesheet.open(QFile::ReadOnly | QFile::Text);
QTextStream stream(&stylesheet);
app.setStyleSheet(stream.readAll());
}
#endif
stylesheet.open(QFile::ReadOnly | QFile::Text);
QTextStream stream(&stylesheet);
app.setStyleSheet(stream.readAll());
#endif
// Setup the settings management