mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-12-01 10:03:20 -08:00
theme preset coverage
This commit is contained in:
1 parent
e52ab7ad6b
commit
64010486fe
5 files changed
+190
-24
No files matched your search
+18
-12
@@ -8631,14 +8631,17 @@ rd_window_frame(void)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
TabTask *t = push_array(scratch.arena, TabTask, 1);
|
||||
t->tab = tab;
|
||||
t->fstrs = rd_title_fstrs_from_cfg(scratch.arena, tab);
|
||||
F32 tab_width_target = dr_dim_from_fstrs(&t->fstrs).x + tab_close_width_px + ui_top_font_size()*1.f;
|
||||
tab_width_target = Min(max_tab_width_px, tab_width_target);
|
||||
t->tab_width = floor_f32(ui_anim(ui_key_from_stringf(ui_key_zero(), "tab_width_%p", tab), tab_width_target, .initial = reset ? tab_width_target : 0));
|
||||
SLLQueuePush(first_tab_task, last_tab_task, t);
|
||||
tab_task_count += 1;
|
||||
UI_TagF(tab != panel->selected_tab ? "inactive" : "")
|
||||
{
|
||||
TabTask *t = push_array(scratch.arena, TabTask, 1);
|
||||
t->tab = tab;
|
||||
t->fstrs = rd_title_fstrs_from_cfg(scratch.arena, tab);
|
||||
F32 tab_width_target = dr_dim_from_fstrs(&t->fstrs).x + tab_close_width_px + ui_top_font_size()*1.f;
|
||||
tab_width_target = Min(max_tab_width_px, tab_width_target);
|
||||
t->tab_width = floor_f32(ui_anim(ui_key_from_stringf(ui_key_zero(), "tab_width_%p", tab), tab_width_target, .initial = reset ? tab_width_target : 0));
|
||||
SLLQueuePush(first_tab_task, last_tab_task, t);
|
||||
tab_task_count += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14892,12 +14895,15 @@ rd_frame(void)
|
||||
String8 data = str8_list_join(scratch.arena, &strings, 0);
|
||||
if(os_write_data_to_file_path(dst_path, data))
|
||||
{
|
||||
for(RD_CfgNode *n = colors.first; n != 0; n = n->next)
|
||||
if(kind == RD_CmdKind_SaveAndSetTheme)
|
||||
{
|
||||
rd_cfg_release(n->v);
|
||||
for(RD_CfgNode *n = colors.first; n != 0; n = n->next)
|
||||
{
|
||||
rd_cfg_release(n->v);
|
||||
}
|
||||
RD_Cfg *theme = rd_cfg_child_from_string_or_alloc(parent, str8_lit("theme"));
|
||||
rd_cfg_new_replace(theme, name);
|
||||
}
|
||||
RD_Cfg *theme = rd_cfg_child_from_string_or_alloc(parent, str8_lit("theme"));
|
||||
rd_cfg_new_replace(theme, name);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user