From 614bef7ec59c8e1238629e493a61a24adaae3659 Mon Sep 17 00:00:00 2001 From: Able Date: Thu, 14 Nov 2024 18:40:44 -0600 Subject: [PATCH] ok now there is colors --- sysdata/libraries/stn/src/sleep.hb | 6 ++++++ sysdata/programs/sunset_server/src/main.hb | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 sysdata/libraries/stn/src/sleep.hb diff --git a/sysdata/libraries/stn/src/sleep.hb b/sysdata/libraries/stn/src/sleep.hb new file mode 100644 index 0000000..d323267 --- /dev/null +++ b/sysdata/libraries/stn/src/sleep.hb @@ -0,0 +1,6 @@ +subscribe_to_interrupt := fn(interrupt_number: u8): bool { + return false +} +// Pauses execution until the interrupt occures +sleep_until_interrupt := fn(interrupt_number: u8): void { +} \ No newline at end of file diff --git a/sysdata/programs/sunset_server/src/main.hb b/sysdata/programs/sunset_server/src/main.hb index 5a64e66..bc28349 100644 --- a/sysdata/programs/sunset_server/src/main.hb +++ b/sysdata/programs/sunset_server/src/main.hb @@ -71,7 +71,7 @@ main := fn(): int { render.clear(screen, render.black) render.put_surface(screen, wallpaper, .(0, 0), false) - render.put_rect(screen, .(0, 0), .(screen.width - 1, screen.height - 1), render.white) + render.put_rect(screen, .(0, 0), .(screen.width - 1, screen.height - 1), sunset.server.DECO_COLOUR) } if sunset.server.incoming() { @@ -82,13 +82,13 @@ main := fn(): int { { pos := Vec2(uint).(1, screen.height - 21) render_label_to_surface(screen, text_label, font, pos) - render.put_rect(screen, .(0, screen.height - 21), .(screen.width - 1, 20), render.white) + render.put_rect(screen, .(0, screen.height - 21), .(screen.width - 1, 20), sunset.server.DECO_COLOUR) } // Mouse cursor { - render.put_filled_rect(screen, .(mouse_x, mouse_y), .(20, 20), render.black) - render.put_rect(screen, .(mouse_x, mouse_y), .(20, 20), render.white) + render.put_filled_rect(screen, .(mouse_x, mouse_y), .(20, 20), sunset.server.DECO_COLOUR_DARKER) + render.put_rect(screen, .(mouse_x, mouse_y), .(20, 20), sunset.server.DECO_COLOUR) } render.sync(screen)