Liquid Glass settings window turns opaque when focused and see-through when not
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 66/100
Hướng nghiên cứu
Start by reading App/Views/ControlPanel/Components/WindowGlassBackdrop.swift and the applyWindowStyle implementation mentioned in the report. Reproduce the focus changes with the Liquid Glass style and compare the backdrop state with the window’s key notifications. The issue is resolved when the background stays consistent or tracks focus changes promptly; the report notes that it was not reproducible after reopening the app.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Area
Settings
Wallpaper
Any
What you did
- Use the Liquid Glass window style.
- Open Settings › Displays.
- Switch between the Wallpaper Machine window and another app (CotEditor) a few times.
What went wrong
The window's background doesn't follow focus. It's often opaque while I use the window and see-through after I switch to another app. In the attached 15 s recording the macOS log shows 14 focus changes, but the background changes 5 times. At 4.0 s the window has focus (blue toggles and sidebar selection) and is opaque. At 2.5 s and 8.5 s it has lost focus (grey toggles) and is see-through.
I recorded this at 14:48, while the app was stuck after a failed quit (see #343). After I force-quit and reopened the app, I couldn't reproduce it, so the two bugs may be connected. The app log shows no errors during the recording.
Cause: WindowGlassBackdrop (App/Views/ControlPanel/Components/WindowGlassBackdrop.swift) uses an NSVisualEffectView with state = .followsWindowActiveState, inside a window that applyWindowStyle makes non-opaque with a clear background. The effect view seems to miss some focus changes and fall behind the window. I don't know whether AppKit or the SwiftUI hosting causes the lag, and I haven't tested a patched build.
Suggested fix: Set state = .active so the glass looks the same with or without focus, or set the state yourself on NSWindow.didBecomeKeyNotification and didResignKeyNotification.
What you expected
The window looks the same with or without focus, or at least changes at the same moment the focus does.
Diagnostics report
https://github.com/user-attachments/assets/4782c53d-2014-41a8-9454-43ce46515b5d
Details from the app
No response
App version
1.18.0 (71) (macOS 27.2.1)
- Ngôn ngữ chính
- Swift
- Star
- 1.3k
- Fork
- 41
- Merge trung bình
- 4 giờ 46 phút
- Pull request đã merge (30 ngày)
- 86
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MMFoundation/WallpaperMachine
-
area: settings bug Haiku review: no-score ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MMFoundation/WallpaperMachine#346 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: displays bug review: no-score Sonnet
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
MMFoundation/WallpaperMachine#344 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Quitting fails with "macOS is still restoring the desktop wallpaper" after closing the MacBook lidĐang mởarea: displays bug review: no-score Sonnet ui
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
MMFoundation/WallpaperMachine#343 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
problem appĐang mởbug review: low Sonnet status: needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
MMFoundation/WallpaperMachine#342 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Web] vảy đuôiĐang mởbug review: low Sonnet status: needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
MMFoundation/WallpaperMachine#341 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của MMFoundation/WallpaperMachine
Issue tương tự
-
bug priority:low status:queued
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Make the HTTP server's keep-alive and headers timeouts configurableCó thể đã có người làm @mattgodbolt đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
compiler-explorer/compiler-explorer#9902 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
android internals
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
software-mansion-labs/Diplomat#291 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🎉 Add USBview-HSĐang mởaddition
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
jaywcjlove/awesome-mac#5403 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày