Differential D9665 Diff 24736 plugins/dockers/advancedcolorselector/kis_color_selector_combo_box.cpp
Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/advancedcolorselector/kis_color_selector_combo_box.cpp
Context not available. | |||||
18 | #include "kis_color_selector_combo_box.h" | 18 | #include "kis_color_selector_combo_box.h" | ||
---|---|---|---|---|---|
19 | #include <QGridLayout> | 19 | #include <QGridLayout> | ||
20 | #include <QPainter> | 20 | #include <QPainter> | ||
21 | #include <QApplication> | ||||
21 | 22 | | |||
22 | #include "kis_color_selector.h" | 23 | #include "kis_color_selector.h" | ||
23 | #include "kis_canvas2.h" | 24 | #include "kis_canvas2.h" | ||
Context not available. | |||||
127 | void paintEvent(QPaintEvent *) override | 128 | void paintEvent(QPaintEvent *) override | ||
128 | { | 129 | { | ||
129 | QPainter painter(this); | 130 | QPainter painter(this); | ||
130 | painter.fillRect(0,0,width(), height(), QColor(128,128,128)); | 131 | | ||
132 | QColor bgColor = qApp->palette().color(QPalette::AlternateBase); | ||||
133 | painter.fillRect(0,0,width(), height(), QColor(bgColor.value(),bgColor.value(),bgColor.value())); | ||||
131 | painter.fillRect(highlightArea, palette().highlight()); | 134 | painter.fillRect(highlightArea, palette().highlight()); | ||
132 | } | 135 | } | ||
133 | 136 | | |||
Context not available. |