forked from qt-creator/qt-creator
Theming: Allow to apply theme palette globally
Change-Id: I709bd6b6c566e016731af1fb94ddaef6326ef485 Reviewed-by: Thorben Kroeger <thorbenkroeger@gmail.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
48a90eea3c
commit
82bbc6f562
@@ -434,6 +434,8 @@ void ThemeSettings::apply()
|
||||
|
||||
{
|
||||
d->m_ui->editor->model()->toTheme(creatorTheme());
|
||||
if (creatorTheme()->flag(Theme::ApplyThemePaletteGlobally))
|
||||
QApplication::setPalette(creatorTheme()->palette(QApplication::palette()));
|
||||
foreach (QWidget *w, QApplication::topLevelWidgets())
|
||||
w->update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user