Merge pull request #2553 from lioncash/language

yuzu/configuration: Make all widgets and dialogs aware of language changes
This commit is contained in:
Zach Hilman 2019-06-07 21:46:08 -04:00 committed by GitHub
commit f3b36847ab
31 changed files with 326 additions and 58 deletions

View file

@ -101,6 +101,18 @@ void ConfigureGraphics::ApplyConfiguration() {
Settings::values.bg_blue = static_cast<float>(bg_color.blueF());
}
void ConfigureGraphics::changeEvent(QEvent* event) {
if (event->type() == QEvent::LanguageChange) {
RetranslateUI();
}
QWidget::changeEvent(event);
}
void ConfigureGraphics::RetranslateUI() {
ui->retranslateUi(this);
}
void ConfigureGraphics::UpdateBackgroundColorButton(QColor color) {
bg_color = color;