Commit 15a092f7 authored by Scott Petrovic's avatar Scott Petrovic

Make the color selector background use the base theme color instead of neutral gray

parent bc48b717
......@@ -25,6 +25,7 @@
#include <QMouseEvent>
#include <QTimer>
#include <QPushButton>
#include <QApplication>
#include <kconfig.h>
#include <kconfiggroup.h>
......@@ -167,7 +168,9 @@ void KisColorSelector::paintEvent(QPaintEvent* e)
{
Q_UNUSED(e);
QPainter p(this);
p.fillRect(0,0,width(),height(),QColor(128,128,128));
QColor bgColor = qApp->palette().color(QPalette::Base);
p.fillRect(0,0,width(),height(),bgColor);
p.setRenderHint(QPainter::Antialiasing);
m_mainComponent->paintEvent(&p);
......
......@@ -18,6 +18,7 @@
#include "kis_color_selector_combo_box.h"
#include <QGridLayout>
#include <QPainter>
#include <QApplication>
#include "kis_color_selector.h"
#include "kis_canvas2.h"
......@@ -127,7 +128,8 @@ protected:
void paintEvent(QPaintEvent *) override
{
QPainter painter(this);
painter.fillRect(0,0,width(), height(), QColor(128,128,128));
QColor bgColor = qApp->palette().color(QPalette::Base);
painter.fillRect(0,0,width(), height(), bgColor);
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