configure_graphics: use stylesheet for background button color

Keeps things consistent with the color picker from d6ca4f11c1 and joycon color picker buttons
This commit is contained in:
lui 2024-10-08 19:06:32 -05:00 committed by spectranator
parent 783e8952e0
commit 11cd91ea01
1 changed files with 2 additions and 5 deletions

View File

@ -487,11 +487,8 @@ void ConfigureGraphics::RetranslateUI() {
void ConfigureGraphics::UpdateBackgroundColorButton(QColor color) {
bg_color = color;
QPixmap pixmap(ui->bg_button->size());
pixmap.fill(bg_color);
const QIcon color_icon(pixmap);
ui->bg_button->setIcon(color_icon);
ui->bg_button->setStyleSheet(
QStringLiteral("background-color: %1; min-width: 80px;").arg(bg_color.name()));
}
void ConfigureGraphics::UpdateAPILayout() {