From 6dccce21da3c0cff94ac2e047174911a1761b8cb Mon Sep 17 00:00:00 2001 From: Doug Junkins Date: Wed, 28 Oct 2020 17:23:08 -0700 Subject: 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 --- desktop-widgets/tab-widgets/TabDiveInformation.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'desktop-widgets') 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); -- cgit v1.2.3-70-g09d2