finished font family changing and sharing on client-side

This commit is contained in:
Kima
2024-02-18 21:12:03 +01:00
parent 4a1aa75cb2
commit 304e0ea877
5 changed files with 12 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ class SharedTheme {
SharedGradeColors gradeColors;
String displayName;
ThemeMode? themeMode;
String fontFamily;
SharedTheme({
required this.json,
@@ -27,6 +28,7 @@ class SharedTheme {
required this.gradeColors,
this.displayName = 'displayName',
this.themeMode,
required this.fontFamily,
});
factory SharedTheme.fromJson(Map json, SharedGradeColors gradeColors) {
@@ -45,6 +47,7 @@ class SharedTheme {
themeMode: json['theme_mode'] == 'dark'
? ThemeMode.dark
: (json['theme_mode'] == 'light' ? ThemeMode.light : null),
fontFamily: json['font_family'] ?? '',
);
}
}