mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Make Themable keep the current theme for convenience
This commit is contained in:
@ -1007,7 +1007,7 @@ void Viewer::showCursor()
|
||||
void Viewer::updateOptions()
|
||||
{
|
||||
goToFlow->setFlowType(Configuration::getConfiguration().getFlowType());
|
||||
updateBackgroundColor(Configuration::getConfiguration().getBackgroundColor(ThemeManager::instance().getCurrentTheme().viewer.defaultBackgroundColor));
|
||||
updateBackgroundColor(Configuration::getConfiguration().getBackgroundColor(theme.viewer.defaultBackgroundColor));
|
||||
updateContentSize();
|
||||
updateInformation();
|
||||
}
|
||||
@ -1092,7 +1092,7 @@ void Viewer::updateConfig(QSettings *settings)
|
||||
goToFlow->updateConfig(settings);
|
||||
|
||||
QPalette palette;
|
||||
palette.setColor(backgroundRole(), Configuration::getConfiguration().getBackgroundColor(ThemeManager::instance().getCurrentTheme().viewer.defaultBackgroundColor));
|
||||
palette.setColor(backgroundRole(), Configuration::getConfiguration().getBackgroundColor(theme.viewer.defaultBackgroundColor));
|
||||
setPalette(palette);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user