mirror of https://github.com/RPCS3/rpcs3.git
main_window: adjust toolbar size to prevent blurry icons
This commit is contained in:
parent
e93fbc6900
commit
58816e314c
|
@ -94,10 +94,10 @@ void main_window::Init()
|
||||||
|
|
||||||
// for highdpi resize toolbar icons and height dynamically
|
// for highdpi resize toolbar icons and height dynamically
|
||||||
// choose factors to mimic Gui-Design in main_window.ui
|
// 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->toolBar->setIconSize(QSize(toolBarHeight, toolBarHeight));
|
||||||
ui->sizeSliderContainer->setFixedWidth(toolBarHeight * 5);
|
ui->sizeSliderContainer->setFixedWidth(toolBarHeight * 5);
|
||||||
ui->sizeSlider->setFixedHeight(toolBarHeight * 0.625f);
|
ui->sizeSlider->setFixedHeight(toolBarHeight * 0.65f);
|
||||||
|
|
||||||
CreateActions();
|
CreateActions();
|
||||||
CreateDockWindows();
|
CreateDockWindows();
|
||||||
|
|
Loading…
Reference in New Issue