darwin: temporarily set window background to be transparent. examples: Add core-transparent-window and remove input from core-triangle

This commit is contained in:
foxnne 2024-12-03 14:18:40 -06:00 committed by Emi Gutekanst
parent f8a2858df8
commit 19040cae25
6 changed files with 226 additions and 17 deletions

View file

@ -84,23 +84,6 @@ pub fn tick(app: *App, core: *mach.Core) void {
.window_open => |ev| {
try setupPipeline(core, app, ev.window_id);
},
.key_press => |ev| {
switch (ev.key) {
.right => {
core.windows.set(app.window, .width, core.windows.get(app.window, .width) + 10);
},
.left => {
core.windows.set(app.window, .width, core.windows.get(app.window, .width) - 10);
},
.up => {
core.windows.set(app.window, .height, core.windows.get(app.window, .height) + 10);
},
.down => {
core.windows.set(app.window, .height, core.windows.get(app.window, .height) - 10);
},
else => {},
}
},
.close => core.exit(),
else => {},
}