mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
Set Qt style sheets immediately before main window show
This commit is contained in:
parent
6bc4088671
commit
465f90a315
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue