At present, the background color of the pointer position QLabel 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 this QLabel, making it readable on all color schemes. Signed-off-by: Mikhail Rudenko <mike.rudenko@xxxxxxxxx> --- kernel-shark/src/KsTraceGraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel-shark/src/KsTraceGraph.cpp b/kernel-shark/src/KsTraceGraph.cpp index 2e48372..73e7577 100644 --- a/kernel-shark/src/KsTraceGraph.cpp +++ b/kernel-shark/src/KsTraceGraph.cpp @@ -62,7 +62,7 @@ KsTraceGraph::KsTraceGraph(QWidget *parent) _pointerBar.addWidget(&_labelP1); _labelP2.setFrameStyle(QFrame::Panel | QFrame::Sunken); - _labelP2.setStyleSheet("QLabel { background-color : white;}"); + _labelP2.setStyleSheet("QLabel { background-color : white; color: black}"); _labelP2.setTextInteractionFlags(Qt::TextSelectableByMouse); _labelP2.setFixedWidth(FONT_WIDTH * 16); _pointerBar.addWidget(&_labelP2); -- 2.23.0