diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2019-09-10 18:07:39 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2019-09-10 18:07:39 +0300 |
commit | 8f55794c0e803ec5454febe2e45651c721f62c8f (patch) | |
tree | d72ee691ad669096d7f86e498560631cccadb515 /source/blender/makesrna/intern | |
parent | a3e7440cfdd2f307e5c57922fd22e8770f0b8390 (diff) |
UI: File Browser Custom Folder Color
Allows file browser folders to be shown in a theme-selectable color, default of manila.
Differential Revision: https://developer.blender.org/D5713
Reviewed by Brecht Van Lommel
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 37fee576fde..46abaef48d5 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -1504,6 +1504,13 @@ static void rna_def_userdef_theme_ui(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Shading", ""); RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); + prop = RNA_def_property(srna, "icon_folder", PROP_FLOAT, PROP_COLOR_GAMMA); + RNA_def_property_float_sdna(prop, NULL, "icon_folder"); + RNA_def_property_array(prop, 4); + RNA_def_property_ui_text( + prop, "File Folders", "Color of folders in the file browser"); + RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); + prop = RNA_def_property(srna, "icon_border_intensity", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "icon_border_intensity"); RNA_def_property_ui_text( |