mirror of
https://github.com/localsend/localsend.git
synced 2026-06-22 20:00:07 +00:00
fix: add CJK font support for Linux (#2719)
This commit is contained in:
@@ -40,6 +40,14 @@ ThemeData getTheme(ColorMode colorMode, Brightness brightness, DynamicColors? dy
|
||||
AppLocale.zhHk || AppLocale.zhTw => 'Microsoft JhengHei UI',
|
||||
_ => 'Segoe UI Variable Display',
|
||||
};
|
||||
} else if (checkPlatform([TargetPlatform.linux])) {
|
||||
fontFamily = switch (LocaleSettings.currentLocale) {
|
||||
AppLocale.ja => 'Noto Sans CJK JP',
|
||||
AppLocale.ko => 'Noto Sans CJK KR',
|
||||
AppLocale.zhCn => 'Noto Sans CJK SC',
|
||||
AppLocale.zhHk || AppLocale.zhTw => 'Noto Sans CJK TC',
|
||||
_ => 'Noto Sans',
|
||||
};
|
||||
} else {
|
||||
fontFamily = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user