aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy_ui.c
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-21 22:31:48 -0400
committeriamcheeseman <[email protected]>2026-05-21 22:31:48 -0400
commite375289782c924c0c382a752498fbd348ea7f918 (patch)
treea63f6bf10044b6093f9003a7056f5d76a9667103 /teensy/teensy_ui.c
parent8a95ba3d2d3bb93abc29bf0b4a877d2658ebdb36 (diff)
window border
Diffstat (limited to 'teensy/teensy_ui.c')
-rw-r--r--teensy/teensy_ui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/teensy/teensy_ui.c b/teensy/teensy_ui.c
index b056a9c..a0bb5e3 100644
--- a/teensy/teensy_ui.c
+++ b/teensy/teensy_ui.c
@@ -81,6 +81,7 @@ tyui_Style default_style = {
.fg_pressed = ty_color(150, 150, 150),
.bg_pressed = ty_color(10, 10, 10),
.win_bg = ty_color(48, 48, 48),
+ .win_border = ty_color(24, 24, 24),
.win_title = ty_color(64, 128, 128),
.frame = ty_color(10, 10, 10),
.title_bar_height = 12,
@@ -381,7 +382,9 @@ bool tyui_begin_window_ex(
ty_Recti body_rect = win->rect;
body_rect.y += title_bar_height();
- rect_cmd(body_rect, uictx.style.win_bg);
+ body_rect.h -= title_bar_height();
+ rect_cmd(body_rect, uictx.style.win_border);
+ rect_cmd(ty_recti_shrink(body_rect, 1), uictx.style.win_bg);
if (hovering_resizer) {
ty_Recti right_bar = ty_recti(