diff options
| author | iamcheeseman <[email protected]> | 2026-05-21 22:31:48 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-21 22:31:48 -0400 |
| commit | e375289782c924c0c382a752498fbd348ea7f918 (patch) | |
| tree | a63f6bf10044b6093f9003a7056f5d76a9667103 /teensy | |
| parent | 8a95ba3d2d3bb93abc29bf0b4a877d2658ebdb36 (diff) | |
window border
Diffstat (limited to 'teensy')
| -rw-r--r-- | teensy/teensy_ui.c | 5 | ||||
| -rw-r--r-- | teensy/teensy_ui.h | 1 |
2 files changed, 5 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( diff --git a/teensy/teensy_ui.h b/teensy/teensy_ui.h index bcc3c0e..da7691f 100644 --- a/teensy/teensy_ui.h +++ b/teensy/teensy_ui.h @@ -30,6 +30,7 @@ typedef struct { ty_Color fg_pressed; ty_Color bg_pressed; ty_Color win_bg; + ty_Color win_border; ty_Color win_title; ty_Color frame; int title_bar_height; |
