fixed selection color for light theme
This commit is contained in:
@@ -117,6 +117,9 @@ void ColorScheme::setColors(double hue, double multiplier)
|
||||
"border:" + TabSelectedBackground.name() + ";" + "color:" + Text.name() +
|
||||
";" + "selection-background-color:" + TabSelectedBackground.name();
|
||||
|
||||
// Selection
|
||||
Selection = isLightTheme() ? QColor(0, 0, 0, 64) : QColor(255, 255, 255, 64);
|
||||
|
||||
this->updated();
|
||||
}
|
||||
|
||||
|
||||
@@ -75,6 +75,8 @@ public:
|
||||
|
||||
QBrush TabNewMessageBackground;
|
||||
|
||||
QColor Selection;
|
||||
|
||||
const int HighlightColorCount = 3;
|
||||
QColor HighlightColors[3];
|
||||
|
||||
|
||||
@@ -576,7 +576,7 @@ void ChannelView::drawMessageSelection(QPainter &painter, messages::MessageRef *
|
||||
return;
|
||||
}
|
||||
|
||||
QColor selectionColor(255, 255, 255, 63);
|
||||
QColor selectionColor = this->colorScheme.Selection;
|
||||
|
||||
int charIndex = 0;
|
||||
size_t i = 0;
|
||||
|
||||
@@ -20,8 +20,6 @@ RippleEffectLabel::RippleEffectLabel(BaseWidget *parent, int spacing)
|
||||
this->hbox.addSpacing(spacing);
|
||||
this->hbox.addWidget(&this->label);
|
||||
this->hbox.addSpacing(spacing);
|
||||
|
||||
// this->setMouseEffectColor(QColor(255, 255, 255, 63));
|
||||
}
|
||||
|
||||
} // namespace widgets
|
||||
|
||||
Reference in New Issue
Block a user