DolphinQt: Tweak indicator raw-input/input-shape color for better contrast in some dark themes.

This commit is contained in:
Jordan Woyak 2020-02-24 16:12:38 -06:00
parent 122984b46e
commit 6b109bd2a6

View file

@ -72,7 +72,9 @@ QBrush MappingIndicator::GetBBoxBrush() const
QColor MappingIndicator::GetRawInputColor() const QColor MappingIndicator::GetRawInputColor() const
{ {
return palette().shadow().color(); QColor color = palette().text().color();
color.setAlphaF(0.5);
return color;
} }
QPen MappingIndicator::GetInputShapePen() const QPen MappingIndicator::GetInputShapePen() const
@ -82,8 +84,6 @@ QPen MappingIndicator::GetInputShapePen() const
QColor MappingIndicator::GetAdjustedInputColor() const QColor MappingIndicator::GetAdjustedInputColor() const
{ {
// Using highlight color works (typically blue) but the contrast is pretty low.
// return palette().highlight().color();
return Qt::red; return Qt::red;
} }