[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53304] trunk/blender: User Interface / Preferences:
Thomas Dinges
blender at dingto.org
Mon Dec 24 01:29:32 CET 2012
Revision: 53304
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53304
Author: dingto
Date: 2012-12-24 00:29:24 +0000 (Mon, 24 Dec 2012)
Log Message:
-----------
User Interface / Preferences:
* Added a new "Text Style" area into the theme section, with settings to control font kerning, shadow size, color and offset.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/space_userpref.py
trunk/blender/source/blender/makesrna/intern/rna_userdef.c
Modified: trunk/blender/release/scripts/startup/bl_ui/space_userpref.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_userpref.py 2012-12-23 18:58:10 UTC (rev 53303)
+++ trunk/blender/release/scripts/startup/bl_ui/space_userpref.py 2012-12-24 00:29:24 UTC (rev 53304)
@@ -22,6 +22,27 @@
import os
+def ui_style_items(col, context):
+ """ UI Style settings """
+
+ split = col.split()
+
+ col = split.column()
+ col.label(text="Kerning Style:")
+ col.row().prop(context, "font_kerning_style", expand=True)
+ col.prop(context, "points")
+
+ col = split.column()
+ col.label(text="Shadow Offset:")
+ col.prop(context, "shadow_offset_x", text="X")
+ col.prop(context, "shadow_offset_y", text="Y")
+
+ col = split.column()
+ col.prop(context, "shadow")
+ col.prop(context, "shadowalpha")
+ col.prop(context, "shadowcolor")
+
+
def ui_items_general(col, context):
""" General UI Theme Settings (User Interface)
"""
@@ -774,6 +795,21 @@
colsub = padding.column()
colsub = padding.column()
colsub.row().prop(ui, "show_colored_constraints")
+ elif theme.theme_area == 'STYLE':
+ col = split.column()
+
+ style = context.user_preferences.ui_styles[0]
+
+ ui = style.widget
+ col.label(text="Widget:")
+ ui_style_items(col, ui)
+
+ col.separator()
+ col.separator()
+
+ ui = style.widget_label
+ col.label(text="Widget Label:")
+ ui_style_items(col, ui)
else:
self._theme_generic(split, getattr(theme, theme.theme_area.lower()))
Modified: trunk/blender/source/blender/makesrna/intern/rna_userdef.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_userdef.c 2012-12-23 18:58:10 UTC (rev 53303)
+++ trunk/blender/source/blender/makesrna/intern/rna_userdef.c 2012-12-24 00:29:24 UTC (rev 53304)
@@ -437,7 +437,7 @@
static EnumPropertyItem font_kerning_style[] = {
{0, "UNFITTED", 0, "Unfitted", "Use scaled but un-grid-fitted kerning distances"},
- {1, "DEFAULT", 0, "Default", "Use scaled and grid-fitted kerning distances"},
+ {1, "FITTED", 0, "Fitted", "Use scaled and grid-fitted kerning distances"},
{0, NULL, 0, NULL, NULL}
};
@@ -2214,6 +2214,7 @@
static EnumPropertyItem active_theme_area[] = {
{0, "USER_INTERFACE", ICON_UI, "User Interface", ""},
+ {19, "STYLE", ICON_FONTPREVIEW, "Text Style", ""},
{18, "BONE_COLOR_SETS", ICON_COLOR, "Bone Color Sets", ""},
{1, "VIEW_3D", ICON_VIEW3D, "3D View", ""},
{2, "TIMELINE", ICON_TIME, "Timeline", ""},
More information about the Bf-blender-cvs
mailing list