diff options
Diffstat (limited to 'teensy/teensy_ui.c')
| -rw-r--r-- | teensy/teensy_ui.c | 5 |
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( |
