1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

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

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();