[2/4] kernel-shark: Set text color to black in pointer position QLabel
diff mbox series

Message ID 20191010212429.469155-3-mike.rudenko@gmail.com
State Accepted
Headers show
  • Fix KernelShark appearance on dark color schemes
Related show

Commit Message

Mikhail Rudenko Oct. 10, 2019, 9:24 p.m. UTC
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@gmail.com>
 kernel-shark/src/KsTraceGraph.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff mbox series

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)

 	_labelP2.setFrameStyle(QFrame::Panel | QFrame::Sunken);
-	_labelP2.setStyleSheet("QLabel { background-color : white;}");
+	_labelP2.setStyleSheet("QLabel { background-color : white; color: black}");
 	_labelP2.setFixedWidth(FONT_WIDTH * 16);