Commit 0303c4a
Artale
fix: apply Mica/Acrylic vibrancy on Windows to prevent transparent background (#12)
* fix: apply Mica/Acrylic vibrancy on Windows to prevent transparent background
The window config has transparent:true for macOS vibrancy, but only
macOS got an apply_vibrancy() call. On Windows, this left the window
fully see-through — you could see other apps through the editor.
Adds a #[cfg(target_os = "windows")] block that tries Mica first
(Windows 11 native material) and falls back to Acrylic (Windows 10
1809+). Applied in both the main window setup and create_editor_window.
The RGBA (18, 18, 18, 200) gives a dark semi-opaque base that matches
the dark theme defaults.
fixes #10
* fix: use None for Mica dark_mode, add log::warn! fallback, reword comment
Addresses code review feedback:
- Use None instead of Some(true) for Mica dark_mode, letting the system decide
- Add log::warn! when Mica is unavailable and Acrylic fallback is used
- Reword comment for clarity1 parent 7922b80 commit 0303c4a
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
59 | 70 | | |
60 | 71 | | |
61 | 72 | | |
| |||
359 | 370 | | |
360 | 371 | | |
361 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
362 | 383 | | |
363 | 384 | | |
0 commit comments