Hello. Tinkering with blender’s source code, I tried to add a new theme color option for the outliner. With little idea of how to add the option, I tracked an existing outliner theme setting, Selected Highlight, and added matching code for my option everywhere ‘selected_highlight’ and ‘TH_SELECT_HIGHLIGHT’ appeared, duplicating its code and changing only the names. It failed to compile via cmake . What other code is necessary to successfully add a new color theme option? Thanks
Edited source code files:
release/datafiles/userdef/userdef_default_theme.c
release/scripts/presets/interface_theme/blender_light.xml
source/blender/editors/include/UI_resources.h
source/blender/editors/interface/resources.c
source/blender/makesdna/DNA_userdef_types.h
source/blender/makesrna/intern/rna_userdef.c
Some of the errors while compiling:
Align struct error: bTheme …(tv3d, tipo, tact, etc.)
Sizeerror 8 in struct: bTheme (add 4 bytes)
source/blender/makesdna/intern/CMakeFiles/bf_dna.dir/build.make:61: recipe for target ‘source/blender/makesdna/intern/dna.c’ failed
Makefile:162: recipe for target ‘all’ failed
cmake: *** [all] Error 2