Skip to content

Commit

Permalink
sketch out top-level schema for cfg tree
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfleury committed Jan 22, 2025
1 parent 9a54ae5 commit 45f02b7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions src/raddbg/raddbg.mdesk
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,35 @@ RD_VocabularyMap:
////////////////////////////////
//~ rjf: Configuration Tree Schemas

/*
{
top_level,
```x:
{
'hover_animations': bool,
'press_animations': bool,
'focus_animations': bool,
'tooltip_animations': bool,
'menu_animations': bool,
'scrolling_animations': bool,
'background_blur': bool,
'thread_lines': bool,
'breakpoint_lines': bool,
'thread_glow': bool,
'breakpoint_glow': bool,
'opaque_backgrounds': bool,
'smooth_main_text': bool,
'smooth_code_text': bool,
'hint_main_text': bool,
'hint_code_text': bool,
'tab_width': @range[1, 32] u64,
'main_font_size': @range[6, 72] u64,
'code_font_size': @range[1, 32] u64,
}
```
}
*/

@table(name schema) RD_CfgSchemaTable:
{
{target "x:{'label':code_string, 'exe':path, 'args':string, 'working_directory':path, 'entry_point':code_string, 'stdout_path':path, 'stderr_path':path, 'stdin_path':path, 'debug_subprocesses':bool}"}
Expand Down
2 changes: 1 addition & 1 deletion src/raddbg/raddbg_views.c
Original file line number Diff line number Diff line change
Expand Up @@ -6126,7 +6126,7 @@ rd_qsort_compare_settings_item(RD_SettingsItem *a, RD_SettingsItem *b)

RD_VIEW_RULE_UI_FUNCTION_DEF(settings)
{
#if 0
#if 0 // TODO(rjf): @cfg
ProfBeginFunction();
Temp scratch = scratch_begin(0, 0);
F32 row_height_px = floor_f32(ui_top_font_size()*2.5f);
Expand Down

0 comments on commit 45f02b7

Please sign in to comment.