Don't hard code black, but use the same text color as the current theme
#include <QBrush>
#include <QMap>
#include <QBrush>
#include <QMap>
#define ACTIVE_COLOR QColor(Qt::black)
#define ACTIVE_COLOR QColor(Qt::black)
QColor PartSet_TreeNode::activeItemColor() const
{
QColor PartSet_TreeNode::activeItemColor() const
{
+ // instead of ACTIVE_COLOR (black),
+ // use the color text of the current theme (white or black or other)
+ // to make it readable in dark theme (and light theme as well)
+ QColor color = QPalette().text().color() ;
+ return color;