NOISSUE add some logging to the system theme determination logic

This commit is contained in:
Petr Mrázek 2021-04-04 21:19:49 +02:00
parent 7246d8a779
commit e5804b1279

View File

@ -6,16 +6,19 @@
SystemTheme::SystemTheme()
{
qDebug() << "Determining System Theme...";
const auto & style = QApplication::style();
systemPalette = style->standardPalette();
QString lowerThemeName = style->objectName();
qDebug() << systemTheme;
qDebug() << "System theme seems to be:" << lowerThemeName;
QStringList styles = QStyleFactory::keys();
for(auto &st: styles)
{
qDebug() << "Considering theme from theme factory:" << st.toLower();
if(st.toLower() == lowerThemeName)
{
systemTheme = st;
qDebug() << "System theme has been determined to be:" << systemTheme;
return;
}
}