From e6dda72bfa12394d3d94ce980ea95c6d67fb5162 Mon Sep 17 00:00:00 2001 From: Collecting Date: Sat, 31 Jan 2026 02:38:00 +0100 Subject: [PATCH] fix(ui): Light/Dark text issues Signed-off-by: Collecting --- src/citron/configuration/configure_per_game.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/citron/configuration/configure_per_game.cpp b/src/citron/configuration/configure_per_game.cpp index fc76fe3ae..d780acab8 100644 --- a/src/citron/configuration/configure_per_game.cpp +++ b/src/citron/configuration/configure_per_game.cpp @@ -360,10 +360,10 @@ void ConfigurePerGame::UpdateTheme() { // 3. Action Buttons const QString button_css = QStringLiteral( - "QPushButton { background-color: transparent; color: #ffffff; border: 2px solid %1; border-radius: 4px; font-weight: bold; padding: 4px 12px; }" + "QPushButton { background-color: transparent; color: %4; border: 2px solid %1; border-radius: 4px; font-weight: bold; padding: 4px 12px; }" "QPushButton:hover { border-color: %2; color: %2; }" "QPushButton:pressed { background-color: %3; color: #ffffff; border-color: %3; }" - ).arg(hue_hex).arg(hue_light).arg(hue_dark); + ).arg(hue_hex, hue_light, hue_dark, txt); if (ui->buttonBox) { for (auto* button : ui->buttonBox->findChildren()) { @@ -415,17 +415,17 @@ void ConfigurePerGame::UpdateTheme() { // Fix for Gamescope: Style buttons once outside the timer loop if (ui->buttonBox) { ui->buttonBox->setStyleSheet(QStringLiteral( - "QPushButton { background-color: transparent; color: #ffffff; border: 2px solid %1; border-radius: 4px; font-weight: bold; padding: 4px 12px; }" + "QPushButton { background-color: transparent; color: %4; border: 2px solid %1; border-radius: 4px; font-weight: bold; padding: 4px 12px; }" "QPushButton:hover { border-color: %2; color: %2; }" "QPushButton:pressed { background-color: %3; color: #ffffff; border-color: %3; }" - ).arg(accent).arg(Theme::GetAccentColorHover()).arg(Theme::GetAccentColorPressed())); + ).arg(accent, Theme::GetAccentColorHover(), Theme::GetAccentColorPressed(), txt)); } if (ui->trim_xci_button) { ui->trim_xci_button->setStyleSheet(QStringLiteral( - "QPushButton { background-color: transparent; color: #ffffff; border: 2px solid %1; border-radius: 4px; font-weight: bold; padding: 4px 12px; }" + "QPushButton { background-color: transparent; color: %4; border: 2px solid %1; border-radius: 4px; font-weight: bold; padding: 4px 12px; }" "QPushButton:hover { border-color: %2; color: %2; }" "QPushButton:pressed { background-color: %3; color: #ffffff; border-color: %3; }" - ).arg(accent).arg(Theme::GetAccentColorHover()).arg(Theme::GetAccentColorPressed())); + ).arg(accent, Theme::GetAccentColorHover(), Theme::GetAccentColorPressed(), txt)); } if (UISettings::values.enable_rainbow_mode.GetValue() == false && rainbow_timer) {