Set Qt style sheets immediately before main window show

This commit is contained in:
Abs62 2019-03-19 17:37:51 +03:00
parent 6bc4088671
commit 465f90a315

View file

@ -146,8 +146,6 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
Epwing::initialize(); Epwing::initialize();
#endif #endif
applyQtStyleSheet( cfg.preferences.displayStyle, cfg.preferences.addonStyle );
ui.setupUi( this ); ui.setupUi( this );
articleMaker.setCollapseParameters( cfg.preferences.collapseBigArticles, cfg.preferences.articleSizeLimit ); articleMaker.setCollapseParameters( cfg.preferences.collapseBigArticles, cfg.preferences.articleSizeLimit );
@ -789,6 +787,8 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
translateLine->setFocus(); translateLine->setFocus();
applyQtStyleSheet( cfg.preferences.displayStyle, cfg.preferences.addonStyle );
if ( trayIcon ) if ( trayIcon )
{ {
// Upgrade existing dummy tray icon into a full-functional one // Upgrade existing dummy tray icon into a full-functional one