From cb15a2371391929a9890cc5b08a6b92976b62742 Mon Sep 17 00:00:00 2001 From: firstcryptoman <86235719+firstcryptoman@users.noreply.github.com> Date: Thu, 16 Jun 2022 09:54:50 +0400 Subject: [PATCH] Fixing UI scaling (#1183) --- src/qt/res/css/firo.css | 58 +++++++++++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 16 deletions(-) diff --git a/src/qt/res/css/firo.css b/src/qt/res/css/firo.css index d4a3e8b15c..0324315c6a 100644 --- a/src/qt/res/css/firo.css +++ b/src/qt/res/css/firo.css @@ -8,8 +8,8 @@ WalletFrame, QDialog { - border: 0px; - margin: 0; + border: 2px; + margin: 2; font-size: 12pt; } @@ -531,12 +531,28 @@ QProgressBar { background-color: #878787; border-color: #f4f4f4; color: #f4f4f4; + text-align: center; } QProgressBar::chunk { background-color: #9b1c2e; border: 1px solid #9b1c2e; border-radius: 6px; + /* width: 10px; */ +} + +QProgressBar > QToolButton { + border: none; + min-height: 1em; + min-width: 6em; + padding: 1px; + text-align: center; + color: #f4f4f4; + font: 12pt 'Source Sans Pro'; +} + +QProgressBar > QToolButton > QLabel { + font-size: 12pt; } /* QPushButton */ @@ -547,6 +563,7 @@ QPushButton { border-radius: 8px; color: #FFFFFF; min-height: 26px; + min-width: 10em; padding-left: 12px; padding-right: 12px; padding-top: 1px; @@ -815,34 +832,43 @@ QTableWidget { /* QTabWidget */ -QTabWidget QTabBar { - background-color: #f4f4f4; +QTabWidget::pane { + border-top: 2px solid #f4f4f4; +} + +QTabWidget::tab-bar { + padding: 2px; } -QTabWidget QTabBar::tab { +/* Style the tab using the tab sub-control */ +QTabBar::tab { background-color: #f4f4f4; - height: 35px; color: #9b1c2e; - border-bottom: 1px solid; - border-color: #cfcccc; - padding-left: 1em; - padding-right: 1em; + border: 2px solid #cfcccc; + border-bottom-color: #f4f4f4; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + min-width: 10em; + padding: 1em; } QTabWidget QTabBar::tab > .QLabel { font-size: 12pt; } -QTabWidget QTabBar::tab:hover { +QTabBar::tab:selected, QTabBar::tab:hover { background-color: #7c1624; color: #f4f4f4; - border-bottom: 0px solid; } -QTabWidget QTabBar::tab::selected { +QTabBar::tab:selected { background-color: #9b1c2e; color: #f4f4f4; - border-bottom: 0px solid; + border-bottom-color: #f4f4f4; +} + +QTabBar::tab:!selected { + margin-top: 2px; } /* QTextEdit */ @@ -870,13 +896,13 @@ QToolBar { QToolBar > QToolButton { border: none; min-height: 2em; - min-width: 140px; + min-width: 6em; padding: 1px; text-align: center; background-color: #f4f4f4; color: #9b1c2e; font-weight: bold; - font: 16pt 'Saira SemiCondensed'; + font: 14pt 'Saira SemiCondensed'; } QToolBar > QToolButton > QLabel {