Skip to content

Commit

Permalink
fix windows UI problem, credit: @ChenDoXiu
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-jiao committed Feb 26, 2024
1 parent b4a0c8a commit 14e6973
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class RenamerApp extends StatelessWidget {
locale: _appLocale,
debugShowCheckedModeBanner: false,
theme: ThemeData(
fontFamily: Platform.isWindows ? "微软雅黑" : null,
colorScheme: ColorScheme.fromSeed(
brightness: Brightness.light,
seedColor: const Color(0xff9cdce8),
Expand All @@ -62,6 +63,7 @@ class RenamerApp extends StatelessWidget {
],
),
darkTheme: ThemeData(
fontFamily: Platform.isWindows ? "微软雅黑" : null,
colorScheme: ColorScheme.fromSeed(
brightness: Brightness.dark,
seedColor: const Color(0xff26546e),
Expand Down

0 comments on commit 14e6973

Please sign in to comment.