Floating windows: draw the outline under the window's tooltips and menus

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 17:47:35 +00:00
parent ef353ccf9a
commit e070ded799
2 changed files with 14 additions and 2 deletions
-1
View File
@@ -296,7 +296,6 @@ class _WindowLayerState extends State<WindowLayer>
), ),
), ),
if (!entry.maximized) ..._resizeHandles(frame), if (!entry.maximized) ..._resizeHandles(frame),
Positioned.fromRect(rect: frame, child: const WindowOutline()),
], ],
); );
final center = widget.bounds.center(Offset.zero); final center = widget.bounds.center(Offset.zero);
+14 -1
View File
@@ -1,7 +1,8 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'window_frame.dart' show windowCornerRadius; import 'window_frame.dart'
show WindowOutline, windowCornerRadius, windowTitleBarHeight;
import 'window_scope.dart'; import 'window_scope.dart';
/// A floating window's own page stack. Pages pushed from the window's /// A floating window's own page stack. Pages pushed from the window's
@@ -144,6 +145,18 @@ class WindowPageBox extends StatelessWidget {
), ),
), ),
), ),
// The window's edge, title bar included, over the page but under
// the tooltips and menus this navigator's overlay shows above it:
// drawn at the window layer it would cross them.
Positioned.fromRect(
rect: Rect.fromLTRB(
body.left,
body.top - windowTitleBarHeight(context),
body.right,
body.bottom,
),
child: const WindowOutline(),
),
], ],
); );
} }