main_window: adjust toolbar size to prevent blurry icons

This commit is contained in:
Megamouse 2017-07-21 16:58:50 +02:00 committed by Ivan
parent e93fbc6900
commit 58816e314c
1 changed files with 2 additions and 2 deletions

View File

@ -94,10 +94,10 @@ void main_window::Init()
// for highdpi resize toolbar icons and height dynamically
// choose factors to mimic Gui-Design in main_window.ui
const int toolBarHeight = menuBar()->sizeHint().height() * 2;
const int toolBarHeight = menuBar()->sizeHint().height() * 1.5;
ui->toolBar->setIconSize(QSize(toolBarHeight, toolBarHeight));
ui->sizeSliderContainer->setFixedWidth(toolBarHeight * 5);
ui->sizeSlider->setFixedHeight(toolBarHeight * 0.625f);
ui->sizeSlider->setFixedHeight(toolBarHeight * 0.65f);
CreateActions();
CreateDockWindows();