- `TerminalColors`
- ssh virtual key auto switch
This commit is contained in:
lollipopkit
2023-05-27 20:43:40 +08:00
parent 02494651fc
commit ae822de737
17 changed files with 98 additions and 260 deletions

View File

@@ -12,50 +12,50 @@ class SettingStore extends PersistentStore {
StoreProperty<int> get serverStatusUpdateInterval =>
property('serverStatusUpdateInterval', defaultValue: 3);
/// Lanch page idx
// Lanch page idx
StoreProperty<int> get launchPage => property('launchPage', defaultValue: 0);
/// Version of store db
// Version of store db
StoreProperty<int> get storeVersion =>
property('storeVersion', defaultValue: 0);
/// Show logo on server detail page
// Show logo on server detail page
StoreProperty<bool> get showDistLogo =>
property('showDistLogo', defaultValue: true);
/// First time to use SSH term
// First time to use SSH term
StoreProperty<bool> get firstTimeUseSshTerm =>
property('firstTimeUseSshTerm', defaultValue: true);
StoreProperty<int> get termColorIdx =>
property('termColorIdx', defaultValue: 0);
/// Max retry count when connect to server
// Max retry count when connect to server
StoreProperty<int> get maxRetryCount =>
property('maxRetryCount', defaultValue: 2);
/// Night mode: 0 -> auto, 1 -> light, 2 -> dark
// Night mode: 0 -> auto, 1 -> light, 2 -> dark
StoreProperty<int> get themeMode => property('themeMode', defaultValue: 0);
/// Font file path
// Font file path
StoreProperty<String> get fontPath => property('fontPath');
/// Backgroud running (Android)
// Backgroud running (Android)
StoreProperty<bool> get bgRun => property('bgRun', defaultValue: isAndroid);
/// Server order
// Server order
StoreProperty<List<String>> get serverOrder =>
property('serverOrder', defaultValue: null);
/// Server details page cards order
// Server details page cards order
StoreProperty<List<String>> get detailCardOrder =>
property('detailCardPrder', defaultValue: defaultDetailCardOrder);
/// SSH term font size
// SSH term font size
StoreProperty<double> get termFontSize =>
property('termFontSize', defaultValue: 13);
/// Server detail disk ignore path
// Server detail disk ignore path
StoreProperty<List<String>> get diskIgnorePath =>
property('diskIgnorePath', defaultValue: [
'udev',
@@ -66,6 +66,10 @@ class SettingStore extends PersistentStore {
'none',
]);
/// Locale
// Locale
StoreProperty<String> get locale => property('locale', defaultValue: null);
// SSH virtual key (ctrl | alt) auto turn off
StoreProperty<bool> get sshVirtualKeyAutoOff =>
property('sshVirtualKeyAutoOff', defaultValue: true);
}