Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
| Show First 20 Lines • Show All 1,083 Lines • ▼ Show 20 Lines | /* if (! ELEM(spacetype, SPACE_BUTS, SPACE_OUTLINER)) { */ | ||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| RNA_def_property_ui_text(prop, "Region Text", ""); | RNA_def_property_ui_text(prop, "Region Text", ""); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | RNA_def_property_update(prop, 0, "rna_userdef_update"); | ||||
| prop = RNA_def_property(srna, "button_text_hi", PROP_FLOAT, PROP_COLOR_GAMMA); | prop = RNA_def_property(srna, "button_text_hi", PROP_FLOAT, PROP_COLOR_GAMMA); | ||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| RNA_def_property_ui_text(prop, "Region Text Highlight", ""); | RNA_def_property_ui_text(prop, "Region Text Highlight", ""); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | RNA_def_property_update(prop, 0, "rna_userdef_update"); | ||||
| /* tabs */ | |||||
| prop = RNA_def_property(srna, "tab_active", PROP_FLOAT, PROP_COLOR_GAMMA); | |||||
| RNA_def_property_array(prop, 3); | |||||
| RNA_def_property_ui_text(prop, "Tab Active", ""); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | |||||
| prop = RNA_def_property(srna, "tab_inactive", PROP_FLOAT, PROP_COLOR_GAMMA); | |||||
| RNA_def_property_array(prop, 3); | |||||
| RNA_def_property_ui_text(prop, "Tab Inactive", ""); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | |||||
| prop = RNA_def_property(srna, "tab_back", PROP_FLOAT, PROP_COLOR_GAMMA); | |||||
| RNA_def_property_array(prop, 3); | |||||
| RNA_def_property_ui_text(prop, "Tab Background", ""); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | |||||
| prop = RNA_def_property(srna, "tab_outline", PROP_FLOAT, PROP_COLOR_GAMMA); | |||||
| RNA_def_property_array(prop, 3); | |||||
| RNA_def_property_ui_text(prop, "Tab Outline", ""); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | |||||
| /* } */ | /* } */ | ||||
| } | } | ||||
| static void rna_def_userdef_theme_space_gradient(BlenderRNA *brna) | static void rna_def_userdef_theme_space_gradient(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| ▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | /* if (! ELEM(spacetype, SPACE_BUTS, SPACE_OUTLINER)) { */ | ||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| RNA_def_property_ui_text(prop, "Region Text", ""); | RNA_def_property_ui_text(prop, "Region Text", ""); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | RNA_def_property_update(prop, 0, "rna_userdef_update"); | ||||
| prop = RNA_def_property(srna, "button_text_hi", PROP_FLOAT, PROP_COLOR_GAMMA); | prop = RNA_def_property(srna, "button_text_hi", PROP_FLOAT, PROP_COLOR_GAMMA); | ||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| RNA_def_property_ui_text(prop, "Region Text Highlight", ""); | RNA_def_property_ui_text(prop, "Region Text Highlight", ""); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | RNA_def_property_update(prop, 0, "rna_userdef_update"); | ||||
campbellbarton: De-duplicated this block. silly to have to add these in 2 places. | |||||
| /* tabs */ | |||||
| prop = RNA_def_property(srna, "tab_active", PROP_FLOAT, PROP_COLOR_GAMMA); | |||||
| RNA_def_property_array(prop, 3); | |||||
| RNA_def_property_ui_text(prop, "Tab Active", ""); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | |||||
| prop = RNA_def_property(srna, "tab_inactive", PROP_FLOAT, PROP_COLOR_GAMMA); | |||||
| RNA_def_property_array(prop, 3); | |||||
| RNA_def_property_ui_text(prop, "Tab Inactive", ""); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | |||||
| prop = RNA_def_property(srna, "tab_back", PROP_FLOAT, PROP_COLOR_GAMMA); | |||||
| RNA_def_property_array(prop, 3); | |||||
| RNA_def_property_ui_text(prop, "Tab Background", ""); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | |||||
| prop = RNA_def_property(srna, "tab_outline", PROP_FLOAT, PROP_COLOR_GAMMA); | |||||
| RNA_def_property_array(prop, 3); | |||||
| RNA_def_property_ui_text(prop, "Tab Outline", ""); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | |||||
| /* } */ | /* } */ | ||||
| } | } | ||||
| /* list / channels */ | /* list / channels */ | ||||
| static void rna_def_userdef_theme_space_list_generic(BlenderRNA *brna) | static void rna_def_userdef_theme_space_list_generic(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| ▲ Show 20 Lines • Show All 3,291 Lines • Show Last 20 Lines | |||||
De-duplicated this block. silly to have to add these in 2 places.