diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-28 14:34:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-28 14:34:52 +0300 |
commit | a74097dc19d1b1d43797fe7dfbc4a2137ad21c22 (patch) | |
tree | fba62577508bdf18bcdb2d320d57d8e6b73cf7eb /source/blender/makesrna/intern/rna_userdef.c | |
parent | 69ca12c45c8dfede5b6d088cfe22811fa345d4c2 (diff) |
UI: Add icon color saturation preference
Toolbar icon saturation can now be set from the preferences,
(use 0.4 by default).
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index f99b4b59f1a..03034522d30 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -1076,6 +1076,10 @@ static void rna_def_userdef_theme_ui(BlenderRNA *brna) prop = RNA_def_property(srna, "icon_alpha", PROP_FLOAT, PROP_FACTOR); RNA_def_property_ui_text(prop, "Icon Alpha", "Transparency of icons in the interface, to reduce contrast"); RNA_def_property_update(prop, 0, "rna_userdef_update"); + + prop = RNA_def_property(srna, "icon_saturation", PROP_FLOAT, PROP_FACTOR); + RNA_def_property_ui_text(prop, "Icon Saturation", "Saturation of icons in the interface"); + RNA_def_property_update(prop, 0, "rna_userdef_update"); prop = RNA_def_property(srna, "widget_emboss", PROP_FLOAT, PROP_COLOR_GAMMA); RNA_def_property_float_sdna(prop, NULL, "widget_emboss"); |