Repository navigation
Commit e3ff5d1
committed
Make a translucent background color really see-through on macOS
SetBackgroundColor only set NSWindow.backgroundColor. A window that stays opaque composites that color over black, and a content view controller with a backing of its own - a FlutterViewController is opaque black - covers it anyway. A color with alpha now also clears NSWindow.opaque and is handed to a content view controller that has a backgroundColor.
Found with the Flutter floating_toolbar_example: the frameless toolbar window showed a black rectangle around its rounded content.1 parent bbf3549 commit e3ff5d1
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
733 | 744 | | |
734 | 745 | | |
735 | 746 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
851 | 854 | | |
852 | 855 | | |
853 | 856 | | |
| |||
0 commit comments