Optimize android vpn performance
Add custom primary color and color scheme Add linux nad windows arm release Optimize requests and logs page
This commit is contained in:
@@ -17,7 +17,7 @@ _$AppSettingPropsImpl _$$AppSettingPropsImplFromJson(
|
||||
autoLaunch: json['autoLaunch'] as bool? ?? false,
|
||||
silentLaunch: json['silentLaunch'] as bool? ?? false,
|
||||
autoRun: json['autoRun'] as bool? ?? false,
|
||||
openLogs: json['openLogs'] as bool? ?? false,
|
||||
openLogs: json['openLogs'] as bool? ?? true,
|
||||
closeConnections: json['closeConnections'] as bool? ?? true,
|
||||
testUrl: json['testUrl'] as String? ?? defaultTestUrl,
|
||||
isAnimateToPage: json['isAnimateToPage'] as bool? ?? true,
|
||||
@@ -221,16 +221,26 @@ const _$ProxyCardTypeEnumMap = {
|
||||
|
||||
_$ThemePropsImpl _$$ThemePropsImplFromJson(Map<String, dynamic> json) =>
|
||||
_$ThemePropsImpl(
|
||||
primaryColor: (json['primaryColor'] as num?)?.toInt(),
|
||||
primaryColor:
|
||||
(json['primaryColor'] as num?)?.toInt() ?? defaultPrimaryColor,
|
||||
primaryColors: (json['primaryColors'] as List<dynamic>?)
|
||||
?.map((e) => (e as num).toInt())
|
||||
.toList() ??
|
||||
defaultPrimaryColors,
|
||||
themeMode: $enumDecodeNullable(_$ThemeModeEnumMap, json['themeMode']) ??
|
||||
ThemeMode.system,
|
||||
ThemeMode.dark,
|
||||
schemeVariant: $enumDecodeNullable(
|
||||
_$DynamicSchemeVariantEnumMap, json['schemeVariant']) ??
|
||||
DynamicSchemeVariant.tonalSpot,
|
||||
pureBlack: json['pureBlack'] as bool? ?? false,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ThemePropsImplToJson(_$ThemePropsImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'primaryColor': instance.primaryColor,
|
||||
'primaryColors': instance.primaryColors,
|
||||
'themeMode': _$ThemeModeEnumMap[instance.themeMode]!,
|
||||
'schemeVariant': _$DynamicSchemeVariantEnumMap[instance.schemeVariant]!,
|
||||
'pureBlack': instance.pureBlack,
|
||||
};
|
||||
|
||||
@@ -240,6 +250,18 @@ const _$ThemeModeEnumMap = {
|
||||
ThemeMode.dark: 'dark',
|
||||
};
|
||||
|
||||
const _$DynamicSchemeVariantEnumMap = {
|
||||
DynamicSchemeVariant.tonalSpot: 'tonalSpot',
|
||||
DynamicSchemeVariant.fidelity: 'fidelity',
|
||||
DynamicSchemeVariant.monochrome: 'monochrome',
|
||||
DynamicSchemeVariant.neutral: 'neutral',
|
||||
DynamicSchemeVariant.vibrant: 'vibrant',
|
||||
DynamicSchemeVariant.expressive: 'expressive',
|
||||
DynamicSchemeVariant.content: 'content',
|
||||
DynamicSchemeVariant.rainbow: 'rainbow',
|
||||
DynamicSchemeVariant.fruitSalad: 'fruitSalad',
|
||||
};
|
||||
|
||||
_$ConfigImpl _$$ConfigImplFromJson(Map<String, dynamic> json) => _$ConfigImpl(
|
||||
appSetting: json['appSetting'] == null
|
||||
? defaultAppSettingProps
|
||||
@@ -265,8 +287,9 @@ _$ConfigImpl _$$ConfigImplFromJson(Map<String, dynamic> json) => _$ConfigImpl(
|
||||
vpnProps: json['vpnProps'] == null
|
||||
? defaultVpnProps
|
||||
: VpnProps.fromJson(json['vpnProps'] as Map<String, dynamic>?),
|
||||
themeProps:
|
||||
ThemeProps.safeFromJson(json['themeProps'] as Map<String, Object?>?),
|
||||
themeProps: json['themeProps'] == null
|
||||
? defaultThemeProps
|
||||
: ThemeProps.fromJson(json['themeProps'] as Map<String, dynamic>?),
|
||||
proxiesStyle: json['proxiesStyle'] == null
|
||||
? defaultProxiesStyle
|
||||
: ProxiesStyle.fromJson(
|
||||
|
||||
Reference in New Issue
Block a user