mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Fix invisible label on Interval Metadata selector
Reported at the users forum when using Dark themes.
Continuation of 1dd7faa
This commit is contained in:
@@ -526,7 +526,9 @@ RideMetadata::configChanged(qint32)
|
||||
"padding-top: 0px; padding-bottom: 0px; }"
|
||||
"QPushButton:hover { background-color: %3; }"
|
||||
"QPushButton:hover:pressed { background-color: %3; }"
|
||||
).arg(GColor(CPLOTBACKGROUND).name()).arg(3 * dpiXFactor).arg(GColor(CHOVER).name());
|
||||
"QLabel { color: %4; background-color: %1; }"
|
||||
).arg(GColor(CPLOTBACKGROUND).name()).arg(3 * dpiXFactor).arg(GColor(CHOVER).name())
|
||||
.arg(GCColor::invertColor(GColor(CPLOTBACKGROUND)).name()); // 4 label text color
|
||||
|
||||
QFont df;
|
||||
QFontMetrics fm(df);
|
||||
@@ -536,6 +538,7 @@ RideMetadata::configChanged(qint32)
|
||||
i.next();
|
||||
i.value()->left->setStyleSheet(buttonstyle);
|
||||
i.value()->right->setStyleSheet(buttonstyle);
|
||||
i.value()->intervalname->setStyleSheet(buttonstyle);
|
||||
i.value()->intervalname->setFixedWidth(namewidth);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user