From 465f90a315bc9febf67d7f62f3cfafb22b541e63 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Tue, 19 Mar 2019 17:37:51 +0300 Subject: [PATCH] Set Qt style sheets immediately before main window show --- mainwindow.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cc b/mainwindow.cc index 5c065b39..f2119723 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -146,8 +146,6 @@ MainWindow::MainWindow( Config::Class & cfg_ ): Epwing::initialize(); #endif - applyQtStyleSheet( cfg.preferences.displayStyle, cfg.preferences.addonStyle ); - ui.setupUi( this ); articleMaker.setCollapseParameters( cfg.preferences.collapseBigArticles, cfg.preferences.articleSizeLimit ); @@ -789,6 +787,8 @@ MainWindow::MainWindow( Config::Class & cfg_ ): translateLine->setFocus(); + applyQtStyleSheet( cfg.preferences.displayStyle, cfg.preferences.addonStyle ); + if ( trayIcon ) { // Upgrade existing dummy tray icon into a full-functional one