mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed selection color for light theme
This commit is contained in:
parent
f8e4d9a737
commit
e39b9093f9
4 changed files with 6 additions and 3 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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];
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue