Added new DarkMode style.
This commit is contained in:
@@ -229,6 +229,18 @@ void BCAnimatedDelegate::paintHighlightRow(QPainter* painter, const QStyleOption
|
||||
void BCAnimatedDelegate::paintSliderIndicator(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
|
||||
{
|
||||
|
||||
/*
|
||||
if (option.state & QStyle::State_Selected) {
|
||||
// 1. Die originale Highlight-Farbe holen (z.B. das Blau aus dem CSS)
|
||||
QColor highlightColor = option.palette.highlight().color();
|
||||
|
||||
// 2. Transparenz setzen (z.B. nur 30% Deckkraft für "Glass"-Effekt)
|
||||
highlightColor.setAlphaF(0.3); // 0.0 bis 1.0 (float ist oft lesbarer)
|
||||
|
||||
// 3. Zeichnen (Brush setzt die Füllfarbe)
|
||||
painter->fillRect(option.rect, highlightColor);
|
||||
}
|
||||
*/
|
||||
const BCValue& valueX = *(_valueList[ index.row()].get());
|
||||
int value = 50;//index.model()->data(index, Qt::DisplayRole).toInt();
|
||||
|
||||
@@ -237,13 +249,11 @@ void BCAnimatedDelegate::paintSliderIndicator(QPainter* painter, const QStyleOpt
|
||||
{
|
||||
painter->fillRect(option.rect, option.palette.highlight());
|
||||
}
|
||||
else if (index.row() % 2 == 1)
|
||||
{
|
||||
painter->fillRect(option.rect, QColor(0xFAFAFA));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
painter->fillRect(option.rect, Qt::white);
|
||||
QColor bcColor = option.palette.color(QPalette::Base);
|
||||
painter->fillRect(option.rect, bcColor);
|
||||
}
|
||||
|
||||
// Text und kleiner Slider-Indikator zeichnen
|
||||
|
||||
Reference in New Issue
Block a user