@@ -96,6 +96,8 @@ KsTraceGraph::KsTraceGraph(QWidget *parent)
_legendAxisX.layout()->addWidget(&_labelXMin);
_legendAxisX.layout()->addWidget(&_labelXMid);
_legendAxisX.layout()->addWidget(&_labelXMax);
+ _legendAxisX.setStyleSheet("QLabel { background-color : white; color: black}");
+
_drawWindow.setMinimumSize(100, 100);
_drawWindow.setStyleSheet("QWidget {background-color : white;}");
@@ -580,7 +582,7 @@ void KsTraceGraph::_updateGraphLegends()
width = STRING_WIDTH(graphName);
name->setAlignment(Qt::AlignBottom);
- name->setStyleSheet("QLabel {background-color : white;}");
+ name->setStyleSheet("QLabel {background-color : white; color : black}");
name->setFixedHeight(KS_GRAPH_HEIGHT);
layout->addWidget(name);
};
At present, background color of axes labels of the plot is forced to white with a stylesheet, but the text color stays unchanged. As a result, text is barely visible when using dark color schemes. This patch forces the text color to black for these labels, making them readable on all color schemes. Signed-off-by: Mikhail Rudenko <mike.rudenko@gmail.com> --- kernel-shark/src/KsTraceGraph.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.23.0