diff -r a24da8de2a3b -r 81cd5dee6d77 widgets/colorbutton.cpp --- a/widgets/colorbutton.cpp Sat Apr 08 15:03:54 2023 +0300 +++ b/widgets/colorbutton.cpp Sat Apr 08 15:05:57 2023 +0300 @@ -36,13 +36,6 @@ this->setStyleSheet(QStringLiteral( "*{background-color: %1; color: %2;}" ).arg(color.name()).arg(foreground.name())); - /* - palette.setColor(QPalette::ButtonText, foreground); - for (QWidget* widget : {(QWidget*)this->lineEdit, (QWidget*)this->button}) { - widget->setPalette(palette); - widget->setStyle(style); - } - */ Q_EMIT this->colorChanged(this->color()); }); this->setColor(Qt::black);