Commit b03fbd6c authored by Scott Petrovic's avatar Scott Petrovic

make the advanced color selector and color selector the mid grey

parent 2255829a
......@@ -180,13 +180,7 @@ void KisColorSelector::paintEvent(QPaintEvent* e)
{
Q_UNUSED(e);
QPainter p(this);
// for selecting colors we want to keep a somewhat neutral gray to make selecting
// a color easier in case someone uses a wacky theme color
QColor bgColor = qApp->palette().color(QPalette::Base);
int darkenCoeff = bgColor.value() > 128 ? 180 : 50; // same logic icons use
p.fillRect(0,0,width(),height(),QColor(darkenCoeff,darkenCoeff,darkenCoeff));
p.fillRect(0,0,width(), height(), QColor(128,128,128));
p.setRenderHint(QPainter::Antialiasing);
// this variable name isn't entirely accurate to what always happens. see definition in header file to understand it better
......
......@@ -128,11 +128,7 @@ protected:
void paintEvent(QPaintEvent *) override
{
QPainter painter(this);
QColor bgColor = qApp->palette().color(QPalette::Base);
int darkenCoeff = bgColor.value() > 128 ? 180 : 50; // same logic icons use
painter.fillRect(0,0,width(), height(), QColor(darkenCoeff,darkenCoeff,darkenCoeff));
painter.fillRect(0,0,width(), height(), QColor(128,128,128));
painter.fillRect(highlightArea, palette().highlight());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment