#12 new: custom theme mode

This commit is contained in:
lollipopkit
2023-02-25 19:58:37 +08:00
parent 69fae4dd21
commit 5666a23e00
43 changed files with 403 additions and 2609 deletions

View File

@@ -29,4 +29,8 @@ class SettingStore extends PersistentStore {
/// Max retry count when connect to server
StoreProperty<int> get maxRetryCount =>
property('maxRetryCount', defaultValue: 7);
/// Night mode: 0 -> auto, 1 -> light, 2 -> dark
StoreProperty<int> get nightMode =>
property('nightMode', defaultValue: ThemeMode.system.index);
}