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:
@@ -296,7 +296,6 @@ class _WindowLayerState extends State<WindowLayer>
|
||||
),
|
||||
),
|
||||
if (!entry.maximized) ..._resizeHandles(frame),
|
||||
Positioned.fromRect(rect: frame, child: const WindowOutline()),
|
||||
],
|
||||
);
|
||||
final center = widget.bounds.center(Offset.zero);
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/rendering.dart';
|
||||
|
||||
import 'window_frame.dart' show windowCornerRadius;
|
||||
import 'window_frame.dart'
|
||||
show WindowOutline, windowCornerRadius, windowTitleBarHeight;
|
||||
import 'window_scope.dart';
|
||||
|
||||
/// 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(),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user