Editor: redesign visual no Material 3 (Roboto, Material Symbols, cores de sempre)
- Fontes em assets/fonts (Roboto Regular/Medium, Material Symbols contorno e preenchido; Apache 2.0). TB_DRAW_TEXT escolhe a fonte pelo param (tb_draw_text_font, TB_FONT_*); backend SDL2 com cache por familia e DejaVu de reserva. Pacotes AppImage/Android/Windows levam as fontes. - tb_editor_m3.h: papeis de cor do M3 sobre a paleta do editor, formas, tipografia, camadas de estado, elevacao, icones e componentes (botoes, icon button, menu, campo, dialogo, chip, snackbar, switch). - Top app bar, abas primarias, navigation rail das categorias, FAB de extensoes, palco, saida, menus, snackbars, dialogos, explorador, Bibliotecas, Configuracoes, previa scratchblocks, editores de codigo e de imagem no estilo M3. - Widgets: icon, text_f e shadow. Backend: TINYBLOCKS_SHOT salva a janela (conferir o visual); editor: TINYBLOCKS_OPEN abre uma tela no inicio. - Console: linhas roladas continuam na arvore acessivel (OFFSCREEN). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f180eaf75a
commit
0cb2019704
22 files changed
+1451
-516
No files matched your search
@@ -124,8 +124,12 @@ static bool resolve_widgets(void) {
|
||||
sym_fn(&w.text_c, "tinyblocks-editor-widgets", "tb_ew_text_c");
|
||||
sym_fn(&w.text_width, "tinyblocks-editor-widgets", "tb_ew_text_width");
|
||||
sym_fn(&w.in_rect, "tinyblocks-editor-widgets", "tb_ew_in_rect");
|
||||
sym_fn(&w.text_f, "tinyblocks-editor-widgets", "tb_ew_text_f");
|
||||
sym_fn(&w.icon, "tinyblocks-editor-widgets", "tb_ew_icon");
|
||||
sym_fn(&w.shadow, "tinyblocks-editor-widgets", "tb_ew_shadow");
|
||||
bool ok = w.col_mul && w.fill_rect && w.fill_rrect && w.fill_circle && w.stroke_rect &&
|
||||
w.stroke_circle && w.line && w.text_c && w.text_width && w.in_rect;
|
||||
w.stroke_circle && w.line && w.text_c && w.text_width && w.in_rect &&
|
||||
w.text_f && w.icon && w.shadow;
|
||||
if (ok) tb_ed_w = w;
|
||||
return ok;
|
||||
}
|
||||
@@ -174,7 +178,8 @@ bool tb_ed_modules_load(Ed* ed) {
|
||||
.col_mul = tb_ew_col_mul, .fill_rect = tb_ew_fill_rect, .fill_rrect = tb_ew_fill_rrect,
|
||||
.fill_circle = tb_ew_fill_circle, .stroke_rect = tb_ew_stroke_rect,
|
||||
.stroke_circle = tb_ew_stroke_circle, .line = tb_ew_line, .text_c = tb_ew_text_c,
|
||||
.text_width = tb_ew_text_width, .in_rect = tb_ew_in_rect };
|
||||
.text_width = tb_ew_text_width, .in_rect = tb_ew_in_rect,
|
||||
.text_f = tb_ew_text_f, .icon = tb_ew_icon, .shadow = tb_ew_shadow };
|
||||
tb_ed_img = (TbEdImageApi){
|
||||
.view = tb_editor_image_view, .click = tb_editor_image_click, .drag = tb_editor_image_drag,
|
||||
.release = tb_editor_image_release, .load_file = tb_editor_image_load_file,
|
||||
|
||||
Reference in new issue
Block a user