summaryrefslogtreecommitdiff
path: root/userland
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-30 16:27:18 +0200
committerAnton Kling <anton@kling.gg>2024-06-30 18:04:47 +0200
commit37f3b6f35f57830a746d9afc5c1b1b0de86c78d5 (patch)
tree020423502d0600ff7750bd1701ab7ee514512fbd /userland
parent9ce029f61286d6e7971c32e30a019dbb4e526e8e (diff)
ws: Use nicer colors
Diffstat (limited to 'userland')
-rw-r--r--userland/terminal/term.c1
-rw-r--r--userland/windowserver/ws.c8
2 files changed, 4 insertions, 5 deletions
diff --git a/userland/terminal/term.c b/userland/terminal/term.c
index 246474f..bff6eab 100644
--- a/userland/terminal/term.c
+++ b/userland/terminal/term.c
@@ -234,7 +234,6 @@ void terminal_resize(uint32_t sx, uint32_t sy) {
for (; x < sx; x += 8) {
GUI_DrawFont(global_w, x, y, terminal_char_buffer[y / 8][x / 8]);
}
- GUI_DrawLine(global_w, x, y, sx, y, 0xFF00FF);
}
assert(GUI_SendResize(global_w, sx, sy));
}
diff --git a/userland/windowserver/ws.c b/userland/windowserver/ws.c
index ff341a0..1224e86 100644
--- a/userland/windowserver/ws.c
+++ b/userland/windowserver/ws.c
@@ -115,7 +115,7 @@ void setup_display(DISPLAY *disp, const char *path, uint64_t size) {
disp->wallpaper_buffer = rc;
for (int i = 0; i < disp->size / disp->bpp; i++) {
uint32_t *p = disp->wallpaper_buffer + i * sizeof(uint32_t);
- *p = 0xFFFFFF;
+ *p = 0x9b9b9b;
}
}
@@ -544,18 +544,18 @@ int draw_window(DISPLAY *disp, WINDOW *w, int id) {
x = px;
y = py;
int border_px = 1;
- if (draw_button(disp, x + sx - 40, y - 20, 20, 20, 0x000000, 0x999999,
+ if (draw_button(disp, x + sx - 40, y - 20, 20, 20, 0x000000, 0xFFFFFF,
next_ui_id())) {
w->minimized = 1;
}
- if (draw_button(disp, x + sx - 20, y - 20, 20, 20, 0x000000, 0x999999,
+ if (draw_button(disp, x + sx - 20, y - 20, 20, 20, 0x000000, 0xFF0000,
next_ui_id())) {
send_kill_window(w);
}
uint32_t border_color = 0x999999;
if (w == disp->active_window) {
- border_color = 0xFF00FF;
+ border_color = 0xFFFFFF;
}
draw_outline(disp, x, y, sx, sy, border_px, border_color);
x += border_px;