NOISSUE add some logging to the system theme determination logic
This commit is contained in:
parent
7246d8a779
commit
e5804b1279
@ -6,16 +6,19 @@
|
|||||||
|
|
||||||
SystemTheme::SystemTheme()
|
SystemTheme::SystemTheme()
|
||||||
{
|
{
|
||||||
|
qDebug() << "Determining System Theme...";
|
||||||
const auto & style = QApplication::style();
|
const auto & style = QApplication::style();
|
||||||
systemPalette = style->standardPalette();
|
systemPalette = style->standardPalette();
|
||||||
QString lowerThemeName = style->objectName();
|
QString lowerThemeName = style->objectName();
|
||||||
qDebug() << systemTheme;
|
qDebug() << "System theme seems to be:" << lowerThemeName;
|
||||||
QStringList styles = QStyleFactory::keys();
|
QStringList styles = QStyleFactory::keys();
|
||||||
for(auto &st: styles)
|
for(auto &st: styles)
|
||||||
{
|
{
|
||||||
|
qDebug() << "Considering theme from theme factory:" << st.toLower();
|
||||||
if(st.toLower() == lowerThemeName)
|
if(st.toLower() == lowerThemeName)
|
||||||
{
|
{
|
||||||
systemTheme = st;
|
systemTheme = st;
|
||||||
|
qDebug() << "System theme has been determined to be:" << systemTheme;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user