diff --git a/src/plugins/coreplugin/themechooser.cpp b/src/plugins/coreplugin/themechooser.cpp index ab695aeea82..34020e2cd96 100644 --- a/src/plugins/coreplugin/themechooser.cpp +++ b/src/plugins/coreplugin/themechooser.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -136,13 +137,17 @@ ThemeChooserPrivate::ThemeChooserPrivate(QWidget *widget) { QHBoxLayout *layout = new QHBoxLayout(widget); layout->addWidget(m_themeComboBox); + auto overriddenLabel = new QLabel; + overriddenLabel->setText(ThemeChooser::tr("Current theme: %1") + .arg(creatorTheme()->displayName())); + layout->addWidget(overriddenLabel); layout->setMargin(0); auto horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); layout->addSpacerItem(horizontalSpacer); m_themeComboBox->setModel(m_themeListModel); const QList themes = ThemeEntry::availableThemes(); - const Id activeTheme = Id::fromString(creatorTheme()->id()); - const int selected = Utils::indexOf(themes, Utils::equal(&ThemeEntry::id, activeTheme)); + const Id themeSetting = ThemeEntry::themeSetting(); + const int selected = Utils::indexOf(themes, Utils::equal(&ThemeEntry::id, themeSetting)); m_themeListModel->setThemes(themes); if (selected >= 0) m_themeComboBox->setCurrentIndex(selected);