fixed selection color for light theme

This commit is contained in:
fourtf 2017-12-19 02:37:58 +01:00
parent f8e4d9a737
commit e39b9093f9
4 changed files with 6 additions and 3 deletions

View file

@ -117,6 +117,9 @@ void ColorScheme::setColors(double hue, double multiplier)
"border:" + TabSelectedBackground.name() + ";" + "color:" + Text.name() + "border:" + TabSelectedBackground.name() + ";" + "color:" + Text.name() +
";" + "selection-background-color:" + TabSelectedBackground.name(); ";" + "selection-background-color:" + TabSelectedBackground.name();
// Selection
Selection = isLightTheme() ? QColor(0, 0, 0, 64) : QColor(255, 255, 255, 64);
this->updated(); this->updated();
} }

View file

@ -75,6 +75,8 @@ public:
QBrush TabNewMessageBackground; QBrush TabNewMessageBackground;
QColor Selection;
const int HighlightColorCount = 3; const int HighlightColorCount = 3;
QColor HighlightColors[3]; QColor HighlightColors[3];

View file

@ -576,7 +576,7 @@ void ChannelView::drawMessageSelection(QPainter &painter, messages::MessageRef *
return; return;
} }
QColor selectionColor(255, 255, 255, 63); QColor selectionColor = this->colorScheme.Selection;
int charIndex = 0; int charIndex = 0;
size_t i = 0; size_t i = 0;

View file

@ -20,8 +20,6 @@ RippleEffectLabel::RippleEffectLabel(BaseWidget *parent, int spacing)
this->hbox.addSpacing(spacing); this->hbox.addSpacing(spacing);
this->hbox.addWidget(&this->label); this->hbox.addWidget(&this->label);
this->hbox.addSpacing(spacing); this->hbox.addSpacing(spacing);
// this->setMouseEffectColor(QColor(255, 255, 255, 63));
} }
} // namespace widgets } // namespace widgets