From 0e443dcb050d923f01d917575ceb126acb3ad15c Mon Sep 17 00:00:00 2001 From: BenjaminHalko Date: Tue, 22 Aug 2023 10:01:12 -0700 Subject: [PATCH 1/3] fix: Added padding to buttons Some buttons did not have enough padding, now they do! --- dist/qt_themes/default/style.qss | 5 +++++ dist/qt_themes/default_dark/style.qss | 5 +++++ dist/qt_themes/qdarkstyle/style.qss | 5 +++++ dist/qt_themes/qdarkstyle_midnight_blue/style.qss | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/dist/qt_themes/default/style.qss b/dist/qt_themes/default/style.qss index 12e681648..4ca0be50e 100644 --- a/dist/qt_themes/default/style.qss +++ b/dist/qt_themes/default/style.qss @@ -315,6 +315,11 @@ QWidget#controllerPlayer8 { background: transparent; } +QDialog QPushButton { + min-width: 57px; + padding: 4px 8px; +} + QDialog#QtSoftwareKeyboardDialog, QStackedWidget#topOSK { background: rgba(51, 51, 51, .9); diff --git a/dist/qt_themes/default_dark/style.qss b/dist/qt_themes/default_dark/style.qss index ca6daa2d5..877e9b18c 100644 --- a/dist/qt_themes/default_dark/style.qss +++ b/dist/qt_themes/default_dark/style.qss @@ -319,6 +319,11 @@ QWidget#controllerPlayer8 { background: transparent; } +QDialog QPushButton { + min-width: 57px; + padding: 4px 8px; +} + QDialog#QtSoftwareKeyboardDialog, QStackedWidget#topOSK { background: rgba(51, 51, 51, .9); diff --git a/dist/qt_themes/qdarkstyle/style.qss b/dist/qt_themes/qdarkstyle/style.qss index 63a636ae6..ef38580b0 100644 --- a/dist/qt_themes/qdarkstyle/style.qss +++ b/dist/qt_themes/qdarkstyle/style.qss @@ -1338,6 +1338,11 @@ QSpinBox#vibrationSpinPlayer8 { min-width: 68px; } +QDialog QPushButton { + min-width: 57px; + padding: 4px 8px; +} + QDialog#ConfigureVibration QGroupBox::indicator, QGroupBox#motionGroup::indicator, QGroupBox#vibrationGroup::indicator { diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/style.qss b/dist/qt_themes/qdarkstyle_midnight_blue/style.qss index 49b05c8ba..786d07cfc 100644 --- a/dist/qt_themes/qdarkstyle_midnight_blue/style.qss +++ b/dist/qt_themes/qdarkstyle_midnight_blue/style.qss @@ -2241,6 +2241,11 @@ QSpinBox#vibrationSpinPlayer8 { min-width: 68px; } +QDialog QPushButton { + min-width: 57px; + padding: 4px 8px; +} + QDialog#ConfigureVibration QGroupBox::indicator, QGroupBox#motionGroup::indicator, QGroupBox#vibrationGroup::indicator { From 8677d98a102260a37566f2967c7b97fb84f62a6e Mon Sep 17 00:00:00 2001 From: BenjaminHalko Date: Fri, 25 Aug 2023 10:29:23 -0700 Subject: [PATCH 2/3] Updated padded style --- dist/qt_themes/default_dark/style.qss | 5 ----- dist/qt_themes/qdarkstyle/style.qss | 5 ----- dist/qt_themes/qdarkstyle_midnight_blue/style.qss | 3 +-- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/dist/qt_themes/default_dark/style.qss b/dist/qt_themes/default_dark/style.qss index 877e9b18c..ca6daa2d5 100644 --- a/dist/qt_themes/default_dark/style.qss +++ b/dist/qt_themes/default_dark/style.qss @@ -319,11 +319,6 @@ QWidget#controllerPlayer8 { background: transparent; } -QDialog QPushButton { - min-width: 57px; - padding: 4px 8px; -} - QDialog#QtSoftwareKeyboardDialog, QStackedWidget#topOSK { background: rgba(51, 51, 51, .9); diff --git a/dist/qt_themes/qdarkstyle/style.qss b/dist/qt_themes/qdarkstyle/style.qss index ef38580b0..63a636ae6 100644 --- a/dist/qt_themes/qdarkstyle/style.qss +++ b/dist/qt_themes/qdarkstyle/style.qss @@ -1338,11 +1338,6 @@ QSpinBox#vibrationSpinPlayer8 { min-width: 68px; } -QDialog QPushButton { - min-width: 57px; - padding: 4px 8px; -} - QDialog#ConfigureVibration QGroupBox::indicator, QGroupBox#motionGroup::indicator, QGroupBox#vibrationGroup::indicator { diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/style.qss b/dist/qt_themes/qdarkstyle_midnight_blue/style.qss index 786d07cfc..84820934c 100644 --- a/dist/qt_themes/qdarkstyle_midnight_blue/style.qss +++ b/dist/qt_themes/qdarkstyle_midnight_blue/style.qss @@ -2242,8 +2242,7 @@ QSpinBox#vibrationSpinPlayer8 { } QDialog QPushButton { - min-width: 57px; - padding: 4px 8px; + padding: 3px 6px; } QDialog#ConfigureVibration QGroupBox::indicator, From 2e55459e03aa29b264b7c6fcb682cd990e81e1f8 Mon Sep 17 00:00:00 2001 From: BenjaminHalko Date: Fri, 25 Aug 2023 10:45:42 -0700 Subject: [PATCH 3/3] Updated to only the reset button --- dist/qt_themes/default/style.qss | 10 +++++----- dist/qt_themes/qdarkstyle_midnight_blue/style.qss | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dist/qt_themes/default/style.qss b/dist/qt_themes/default/style.qss index 4ca0be50e..79960ee0c 100644 --- a/dist/qt_themes/default/style.qss +++ b/dist/qt_themes/default/style.qss @@ -78,6 +78,11 @@ QPushButton#buttonRefreshDevices { max-height: 21px; } +QPushButton#button_reset_defaults { + min-width: 57px; + padding: 4px 8px; +} + QWidget#bottomPerGameInput, QWidget#topControllerApplet, QWidget#bottomControllerApplet, @@ -315,11 +320,6 @@ QWidget#controllerPlayer8 { background: transparent; } -QDialog QPushButton { - min-width: 57px; - padding: 4px 8px; -} - QDialog#QtSoftwareKeyboardDialog, QStackedWidget#topOSK { background: rgba(51, 51, 51, .9); diff --git a/dist/qt_themes/qdarkstyle_midnight_blue/style.qss b/dist/qt_themes/qdarkstyle_midnight_blue/style.qss index 84820934c..0c53115f6 100644 --- a/dist/qt_themes/qdarkstyle_midnight_blue/style.qss +++ b/dist/qt_themes/qdarkstyle_midnight_blue/style.qss @@ -2228,6 +2228,10 @@ QPushButton#buttonRefreshDevices { padding: 0px 0px; } +QPushButton#button_reset_defaults { + padding: 3px 6px; +} + QSpinBox#spinboxLStickRange, QSpinBox#spinboxRStickRange, QSpinBox#vibrationSpinPlayer1, @@ -2241,10 +2245,6 @@ QSpinBox#vibrationSpinPlayer8 { min-width: 68px; } -QDialog QPushButton { - padding: 3px 6px; -} - QDialog#ConfigureVibration QGroupBox::indicator, QGroupBox#motionGroup::indicator, QGroupBox#vibrationGroup::indicator {