From 602860b1d425fce04c6d07a161223c5bd627e476 Mon Sep 17 00:00:00 2001 From: Ernie Pasveer Date: Sun, 3 Mar 2024 12:00:19 -0600 Subject: [PATCH 1/3] Tweak some UI things to allow the side panels to shrink a little more. --- src/SeerRegisterValuesBrowserWidget.ui | 63 +++++++++++++++++--------- src/SeerThreadManagerWidget.ui | 32 +++++++++++-- 2 files changed, 69 insertions(+), 26 deletions(-) diff --git a/src/SeerRegisterValuesBrowserWidget.ui b/src/SeerRegisterValuesBrowserWidget.ui index 7a3f75d5..082fac43 100644 --- a/src/SeerRegisterValuesBrowserWidget.ui +++ b/src/SeerRegisterValuesBrowserWidget.ui @@ -15,15 +15,15 @@ - - + + Format - + @@ -36,14 +36,41 @@ - + + + + Qt::Horizontal + + + + 508 + 23 + + + + + + + + Preferences + + + + + + + :/seer/resources/RelaxLightIcons/application-menu.svg:/seer/resources/RelaxLightIcons/application-menu.svg + + + + Profile - + @@ -59,33 +86,19 @@ - - + + Qt::Horizontal - 250 + 538 23 - - - - Preferences - - - - - - - :/seer/resources/RelaxLightIcons/application-menu.svg:/seer/resources/RelaxLightIcons/application-menu.svg - - - @@ -127,6 +140,12 @@
QIndexTreeWidget.h
+ + registerFormatComboBox + registerProfileComboBox + preferencesToolButton + registersTreeWidget + diff --git a/src/SeerThreadManagerWidget.ui b/src/SeerThreadManagerWidget.ui index a2f5c5ef..34934b6c 100644 --- a/src/SeerThreadManagerWidget.ui +++ b/src/SeerThreadManagerWidget.ui @@ -6,8 +6,8 @@ 0 0 - 914 - 536 + 398 + 520 @@ -51,6 +51,12 @@
+ + + 50 + 0 + + Scheduler locking: @@ -58,6 +64,12 @@ + + + 50 + 0 + + @@ -75,6 +87,12 @@ + + + 50 + 0 + + Fork follows: @@ -85,9 +103,12 @@ Qt::Horizontal + + QSizePolicy::Ignored + - 564 + 0 20 @@ -164,9 +185,12 @@ Qt::Horizontal + + QSizePolicy::Ignored + - 564 + 0 20 From 7acb862e136c958c9f2933cd8db66cb025d33f77 Mon Sep 17 00:00:00 2001 From: Ernie Pasveer Date: Sun, 3 Mar 2024 16:31:22 -0600 Subject: [PATCH 2/3] Fix missing Style for QToolBar and extending via a QWidget. --- src/SeerMainWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SeerMainWindow.cpp b/src/SeerMainWindow.cpp index 1e908cad..c707b1b2 100644 --- a/src/SeerMainWindow.cpp +++ b/src/SeerMainWindow.cpp @@ -36,6 +36,7 @@ SeerMainWindow::SeerMainWindow(QWidget* parent) : QMainWindow(parent) { // Add progress spin widget. QWidget* spacerWidget = new QWidget(this); spacerWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + spacerWidget->setStyleSheet("background-color:transparent"); // Need this for QToolBar StyleSheets to work. toolBar->addWidget(spacerWidget); _progressIndicator = new SeerProgressIndicator(this); From 217e5d7e66956d83dabfa23a07c82b474f57b044 Mon Sep 17 00:00:00 2001 From: Ernie Pasveer Date: Sun, 3 Mar 2024 17:29:43 -0600 Subject: [PATCH 3/3] Fix up QDarkStyleSheet for QComboBox. Seer resources/qdarkstyle/ABOUT.md --- src/resources/qdarkstyle/ABOUT.md | 5 +++++ src/resources/qdarkstyle/dark/darkstyle.qss | 14 -------------- src/resources/qdarkstyle/light/lightstyle.qss | 14 -------------- 3 files changed, 5 insertions(+), 28 deletions(-) diff --git a/src/resources/qdarkstyle/ABOUT.md b/src/resources/qdarkstyle/ABOUT.md index ae88cbc0..699122d4 100644 --- a/src/resources/qdarkstyle/ABOUT.md +++ b/src/resources/qdarkstyle/ABOUT.md @@ -13,4 +13,9 @@ And its license is here: Copyright (c) 2013-2019 Colin Duquesnoy +QComboBox menus, with this style, look weird. There's a large "space" to the left of the menu text. It isn't +resolved in the official QDarkStyleSheet project. This link shows a fix for the QComboBox entry in the +"dark" and "light" css files. So I've applied it to my copy of the stylesheet. + + https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/308#issuecomment-1661775924 diff --git a/src/resources/qdarkstyle/dark/darkstyle.qss b/src/resources/qdarkstyle/dark/darkstyle.qss index bc04b911..19e95050 100644 --- a/src/resources/qdarkstyle/dark/darkstyle.qss +++ b/src/resources/qdarkstyle/dark/darkstyle.qss @@ -1272,20 +1272,6 @@ QComboBox:on { selection-background-color: #346792; } -QComboBox::indicator { - border: none; - border-radius: 0; - background-color: transparent; - selection-background-color: transparent; - color: transparent; - selection-color: transparent; - /* Needed to remove indicator - fix #132 */ -} - -QComboBox::indicator:alternate { - background: #19232D; -} - QComboBox::item { /* Remove to fix #282, #285 and MR #288*/ /*&:checked { diff --git a/src/resources/qdarkstyle/light/lightstyle.qss b/src/resources/qdarkstyle/light/lightstyle.qss index e83d3f23..0d699f57 100644 --- a/src/resources/qdarkstyle/light/lightstyle.qss +++ b/src/resources/qdarkstyle/light/lightstyle.qss @@ -1272,20 +1272,6 @@ QComboBox:on { selection-background-color: #9FCBFF; } -QComboBox::indicator { - border: none; - border-radius: 0; - background-color: transparent; - selection-background-color: transparent; - color: transparent; - selection-color: transparent; - /* Needed to remove indicator - fix #132 */ -} - -QComboBox::indicator:alternate { - background: #FAFAFA; -} - QComboBox::item { /* Remove to fix #282, #285 and MR #288*/ /*&:checked {