mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-29 12:18:44 +01:00
feat: 'Prefer reduced motion' setting (accessibility / animation opt-out)
Config::reducedMotion (default false = playful animations ON). Surfaced as a checkbox on first run (wizard PageMenu) and in Settings → Appearance — unchecked by default, matching the OS 'Reduce Motion' convention. The mining tab's AnimatedImages now freeze when it's set (MiningBackend exposes it to mining.qml). Foundation for gating the ambient silliness to come.
This commit is contained in:
@@ -27,6 +27,13 @@ PageMenu::PageMenu(WizardFields *fields, WalletKeysFilesModel *wallets, QWidget
|
||||
});
|
||||
|
||||
QString settingsSkin = conf()->get(Config::skin).toString();
|
||||
|
||||
// wowlet: reduced-motion opt-out, surfaced on first run (unchecked = playful
|
||||
// animations on, the default). Also lives in Settings → Appearance.
|
||||
ui->checkBox_reducedMotion->setChecked(conf()->get(Config::reducedMotion).toBool());
|
||||
connect(ui->checkBox_reducedMotion, &QCheckBox::toggled, [](bool toggled){
|
||||
conf()->set(Config::reducedMotion, toggled);
|
||||
});
|
||||
}
|
||||
|
||||
void PageMenu::initializePage() {
|
||||
|
||||
Reference in New Issue
Block a user