update font

This commit is contained in:
2024-12-14 17:15:56 +08:00
parent bd15053c2f
commit a10e8c05d5
2 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@@ -72,7 +72,6 @@ class MyApp extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge); SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
var windowsFont = kDebugMode ? "微软雅黑" : "font";
return StateBuilder<SimpleController>( return StateBuilder<SimpleController>(
init: SimpleController(), init: SimpleController(),
tag: "MyApp", tag: "MyApp",
@@ -105,7 +104,7 @@ class MyApp extends StatelessWidget {
title: 'pixes', title: 'pixes',
theme: FluentThemeData( theme: FluentThemeData(
brightness: brightness, brightness: brightness,
fontFamily: App.isWindows ? windowsFont : null, fontFamily: App.isWindows ? "Microsoft YaHei UI" : null,
accentColor: AccentColor.swatch({ accentColor: AccentColor.swatch({
'darkest': darken(colorScheme.primary, 30), 'darkest': darken(colorScheme.primary, 30),
'darker': darken(colorScheme.primary, 20), 'darker': darken(colorScheme.primary, 20),
@@ -140,7 +139,7 @@ class MyApp extends StatelessWidget {
colorScheme: colorScheme, useMaterial3: true), colorScheme: colorScheme, useMaterial3: true),
child: DefaultTextStyle.merge( child: DefaultTextStyle.merge(
style: TextStyle( style: TextStyle(
fontFamily: App.isWindows ? 'font' : null, fontFamily: App.isWindows ? "Microsoft YaHei UI" : null,
), ),
child: OverlayWidget(child), child: OverlayWidget(child),
), ),