fix: change bool to objective c

This commit is contained in:
Leafd 2025-10-07 15:01:15 -04:00
parent 6eefa434dc
commit 216cedd332
No known key found for this signature in database
GPG key ID: D44AE7A3699406BE

View file

@ -163,10 +163,10 @@ pub fn run() {
use objc::{msg_send, sel, sel_impl};
let bg_color = NSColor::clearColor(nil);
ns_window.setBackgroundColor_(bg_color);
ns_window.setOpaque_(false);
let bg_color = NSColor::clearColor(nil);
ns_window.setBackgroundColor_(bg_color);
ns_window.setOpaque_(0);
let content_view: id = msg_send![ns_window, contentView];
let _: () = msg_send![content_view, setWantsLayer: true];