diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-26 23:40:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 23:40:37 +0200 |
commit | dec5680934b814370326ebd826fa7970d2411bc7 (patch) | |
tree | 8a3a59df5c16f1ea0b7dc943a2c044486f01ceb4 /src | |
parent | Merge pull request #6198 from Kewlan/favorite-games (diff) | |
parent | applets/swkbd: Fix software keyboard button hint scaling (diff) | |
download | yuzu-dec5680934b814370326ebd826fa7970d2411bc7.tar yuzu-dec5680934b814370326ebd826fa7970d2411bc7.tar.gz yuzu-dec5680934b814370326ebd826fa7970d2411bc7.tar.bz2 yuzu-dec5680934b814370326ebd826fa7970d2411bc7.tar.lz yuzu-dec5680934b814370326ebd826fa7970d2411bc7.tar.xz yuzu-dec5680934b814370326ebd826fa7970d2411bc7.tar.zst yuzu-dec5680934b814370326ebd826fa7970d2411bc7.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/applets/software_keyboard.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/yuzu/applets/software_keyboard.cpp b/src/yuzu/applets/software_keyboard.cpp index fd3368479..653486493 100644 --- a/src/yuzu/applets/software_keyboard.cpp +++ b/src/yuzu/applets/software_keyboard.cpp @@ -1027,10 +1027,8 @@ void QtSoftwareKeyboardDialog::ChangeBottomOSKIndex() { ui->bottomOSK->setCurrentIndex(static_cast<int>(bottom_osk_index)); ui->button_shift_shift->setStyleSheet( - QStringLiteral("background-image: url(:/overlay/osk_button_shift_lock_off.png);" - "\nbackground-position: left top;" - "\nbackground-repeat: no-repeat;" - "\nbackground-origin: content;")); + QStringLiteral("image: url(:/overlay/osk_button_shift_lock_off.png);" + "\nimage-position: left;")); ui->button_shift_shift->setIconSize(ui->button_shift->iconSize()); ui->button_backspace_shift->setIconSize(ui->button_backspace->iconSize()); @@ -1040,10 +1038,8 @@ void QtSoftwareKeyboardDialog::ChangeBottomOSKIndex() { caps_lock_enabled = false; ui->button_shift_shift->setStyleSheet( - QStringLiteral("background-image: url(:/overlay/osk_button_shift_lock_off.png);" - "\nbackground-position: left top;" - "\nbackground-repeat: no-repeat;" - "\nbackground-origin: content;")); + QStringLiteral("image: url(:/overlay/osk_button_shift_lock_off.png);" + "\nimage-position: left;")); ui->button_shift_shift->setIconSize(ui->button_shift->iconSize()); ui->button_backspace_shift->setIconSize(ui->button_backspace->iconSize()); @@ -1056,10 +1052,8 @@ void QtSoftwareKeyboardDialog::ChangeBottomOSKIndex() { caps_lock_enabled = true; ui->button_shift_shift->setStyleSheet( - QStringLiteral("background-image: url(:/overlay/osk_button_shift_lock_on.png);" - "\nbackground-position: left top;" - "\nbackground-repeat: no-repeat;" - "\nbackground-origin: content;")); + QStringLiteral("image: url(:/overlay/osk_button_shift_lock_on.png);" + "\nimage-position: left;")); ui->button_shift_shift->setIconSize(ui->button_shift->iconSize()); ui->button_backspace_shift->setIconSize(ui->button_backspace->iconSize()); |