mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2025-08-07 11:58:56 +00:00
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
1 changed files with 2 additions and 5 deletions
|
@ -487,11 +487,8 @@ void ConfigureGraphics::RetranslateUI() {
|
||||||
void ConfigureGraphics::UpdateBackgroundColorButton(QColor color) {
|
void ConfigureGraphics::UpdateBackgroundColorButton(QColor color) {
|
||||||
bg_color = color;
|
bg_color = color;
|
||||||
|
|
||||||
QPixmap pixmap(ui->bg_button->size());
|
ui->bg_button->setStyleSheet(
|
||||||
pixmap.fill(bg_color);
|
QStringLiteral("background-color: %1; min-width: 80px;").arg(bg_color.name()));
|
||||||
|
|
||||||
const QIcon color_icon(pixmap);
|
|
||||||
ui->bg_button->setIcon(color_icon);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureGraphics::UpdateAPILayout() {
|
void ConfigureGraphics::UpdateAPILayout() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue