diff mbox series

[1/4] kernel-shark: Set text color to black in KsDualMarker's QLabels

Message ID 20191010212429.469155-2-mike.rudenko@gmail.com (mailing list archive)
State Accepted
Headers show
Series Fix KernelShark appearance on dark color schemes | expand

Commit Message

Mikhail Rudenko Oct. 10, 2019, 9:24 p.m. UTC
At present, background color of marker position QLabels is forced to
white with a stylesheet, but the text color stays unchanged. As a
result, the text is barely visible when using dark color schemes. This
patch forces the text color to black for these QLabels, making it
readable on all color schemes.

Signed-off-by: Mikhail Rudenko <mike.rudenko@gmail.com>
---
 kernel-shark/src/KsDualMarker.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.23.0
diff mbox series

Patch

diff --git a/kernel-shark/src/KsDualMarker.cpp b/kernel-shark/src/KsDualMarker.cpp
index 755e246..0070777 100644
--- a/kernel-shark/src/KsDualMarker.cpp
+++ b/kernel-shark/src/KsDualMarker.cpp
@@ -156,7 +156,7 @@  KsDualMarkerSM::KsDualMarkerSM(QWidget *parent)

 	for (auto const &l: {&_labelMA, &_labelMB, &_labelDelta}) {
 		l->setFrameStyle(QFrame::Panel | QFrame::Sunken);
-		l->setStyleSheet("QLabel {background-color : white;}");
+		l->setStyleSheet("QLabel {background-color : white; color : black}");
 		l->setTextInteractionFlags(Qt::TextSelectableByMouse);
 		l->setFixedWidth(FONT_WIDTH * 16);
 	}