From 256be46e1019fd530807b03b88c4e312d6492795 Mon Sep 17 00:00:00 2001 From: boyan01 <17426470+boyan01@users.noreply.github.com> Date: Thu, 9 Jul 2026 15:37:14 +0800 Subject: [PATCH] Add Windows titlebar divider --- lib/app.dart | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/lib/app.dart b/lib/app.dart index 563a09f941..56751932f7 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -191,7 +191,9 @@ class _App extends HookConsumerWidget { ), child: SystemTrayWidget( child: TextInputActionHandler( - child: AuthGuard(child: child!), + child: _WindowsTitleBarDivider( + child: AuthGuard(child: child!), + ), ), ), ), @@ -205,6 +207,26 @@ class _App extends HookConsumerWidget { } } +class _WindowsTitleBarDivider extends StatelessWidget { + const _WindowsTitleBarDivider({required this.child}); + + final Widget child; + + @override + Widget build(BuildContext context) => Column( + children: [ + if (Platform.isWindows && context.brightness == Brightness.light) + Container( + height: 1, + color: context.theme.divider, + ), + Expanded( + child: child, + ), + ], + ); +} + class _Home extends HookConsumerWidget { const _Home();