Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2013-12-17 22:02:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-17 22:03:30 +0400
commitf034e69f0c3d247c5fb9343bceb7c8a249e43c90 (patch)
treebae129c9b99bc4a5d3b9fa7bb20578ef7252b89f /source/blender/makesrna
parentc5d7ea091fa5a291b270565e456612df1e37b50c (diff)
UI: Theme Colors for Info space
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c61
1 files changed, 61 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 9af1de4317b..8b42fc718d1 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -1811,6 +1811,7 @@ static void rna_def_userdef_theme_space_console(BlenderRNA *brna)
static void rna_def_userdef_theme_space_info(BlenderRNA *brna)
{
StructRNA *srna;
+ PropertyRNA *prop;
/* space_info */
@@ -1820,6 +1821,66 @@ static void rna_def_userdef_theme_space_info(BlenderRNA *brna)
RNA_def_struct_ui_text(srna, "Theme Info", "Theme settings for Info");
rna_def_userdef_theme_spaces_main(srna);
+
+ prop = RNA_def_property(srna, "info_selected", PROP_FLOAT, PROP_COLOR_GAMMA);
+ RNA_def_property_float_sdna(prop, NULL, "info_selected");
+ RNA_def_property_array(prop, 3);
+ RNA_def_property_ui_text(prop, "Selected Line Background", "");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
+
+ prop = RNA_def_property(srna, "info_selected_text", PROP_FLOAT, PROP_COLOR_GAMMA);
+ RNA_def_property_float_sdna(prop, NULL, "info_selected_text");
+ RNA_def_property_array(prop, 3);
+ RNA_def_property_ui_text(prop, "Selected Line Text", "");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
+
+ prop = RNA_def_property(srna, "info_error", PROP_FLOAT, PROP_COLOR_GAMMA);
+ RNA_def_property_float_sdna(prop, NULL, "info_error");
+ RNA_def_property_array(prop, 3);
+ RNA_def_property_ui_text(prop, "Error Background", "");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
+
+ prop = RNA_def_property(srna, "info_error_text", PROP_FLOAT, PROP_COLOR_GAMMA);
+ RNA_def_property_float_sdna(prop, NULL, "info_error_text");
+ RNA_def_property_array(prop, 3);
+ RNA_def_property_ui_text(prop, "Error Text", "");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
+
+ prop = RNA_def_property(srna, "info_warning", PROP_FLOAT, PROP_COLOR_GAMMA);
+ RNA_def_property_float_sdna(prop, NULL, "info_warning");
+ RNA_def_property_array(prop, 3);
+ RNA_def_property_ui_text(prop, "Warning Background", "");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
+
+ prop = RNA_def_property(srna, "info_warning_text", PROP_FLOAT, PROP_COLOR_GAMMA);
+ RNA_def_property_float_sdna(prop, NULL, "info_warning_text");
+ RNA_def_property_array(prop, 3);
+ RNA_def_property_ui_text(prop, "Warning Text", "");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
+
+ prop = RNA_def_property(srna, "info_info", PROP_FLOAT, PROP_COLOR_GAMMA);
+ RNA_def_property_float_sdna(prop, NULL, "info_info");
+ RNA_def_property_array(prop, 3);
+ RNA_def_property_ui_text(prop, "Info Background", "");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
+
+ prop = RNA_def_property(srna, "info_info_text", PROP_FLOAT, PROP_COLOR_GAMMA);
+ RNA_def_property_float_sdna(prop, NULL, "info_info_text");
+ RNA_def_property_array(prop, 3);
+ RNA_def_property_ui_text(prop, "Info Text", "");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
+
+ prop = RNA_def_property(srna, "info_debug", PROP_FLOAT, PROP_COLOR_GAMMA);
+ RNA_def_property_float_sdna(prop, NULL, "info_debug");
+ RNA_def_property_array(prop, 3);
+ RNA_def_property_ui_text(prop, "Debug Background", "");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
+
+ prop = RNA_def_property(srna, "info_debug_text", PROP_FLOAT, PROP_COLOR_GAMMA);
+ RNA_def_property_float_sdna(prop, NULL, "info_debug_text");
+ RNA_def_property_array(prop, 3);
+ RNA_def_property_ui_text(prop, "Debug Text", "");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
}