Skip to content

Commit 4b6ac11

Browse files
author
liuchuancong
committed
修复菜单栏
1 parent 70a3fe4 commit 4b6ac11

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lib/common/global/platform/desktop_manager.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,11 @@ class CustomTitleBar extends StatelessWidget {
240240
iconMouseOver: Colors.white,
241241
iconMouseDown: Colors.white,
242242
);
243-
final Brightness brightness = theme.brightness;
244-
final Color effectiveBackgroundColor = isFull
245-
? Colors.black
246-
: (brightness == Brightness.dark ? Colors.black : theme.scaffoldBackgroundColor); // 浅色模式下的背景色
247243

248244
return Container(
249-
color: effectiveBackgroundColor,
245+
color: isFull
246+
? Colors.black
247+
: ThemeUtils.select(context, light: theme.scaffoldBackgroundColor, dark: Colors.black),
250248
child: WindowTitleBarBox(
251249
child: Row(
252250
children: [

0 commit comments

Comments
 (0)