color visualizer / theme editing work

This commit is contained in:
Ryan Fleury committed 2025-04-29 12:15:41 -07:00
1 parent ddbb2148a4
commit 09372bd7c1
11 files changed
+301 -260

No files matched your search

+103 -90
View File
@@ -91,6 +91,7 @@ RD_VocabTable:
{address_location _ "Address Location" _ Null }
{target _ "Target" _ Target }
{color _ "Color" _ Palette }
{theme_color _ "Theme Color" _ Palette }
{executable _ "Executable" _ Module }
{arguments arguments "Arguments" "Arguments" Null }
{exe exes "Executable" _ Module }
@@ -230,13 +231,13 @@ RD_VocabTable:
@display_name('Code Font') @description("The name of, or path to, the font used when displaying code.")
'code_font': string,
//- rjf: colors
@display_name('Color Preset')
'color_preset': string,
@display_name('Color File')
'color_file': path,
@display_name('Colors')
'colors': query,
//- rjf: theme
@display_name('Theme Preset') @description("The selected built-in theme preset.")
'theme_preset': string,
@no_expand @display_name('Theme File') @description("The path from which theme data is loaded, overriding the preset.")
'theme_file': path,
@display_name('Theme Colors') @description("Additional theme colors which are applied on top of the theme file or preset.")
'theme_colors': query,
//- rjf: thread & breakpoint decorations
@default(1) @display_name('Thread Lines') @description("Controls whether or not a long horizontal line is drawn before the next line or instruction that the selected thread will execute in source and disassembly views.")
@@ -357,11 +358,11 @@ RD_VocabTable:
```
}
//- rjf: colors
//- rjf: theme colors
{
color,
theme_color,
```
@collection_commands(add_color, import_colors) x:
@collection_commands(add_theme_color, fork_loaded_theme_colors, save_theme_colors) x:
{
@display_name('Tags') tags: string,
@display_name('Value') value: @color @hex u32,
@@ -492,6 +493,16 @@ RD_VocabTable:
}
```
}
{
color,
```
@inherit(tab) x:
{
@display_name("Value") @description("An expression to describe the value or location of the color.")
'expression': code_string,
}
```
}
{
geo3d,
```
@@ -920,9 +931,11 @@ RD_CmdTable: // | | | |
//- rjf: auto view rule
{AddAutoViewRule 1 1 0 0 "" String null Nil Null 0 0 0 0 0 0 0 Binoculars "add_auto_view_rule" "Add Auto View Rule" "Adds a new auto view rule." "" "$auto_view_rules," }
//- rjf: colors
{AddColor 0 0 0 0 "" Null null Nil Null 0 0 0 0 0 0 0 Palette "add_color" "Add Color" "Adds a new color." "" "" }
{ImportColors 0 0 0 0 "" Null null Nil Null 0 0 0 0 0 0 0 Palette "import_colors" "Import Colors" "Imports all colors from a loaded color theme file or color theme preset." "" "" }
//- rjf: themes
{OpenTheme 1 1 0 0 `folder:\\"$input\\"` FilePath null Nil Null 1 0 0 0 0 1 1 Palette "open_theme" "Open Theme" "Opens a theme file." "color" "" }
{AddThemeColor 0 0 0 0 "" Null null Nil Null 0 0 0 0 0 0 0 Palette "add_theme_color" "Add Theme Color" "Adds a new theme color." "" "" }
{ForkLoadedThemeColors 0 0 0 0 "" Null null Nil Null 0 0 0 0 0 0 0 Palette "fork_loaded_theme_colors" "Fork Loaded Theme Colors" "Imports all colors from a loaded color theme file or color theme preset, so they can be individually edited." "" "" }
{SaveThemeColors 0 0 0 0 `folder:\\"$input\\"` FilePath null Nil Null 1 0 0 0 0 1 1 Save "save_theme_colors" "Save Theme Colors" "Saves all theme colors to a new theme file." "" "" }
//- rjf: line operations
{SetNextStatement 1 1 1 0 "" Null null Nil Null 0 0 0 0 0 0 0 RightArrow "set_next_statement" "Set Next Statement" "Sets the selected thread's instruction pointer to the cursor's position." "" "$text_pt," }
@@ -1302,83 +1315,83 @@ RD_ThemePresetTable:
DefaultDark default_dark "Default (Dark)",
```theme:
{
color: {tags:"background", value: 0x1b1b1bff }
color: {tags:"alt background", value: 0x222222ff }
color: {tags:"pop background", value: 0x355b6eff }
color: {tags:"fresh background", value: 0x31393dff }
color: {tags:"match background", value: 0x31393dff }
color: {tags:"border", value: 0x404040ff }
color: {tags:"text", value: 0xe5e5e5ff }
color: {tags:"weak text", value: 0xa4a4a4ff }
color: {tags:"good text", value: 0x32a852ff }
color: {tags:"bad text", value: 0xcf5242ff }
color: {tags:"hover", value: 0xffffffff }
color: {tags:"focus", value: 0xfda200ff }
color: {tags:"cursor", value: 0x8aff00ff }
color: {tags:"selection", value: 0x99ccffff }
color: {tags:"inactive background", value: 0x0000002f }
color: {tags:"drop_shadow", value: 0x0000007f }
color: {tags:"good_pop background", value: 0x2c5b36ff }
color: {tags:"good_pop border", value: 0x568761ff }
color: {tags:"good_pop hover", value: 0xe3f5d3ff }
color: {tags:"good_pop weak text", value: 0xe3f5d3ff }
color: {tags:"bad_pop background", value: 0x803425ff }
color: {tags:"bad_pop hover", value: 0xff825cff }
color: {tags:"code_default", value: 0xcbcbcbff }
color: {tags:"code_symbol", value: 0x42a2cfff }
color: {tags:"code_type", value: 0xfec746ff }
color: {tags:"code_local", value: 0x98bc80ff }
color: {tags:"code_register", value: 0xb7afd5ff }
color: {tags:"code_keyword", value: 0xb38d4cff }
color: {tags:"code_delimiter_or_operator", value: 0x767676ff }
color: {tags:"code_numeric", value: 0x98abb1ff }
color: {tags:"code_numeric_alt_digit_group", value: 0x738287ff }
color: {tags:"code_string", value: 0x98abb1ff }
color: {tags:"code_meta", value: 0xd96759ff }
color: {tags:"code_comment", value: 0x717171ff }
color: {tags:"line_info_0", value: 0x4f3022ff }
color: {tags:"line_info_1", value: 0x4f3e15ff }
color: {tags:"line_info_2", value: 0x434e2aff }
color: {tags:"line_info_3", value: 0x36241fff }
color: {tags:"line_info_4", value: 0x4f3022ff }
color: {tags:"line_info_5", value: 0x4f3e15ff }
color: {tags:"line_info_6", value: 0x434e2aff }
color: {tags:"line_info_7", value: 0x36241fff }
color: {tags:"thread_0", value: 0xffcb7fff }
color: {tags:"thread_1", value: 0xb2ff65ff }
color: {tags:"thread_2", value: 0xff99e5ff }
color: {tags:"thread_3", value: 0x6598ffff }
color: {tags:"thread_4", value: 0x65ffcbff }
color: {tags:"thread_5", value: 0xff9819ff }
color: {tags:"thread_6", value: 0x9932ffff }
color: {tags:"thread_7", value: 0x65ff4cff }
color: {tags:"thread_unwound", value: 0xb2ccd8ff }
color: {tags:"thread_error", value: 0xb23219ff }
color: {tags:"breakpoint", value: 0xa72911ff }
color: {tags:"floating background", value: 0x1b1b1baf }
color: {tags:"floating background alt", value: 0x0000005f }
color: {tags:"floating background fresh", value: 0x31393d5f }
color: {tags:"floating border", value: 0xbfbfbf1f }
color: {tags:"floating scroll_bar background", value: 0x3b3b3b5f }
color: {tags:"floating scroll_bar border", value: 0x5f5f5f5f }
color: {tags:"menu_bar background", value: 0x2b3740ff }
color: {tags:"menu_bar border", value: 0x3e4c57ff }
color: {tags:"scroll_bar background", value: 0x2b2b2bff }
color: {tags:"scroll_bar border", value: 0x3f3f3fff }
color: {tags:"implicit background", value: 0x00000000 }
color: {tags:"implicit border", value: 0x00000000 }
color: {tags:"hollow background", value: 0x00000000 }
color: {tags:"hollow border", value: 0xffffff1f }
color: {tags:"tab background", value: 0x6f5135ff }
color: {tags:"tab border", value: 0x8a6e54ff }
color: {tags:"tab inactive background", value: 0x2b3740ff }
color: {tags:"tab inactive border", value: 0x3e4c57ff }
color: {tags:"tab auto background", value: 0x693847ff }
color: {tags:"tab auto border", value: 0x9e6274ff }
color: {tags:"tab auto inactive background", value: 0x2f2633ff }
color: {tags:"tab auto inactive border", value: 0x685073ff }
color: {tags:"drop_site background", value: 0xffffff05 }
color: {tags:"drop_site border", value: 0xffffff0f }
theme_color: {tags:"background", value: 0x1b1b1bff }
theme_color: {tags:"alt background", value: 0x222222ff }
theme_color: {tags:"pop background", value: 0x355b6eff }
theme_color: {tags:"fresh background", value: 0x31393dff }
theme_color: {tags:"match background", value: 0x31393dff }
theme_color: {tags:"border", value: 0x404040ff }
theme_color: {tags:"text", value: 0xe5e5e5ff }
theme_color: {tags:"weak text", value: 0xa4a4a4ff }
theme_color: {tags:"good text", value: 0x32a852ff }
theme_color: {tags:"bad text", value: 0xcf5242ff }
theme_color: {tags:"hover", value: 0xffffffff }
theme_color: {tags:"focus", value: 0xfda200ff }
theme_color: {tags:"cursor", value: 0x8aff00ff }
theme_color: {tags:"selection", value: 0x99ccffff }
theme_color: {tags:"inactive background", value: 0x0000002f }
theme_color: {tags:"drop_shadow", value: 0x0000007f }
theme_color: {tags:"good_pop background", value: 0x2c5b36ff }
theme_color: {tags:"good_pop border", value: 0x568761ff }
theme_color: {tags:"good_pop hover", value: 0xe3f5d3ff }
theme_color: {tags:"good_pop weak text", value: 0xe3f5d3ff }
theme_color: {tags:"bad_pop background", value: 0x803425ff }
theme_color: {tags:"bad_pop hover", value: 0xff825cff }
theme_color: {tags:"code_default", value: 0xcbcbcbff }
theme_color: {tags:"code_symbol", value: 0x42a2cfff }
theme_color: {tags:"code_type", value: 0xfec746ff }
theme_color: {tags:"code_local", value: 0x98bc80ff }
theme_color: {tags:"code_register", value: 0xb7afd5ff }
theme_color: {tags:"code_keyword", value: 0xb38d4cff }
theme_color: {tags:"code_delimiter_or_operator", value: 0x767676ff }
theme_color: {tags:"code_numeric", value: 0x98abb1ff }
theme_color: {tags:"code_numeric_alt_digit_group", value: 0x738287ff }
theme_color: {tags:"code_string", value: 0x98abb1ff }
theme_color: {tags:"code_meta", value: 0xd96759ff }
theme_color: {tags:"code_comment", value: 0x717171ff }
theme_color: {tags:"line_info_0", value: 0x4f3022ff }
theme_color: {tags:"line_info_1", value: 0x4f3e15ff }
theme_color: {tags:"line_info_2", value: 0x434e2aff }
theme_color: {tags:"line_info_3", value: 0x36241fff }
theme_color: {tags:"line_info_4", value: 0x4f3022ff }
theme_color: {tags:"line_info_5", value: 0x4f3e15ff }
theme_color: {tags:"line_info_6", value: 0x434e2aff }
theme_color: {tags:"line_info_7", value: 0x36241fff }
theme_color: {tags:"thread_0", value: 0xffcb7fff }
theme_color: {tags:"thread_1", value: 0xb2ff65ff }
theme_color: {tags:"thread_2", value: 0xff99e5ff }
theme_color: {tags:"thread_3", value: 0x6598ffff }
theme_color: {tags:"thread_4", value: 0x65ffcbff }
theme_color: {tags:"thread_5", value: 0xff9819ff }
theme_color: {tags:"thread_6", value: 0x9932ffff }
theme_color: {tags:"thread_7", value: 0x65ff4cff }
theme_color: {tags:"thread_unwound", value: 0xb2ccd8ff }
theme_color: {tags:"thread_error", value: 0xb23219ff }
theme_color: {tags:"breakpoint", value: 0xa72911ff }
theme_color: {tags:"floating background", value: 0x1b1b1baf }
theme_color: {tags:"floating background alt", value: 0x0000005f }
theme_color: {tags:"floating background fresh", value: 0x31393d5f }
theme_color: {tags:"floating border", value: 0xbfbfbf1f }
theme_color: {tags:"floating scroll_bar background", value: 0x3b3b3b5f }
theme_color: {tags:"floating scroll_bar border", value: 0x5f5f5f5f }
theme_color: {tags:"menu_bar background", value: 0x2b3740ff }
theme_color: {tags:"menu_bar border", value: 0x3e4c57ff }
theme_color: {tags:"scroll_bar background", value: 0x2b2b2bff }
theme_color: {tags:"scroll_bar border", value: 0x3f3f3fff }
theme_color: {tags:"implicit background", value: 0x00000000 }
theme_color: {tags:"implicit border", value: 0x00000000 }
theme_color: {tags:"hollow background", value: 0x00000000 }
theme_color: {tags:"hollow border", value: 0xffffff1f }
theme_color: {tags:"tab background", value: 0x6f5135ff }
theme_color: {tags:"tab border", value: 0x8a6e54ff }
theme_color: {tags:"tab inactive background", value: 0x2b3740ff }
theme_color: {tags:"tab inactive border", value: 0x3e4c57ff }
theme_color: {tags:"tab auto background", value: 0x693847ff }
theme_color: {tags:"tab auto border", value: 0x9e6274ff }
theme_color: {tags:"tab auto inactive background", value: 0x2f2633ff }
theme_color: {tags:"tab auto inactive border", value: 0x685073ff }
theme_color: {tags:"drop_site background", value: 0xffffff05 }
theme_color: {tags:"drop_site border", value: 0xffffff0f }
}
```
}