mirror of
https://github.com/imputnet/cobalt.git
synced 2026-02-28 03:09:26 +00:00
web/lib/settings: add accessibility section, add dontAutoOpenQueue
moved `reduceMotion`, `reduceTransparency`, and `disableHaptics` to accessibility, migrated first two from old version of settings
This commit is contained in:
@@ -64,6 +64,17 @@ const migrations: Record<number, Migrator> = {
|
||||
}
|
||||
}
|
||||
|
||||
if (settings?.appearance) {
|
||||
if ("reduceMotion" in settings.appearance) {
|
||||
out.accessibility!.reduceMotion = settings.appearance.reduceMotion;
|
||||
delete settings.appearance.reduceMotion;
|
||||
}
|
||||
if ("reduceTransparency" in settings.appearance) {
|
||||
out.accessibility!.reduceTransparency = settings.appearance.reduceTransparency;
|
||||
delete settings.appearance.reduceTransparency;
|
||||
}
|
||||
}
|
||||
|
||||
return out as AllPartialSettingsWithSchema;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user