From cbd7ae90d755043597df73a8bf3ead9bdd6fd8f6 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Wed, 9 Feb 2022 00:47:05 +0600 Subject: [PATCH] qt: Scale icons based on screen DPI --- src/qt/qt_mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index 6fe6a15b3..ea3942958 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -415,6 +415,8 @@ MainWindow::MainWindow(QWidget *parent) : }); } #endif + + ui->toolBar->setIconSize(QSize(16 * screen()->devicePixelRatio(), 16 * screen()->devicePixelRatio())); } void MainWindow::closeEvent(QCloseEvent *event) {