mirror of
https://github.com/System-End/hackatime-desktop.git
synced 2026-04-19 22:05:10 +00:00
fix: change bool to objective c
This commit is contained in:
parent
6eefa434dc
commit
216cedd332
1 changed files with 4 additions and 4 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue