Skip to content

An open-source cross-platform alternative to AirDrop

feat: use Microsoft YaHei UI on Windows

Tien Do Name7b7f4e98b99
diff --git a/assets/CHANGELOG.md b/assets/CHANGELOG.md
index 7b4bc76a..084897c9 100644
--- a/assets/CHANGELOG.md
+++ b/assets/CHANGELOG.md
@@ -3,6 +3,7 @@
- feat: add unencrypted HTTP mode
- feat: message input is horizontally scrollable when multiline is unselected
- feat: open message normally in QuickSave mode (instead of saving it into a file)
+- feat(windows): use "Microsoft YaHei UI" font in Windows which works better with Chinese characters
- i18n: add ar, fr, hu, it, ja, ko, pl, ru, sv, zh-Hant (Thanks to all the contributors!)
## 1.6.2 (2023-01-28)
diff --git a/lib/theme.dart b/lib/theme.dart
index 66587511..30027ab8 100644
--- a/lib/theme.dart
+++ b/lib/theme.dart
@@ -47,6 +47,9 @@ ThemeData getTheme(Brightness brightness) {
padding: checkPlatformIsDesktop() ? const EdgeInsets.all(16) : const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
),
),
+
+ // https://github.com/localsend/localsend/issues/52
+ fontFamily: checkPlatform([TargetPlatform.windows]) ? 'Microsoft YaHei UI' : null,
);
}