Theme dropdown, correct inverted settings

This commit is contained in:
Natsumi
2024-08-13 20:25:09 +12:00
parent 65e5ef5bc6
commit a7cad54867
3 changed files with 50 additions and 46 deletions

View File

@@ -15682,11 +15682,12 @@ speechSynthesis.getVoices();
.matchMedia('(prefers-color-scheme: dark)')
.addEventListener('change', async () => {
if ($app.themeMode === 'system') {
await $app.saveThemeMode();
await $app.changeThemeMode();
}
});
$app.methods.saveThemeMode = async function () {
$app.methods.saveThemeMode = async function (newThemeMode) {
this.themeMode = newThemeMode;
await configRepository.setString('VRCX_ThemeMode', this.themeMode);
await this.changeThemeMode();
};