From 202dbb625919ea736e26906b98512181cdee7cfd Mon Sep 17 00:00:00 2001 From: Paul Dockar Date: Mon, 17 Oct 2022 16:35:28 +1100 Subject: [PATCH] Fix barely visible text in the Intel box --- qt_ui/widgets/QIntelBox.py | 9 --------- resources/stylesheets/style-dcs.css | 2 ++ 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/qt_ui/widgets/QIntelBox.py b/qt_ui/widgets/QIntelBox.py index cd22b898..eb50d1a0 100644 --- a/qt_ui/widgets/QIntelBox.py +++ b/qt_ui/widgets/QIntelBox.py @@ -41,15 +41,6 @@ class QIntelBox(QGroupBox): self.economic_strength = QLabel() summary.addWidget(self.economic_strength, 2, 1) - # some dirty styling to make the labels show up well on the button - button_text_style = "background-color: rgba(0,0,0,0%); color: white;" - air_superiority.setStyleSheet(button_text_style) - front_line.setStyleSheet(button_text_style) - economy.setStyleSheet(button_text_style) - self.air_strength.setStyleSheet(button_text_style) - self.ground_strength.setStyleSheet(button_text_style) - self.economic_strength.setStyleSheet(button_text_style) - self.details = QPushButton() self.details.setMinimumHeight(50) self.details.setMinimumWidth(210) diff --git a/resources/stylesheets/style-dcs.css b/resources/stylesheets/style-dcs.css index 9ade529c..79edf3e4 100644 --- a/resources/stylesheets/style-dcs.css +++ b/resources/stylesheets/style-dcs.css @@ -618,6 +618,8 @@ QGroupBox[style="IntelSummary"] QLabel { margin: 0px; font-size: 9px; line-height: 9px; + color: #fff; + background: transparent; } QCalendarWidget