diff options
| author | iamcheeseman <[email protected]> | 2026-05-22 11:50:38 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-22 11:50:54 -0400 |
| commit | ba6eec44b5a49ed5ee6a119520d4e3ebf1213842 (patch) | |
| tree | d65b17374c17f27db1234d42a3f85b5a9cc86e7f | |
| parent | eecfe87f8d23b358c31d6b8289f96ba61ad6de01 (diff) | |
tyui: add padding to title text
| -rw-r--r-- | teensy/teensy_ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/teensy/teensy_ui.c b/teensy/teensy_ui.c index c58113c..f5ba00f 100644 --- a/teensy/teensy_ui.c +++ b/teensy/teensy_ui.c @@ -379,7 +379,7 @@ bool tyui_begin_window_ex( clip_cmd(TY_CLIP_NONE); rect_cmd(title_rect, uictx.style.win_title); - text_cmd(win->title, title_rect, TYUI_ALIGN_LEFT); + text_cmd(win->title, ty_recti_shrink(title_rect, 1), TYUI_ALIGN_LEFT); ty_Recti body_rect = win->rect; body_rect.y += title_bar_height(); |
