This PR adds a preference to manually set light/dark mode independently from the system's setting. The color scheme is changed immediately (no need to restart the app) and the setting is saved in UserDefaults together with all the other AppPreferences.
Other Information
In NavigationViewModel.swift, I changed identityContext from a let constant to a public private(set) var and added the @Published wrapper, in order to subscribe to changes made in appPreferences using Combine. I suppose this doesn't have negative side-effects, but I'm not 100% sure.
Translations for all languages except EN and DE are still missing, their value is currently in English. I don't really know how the localization workflow for Metatext works in detail, so don't hesitate to correct me here!
Fixes #73
Screenshots (system is currently set to dark mode):
Summary
This PR adds a preference to manually set light/dark mode independently from the system's setting. The color scheme is changed immediately (no need to restart the app) and the setting is saved in UserDefaults together with all the other
AppPreferences
.Other Information
NavigationViewModel.swift
, I changedidentityContext
from alet
constant to apublic private(set) var
and added the@Published
wrapper, in order to subscribe to changes made inappPreferences
using Combine. I suppose this doesn't have negative side-effects, but I'm not 100% sure.Screenshots (system is currently set to dark mode):
Legal