mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
update font
This commit is contained in:
Binary file not shown.
@@ -72,7 +72,6 @@ class MyApp extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
||||
var windowsFont = kDebugMode ? "微软雅黑" : "font";
|
||||
return StateBuilder<SimpleController>(
|
||||
init: SimpleController(),
|
||||
tag: "MyApp",
|
||||
@@ -105,7 +104,7 @@ class MyApp extends StatelessWidget {
|
||||
title: 'pixes',
|
||||
theme: FluentThemeData(
|
||||
brightness: brightness,
|
||||
fontFamily: App.isWindows ? windowsFont : null,
|
||||
fontFamily: App.isWindows ? "Microsoft YaHei UI" : null,
|
||||
accentColor: AccentColor.swatch({
|
||||
'darkest': darken(colorScheme.primary, 30),
|
||||
'darker': darken(colorScheme.primary, 20),
|
||||
@@ -140,7 +139,7 @@ class MyApp extends StatelessWidget {
|
||||
colorScheme: colorScheme, useMaterial3: true),
|
||||
child: DefaultTextStyle.merge(
|
||||
style: TextStyle(
|
||||
fontFamily: App.isWindows ? 'font' : null,
|
||||
fontFamily: App.isWindows ? "Microsoft YaHei UI" : null,
|
||||
),
|
||||
child: OverlayWidget(child),
|
||||
),
|
||||
|
Reference in New Issue
Block a user