From 45f02b7a4140efce21d48f7cc142e21e1bedef04 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Wed, 22 Jan 2025 15:42:21 -0800 Subject: [PATCH] sketch out top-level schema for cfg tree --- src/raddbg/raddbg.mdesk | 29 +++++++++++++++++++++++++++++ src/raddbg/raddbg_views.c | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/raddbg/raddbg.mdesk b/src/raddbg/raddbg.mdesk index 747cb0e7..e27f2929 100644 --- a/src/raddbg/raddbg.mdesk +++ b/src/raddbg/raddbg.mdesk @@ -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}"} diff --git a/src/raddbg/raddbg_views.c b/src/raddbg/raddbg_views.c index a190700b..d614ef07 100644 --- a/src/raddbg/raddbg_views.c +++ b/src/raddbg/raddbg_views.c @@ -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);