make sure that the icon theme is properly loaded when the prefs are reloaded.
This commit is contained in:
parent
1d9be24be1
commit
b890dda7ac
@ -1309,6 +1309,22 @@ void PTextEdit::fileOpenPrefs()
|
|||||||
msg = QString("Prefs from '") + fln + QString("' loaded.");
|
msg = QString("Prefs from '") + fln + QString("' loaded.");
|
||||||
QMessageBox::information(nullptr, "Info", msg);
|
QMessageBox::information(nullptr, "Info", msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// make sure that dark/plain icon scheme is properly loaded
|
||||||
|
if (getTheme()) {
|
||||||
|
switchMenuIcons();
|
||||||
|
switchToolbarIcons();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fAdmin->getDarkThemeIconsMenuFlag() != fDarkMenuIcon) {
|
||||||
|
fDarkMenuIcon = !fDarkMenuIcon;
|
||||||
|
switchMenuIcons();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fAdmin->getDarkThemeIconsToolbarFlag() != fDarkToolBarIcon) {
|
||||||
|
fDarkToolBarIcon = !fDarkToolBarIcon;
|
||||||
|
switchToolbarIcons();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user