fix(macos): 🐛 restore opaque window background for title bar (#2448)

Keep the first-frame-ready show flow from #1287, but stop clearing the
native window background so the macOS title bar no longer appears transparent.

Co-authored-by: Wine Fox <fox@ling.plus>
This commit is contained in:
泠音
2026-07-21 12:36:19 +08:00
committed by GitHub
parent 0afeb9a55f
commit 2d389424af

View File

@@ -9,9 +9,9 @@ class MainFlutterWindow: NSWindow {
self.contentViewController = flutterViewController self.contentViewController = flutterViewController
self.setFrame(self.frame, display: true) self.setFrame(self.frame, display: true)
// // 使/
self.isOpaque = false self.isOpaque = true
self.backgroundColor = .clear self.backgroundColor = .windowBackgroundColor
RegisterGeneratedPlugins(registry: flutterViewController) RegisterGeneratedPlugins(registry: flutterViewController)