mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-02 05:03:04 -04:00
settings / preferences upate
This commit is contained in:
parent
1455aabe6c
commit
d962f98786
26 changed files with 1015 additions and 125 deletions
|
@ -9,10 +9,13 @@ part of 'theme_preference.dart';
|
|||
_$ThemePreferencesImpl _$$ThemePreferencesImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$ThemePreferencesImpl(
|
||||
brightnessPreference:
|
||||
BrightnessPreference.fromJson(json['brightness_preference']),
|
||||
colorPreference: ColorPreference.fromJson(json['color_preference']),
|
||||
displayScale: (json['display_scale'] as num).toDouble(),
|
||||
brightnessPreference: json['brightness_preference'] == null
|
||||
? BrightnessPreference.system
|
||||
: BrightnessPreference.fromJson(json['brightness_preference']),
|
||||
colorPreference: json['color_preference'] == null
|
||||
? ColorPreference.vapor
|
||||
: ColorPreference.fromJson(json['color_preference']),
|
||||
displayScale: (json['display_scale'] as num?)?.toDouble() ?? 1,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ThemePreferencesImplToJson(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue