Carregar library... com "..." e X desenhado no fechar das abas

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mguinhosandClaude Opus 5.5 committed 2026-10-23 07:03:58 -03:00
1 parent 6729ce11fa
commit 374b445a8f
1 file changed
+7 -3
+7 -3
View File
@@ -3105,7 +3105,7 @@ static void dlg_geom(Ed* ed, float* bx, float* by, float* bw, float* bh) {
*by = dy + DLG_HEAD_H + 44.f; /* espaço p/ os controles da parte */
}
/* Dimensões de um card "Adicionar=" */
/* Dimensões de um card "Adicionar..." */
static void dlg_card_rect(float* w, float* h) {
*w = (DLG_W - 56.f - 32.f) / 3.f;
*h = 84.f;
@@ -3544,7 +3544,7 @@ static void render_menu(Ed* ed, TinyBlocks_RenderableBlock* rb) {
if (ed->lib_hover || (active && ed->path_mode == PM_LIB))
rb_fill_rect(rb, LIB_BTN_X, 0, LIB_BTN_W, MENU_H, COL_MENU_DARK);
rb_text_c(rb, LIB_BTN_X + 14, MENU_H*0.5f, "Carregar library=", COL_WHITE, FS_UI);
rb_text_c(rb, LIB_BTN_X + 14, MENU_H*0.5f, "Carregar library...", COL_WHITE, FS_UI);
if (ed->path_input_active) {
float bx = LIB_BTN_X + LIB_BTN_W + 10, bw = WIN_W - bx - 16;
@@ -3748,7 +3748,11 @@ static void render_tab_bar(Ed* ed, TinyBlocks_RenderableBlock* rb) {
lx = tx + 24;
}
rb_text_c(rb, lx, cy, ed->tabs[i].name, cur ? COL_MENU : COL_TEXT, FS_UI);
if (ed->tab_n > 1 && ed->tabctx < 0) rb_text_c(rb, tx+TAB_W-22, cy, "=", COL_TEXT_DIM, FS_UI);
if (ed->tab_n > 1 && ed->tabctx < 0) { /* fechar: um X desenhado */
float qx = tx + TAB_W - 18;
rb_line(rb, qx - 3.5f, cy - 3.5f, qx + 3.5f, cy + 3.5f, 1.5f, COL_TEXT_DIM);
rb_line(rb, qx + 3.5f, cy - 3.5f, qx - 3.5f, cy + 3.5f, 1.5f, COL_TEXT_DIM);
}
}
float px = WS_X + 8 + vn*TAB_W;
if (ed->tabctx < 0 && px + PLUS_W <= x0 + wbar && ed->tab_n < MAX_TABS) {