From 453e7daebac3a4095f5ca8d251dc72567884dd52 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 27 Nov 2020 18:42:01 -0300 Subject: [PATCH] [ui] improving the screenshots control buttons widths --- bauh/view/qt/screenshots.py | 2 ++ bauh/view/resources/style/default/default.qss | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bauh/view/qt/screenshots.py b/bauh/view/qt/screenshots.py index 18b05878..e2c5d2d3 100644 --- a/bauh/view/qt/screenshots.py +++ b/bauh/view/qt/screenshots.py @@ -61,6 +61,7 @@ class ScreenshotsDialog(QDialog): self.bt_back = QPushButton(' < ' + self.i18n['screenshots.bt_back.label'].capitalize()) self.bt_back.setObjectName('back') + self.bt_back.setProperty('control', 'true') self.bt_back.setCursor(QCursor(Qt.PointingHandCursor)) self.bt_back.clicked.connect(self.back) self.container_buttons.layout().addWidget(self.bt_back) @@ -71,6 +72,7 @@ class ScreenshotsDialog(QDialog): self.bt_next = QPushButton(self.i18n['screenshots.bt_next.label'].capitalize() + ' > ') self.bt_next.setObjectName('next') + self.bt_next.setProperty('control', 'true') self.bt_next.setCursor(QCursor(Qt.PointingHandCursor)) self.bt_next.clicked.connect(self.next) self.container_buttons.layout().addWidget(self.bt_next) diff --git a/bauh/view/resources/style/default/default.qss b/bauh/view/resources/style/default/default.qss index 965f4b0f..34e71af5 100644 --- a/bauh/view/resources/style/default/default.qss +++ b/bauh/view/resources/style/default/default.qss @@ -359,10 +359,15 @@ ScreenshotsDialog QLabel#image { qproperty-alignment: AlignCenter; } +ScreenshotsDialog QAbstractButton[control = "true"] { + min-width: 100px; +} + SettingsWindow TabGroupQt#settings { min-width: 400px; } QMenu QPushButton[current = "true"] { font-weight: bold; -} \ No newline at end of file +} +