Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Use QPalette::highlight for SAP button outline
Luna Lovecraft46f88813b338
diff --git a/libs/ui/kis_selection_actions_panel_button.cpp b/libs/ui/kis_selection_actions_panel_button.cppindex c39b70ea0f..eb2d8b8eb9 100644--- a/libs/ui/kis_selection_actions_panel_button.cpp+++ b/libs/ui/kis_selection_actions_panel_button.cpp@@ -35,15 +35,9 @@ void KisSelectionActionsPanelButton::draw(QPainter &painter)QRect rect = geometry();//Draw an outline when the button is pressedif(this->isDown()) {- QColor bgColor = qApp->palette().window().color();- //Invert the background color- bgColor.setRed(255 - bgColor.red());- bgColor.setGreen(255 - bgColor.green());- bgColor.setBlue(255 - bgColor.blue());-QPainterPath path;path.addRoundedRect(rect, 3, 3);- QPen pen = bgColor;+ QPen pen = qApp->palette().highlight().color();pen.setWidth(2);painter.setPen(pen);