suspicious wallpaper

This commit is contained in:
Chris 2026-02-04 21:45:04 +01:00
parent e7752b7253
commit ff20bcb284
6 changed files with 12 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -2,5 +2,5 @@
void cli_cmd_about(char *args) { void cli_cmd_about(char *args) {
(void)args; (void)args;
cli_write("BrewOS Desktop v0.01 Alpha\n"); cli_write("BrewOS Desktop v1.01 Alpha\n");
} }

View file

@ -10,6 +10,7 @@ Window win_control_panel;
#define COLOR_GREEN 0xFF008000 #define COLOR_GREEN 0xFF008000
#define COLOR_BLUE_BG 0xFF000080 #define COLOR_BLUE_BG 0xFF000080
#define COLOR_PURPLE 0xFF800080 #define COLOR_PURPLE 0xFF800080
#define COLOR_GREY 0xFF454545
// Control panel state // Control panel state
#define VIEW_MAIN 0 #define VIEW_MAIN 0
@ -109,6 +110,10 @@ static void control_panel_paint_wallpaper(Window *win) {
draw_button(button_x + 100, button_y, 60, 20, "Purple", false); draw_button(button_x + 100, button_y, 60, 20, "Purple", false);
draw_rect(button_x + 165, button_y + 5, 20, 10, COLOR_PURPLE); draw_rect(button_x + 165, button_y + 5, 20, 10, COLOR_PURPLE);
// Grey button
draw_button(button_x + 200, button_y, 60, 20, "Grey", false);
draw_rect(button_x + 265, button_y + 5, 20, 10, COLOR_GREY);
// Custom color section // Custom color section
button_y += 40; button_y += 40;
draw_string(offset_x, button_y, "Or something custom", 0xFF000000); draw_string(offset_x, button_y, "Or something custom", 0xFF000000);
@ -225,6 +230,12 @@ static void control_panel_handle_click(Window *win, int x, int y) {
return; return;
} }
// Check Grey button
if (x >= button_x + 200 && x < button_x + 260 && y >= button_y && y < button_y + 20) {
graphics_set_bg_color(COLOR_GREY);
return;
}
// Custom RGB section // Custom RGB section
button_y += 40; button_y += 40;
button_y += 20; button_y += 20;