Fix invisible label on Interval Metadata selector

Reported at the users forum when using Dark themes.
Continuation of 1dd7faa
This commit is contained in:
Alejandro Martinez
2025-11-30 09:54:43 -03:00
parent 49c337d365
commit 9e8ed1717a

View File

@@ -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);
}