mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 02:16:58 +00:00
suspicious wallpaper
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
|
||||
void cli_cmd_about(char *args) {
|
||||
(void)args;
|
||||
cli_write("BrewOS Desktop v0.01 Alpha\n");
|
||||
cli_write("BrewOS Desktop v1.01 Alpha\n");
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ Window win_control_panel;
|
||||
#define COLOR_GREEN 0xFF008000
|
||||
#define COLOR_BLUE_BG 0xFF000080
|
||||
#define COLOR_PURPLE 0xFF800080
|
||||
#define COLOR_GREY 0xFF454545
|
||||
|
||||
// Control panel state
|
||||
#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_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
|
||||
button_y += 40;
|
||||
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;
|
||||
}
|
||||
|
||||
// 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
|
||||
button_y += 40;
|
||||
button_y += 20;
|
||||
|
||||
Reference in New Issue
Block a user