mirror of https://git.suyu.dev/suyu/suyu
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:
parent
783e8952e0
commit
11cd91ea01
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue