summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Doug Junkins <junkins@foghead.com>2020-10-28 17:23:08 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-29 15:00:20 -0700
commit6dccce21da3c0cff94ac2e047174911a1761b8cb (patch)
tree98d77d394b22aa4c23f27516891e46bbe21cd0b0 /desktop-widgets
parent7c70459f6cc087dd22bf1eb4d23b97acabea08e7 (diff)
downloadsubsurface-6dccce21da3c0cff94ac2e047174911a1761b8cb.tar.gz
desktop: use default colors for dive info labels
Removed the style change to force a style change for the labels on the dive information page to Medium Blue. This makes labels more readable in MacOSX dark mode since the default style changes colors when the mode is shifted from light to dark or vice versa. Signed-off-by: Doug Junkins <junkins@foghead.com>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/TabDiveInformation.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.cpp b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
index 99ac898a4..5baec3694 100644
--- a/desktop-widgets/tab-widgets/TabDiveInformation.cpp
+++ b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
@@ -15,7 +15,6 @@
#define COMBO_CHANGED 0
#define TEXT_EDITED 1
-#define CSS_SET_HEADING_BLUE "QLabel { color: mediumblue;} "
TabDiveInformation::TabDiveInformation(QWidget *parent) : TabBase(parent), ui(new Ui::TabDiveInformation())
{
@@ -35,12 +34,8 @@ TabDiveInformation::TabDiveInformation(QWidget *parent) : TabBase(parent), ui(ne
types.append(gettextFromC::tr(divemode_text_ui[i]));
ui->diveType->insertItems(0, types);
connect(ui->diveType, SIGNAL(currentIndexChanged(int)), this, SLOT(diveModeChanged(int)));
- QString CSSSetSmallLabel = "QLabel { color: mediumblue; font-size: " + // Using label height
+ QString CSSSetSmallLabel = "QLabel { font-size: " + // Using label height
QString::number((int)(0.5 + ui->diveHeadingLabel->geometry().height() * 0.66)) + "px;}"; // .. set CSS font size of star widget subscripts
- ui->scrollAreaWidgetContents_3->setStyleSheet("QGroupBox::title { color: mediumblue;} ");
- ui->diveHeadingLabel->setStyleSheet(CSS_SET_HEADING_BLUE);
- ui->gasHeadingLabel->setStyleSheet(CSS_SET_HEADING_BLUE);
- ui->environmentHeadingLabel->setStyleSheet(CSS_SET_HEADING_BLUE);
ui->groupBox_visibility->setStyleSheet(CSSSetSmallLabel);
ui->groupBox_current->setStyleSheet(CSSSetSmallLabel);
ui->groupBox_wavesize->setStyleSheet(CSSSetSmallLabel);