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:
authorJoshua Leung <aligorith@gmail.com>2016-03-13 14:56:52 +0300
committerJoshua Leung <aligorith@gmail.com>2016-03-13 14:56:52 +0300
commit6bf9aa3f8e833df488911d6005b1683cca36c51e (patch)
tree444bde790664f485036dec9a1c51fe7642ff501a /release/scripts/startup/bl_ui
parent81e7f6b8a0c99c953ca9659b1b317ae852c6508e (diff)
Fancy procedural icons for Keyframe Types
The new "default keyframe type" dropdown on the timeline header (and also the "Keyframe Type" operator/properties in other places) now has procedurally generated icons which reflect what that keyframe type will look like when rendered in the Dope Sheet. This was achieved using the ancient "VICON" (vector icon) stuff that's lurking around in the dark parts of UI code. From memory, the only other things that use (or used to use) this stuff included some of the triangle icons for some dropdown buttons, or something like that. Notes: * Theme colour changes are reflected immediately by these icons. This is possible because they are all drawn procedurally * These icons scale with the DPI setting. I manually guessed the size of these icons. They can be adjusted further if needed. * I've documented the steps for adding voodoo icons like this on the wiki (http://wiki.blender.org/index.php/Dev:2.7/Source/Checklists/Vector_Icon) * It's true that the rendering of these keyframes doesn't quite fit the rest of the icons in the UI. However, since we're just leveraging the standard keyframe drawing methods (to avoid discreptancies between the two), we'll leave it as such for now. Maybe later we can consider blending in a bit of the glossy keyframe icons in the Icon Sheet?
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r--release/scripts/startup/bl_ui/space_time.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py
index 0a274c3c441..ac048c51b1b 100644
--- a/release/scripts/startup/bl_ui/space_time.py
+++ b/release/scripts/startup/bl_ui/space_time.py
@@ -87,7 +87,7 @@ class TIME_HT_header(Header):
subsub = row.row(align=True)
subsub.prop(toolsettings, "use_record_with_nla", toggle=True)
- layout.prop(toolsettings, "keyframe_type", icon='SPACE2', text="") # xxx: icon...
+ layout.prop(toolsettings, "keyframe_type", text="")
row = layout.row(align=True)
row.prop_search(scene.keying_sets_all, "active", scene, "keying_sets_all", text="")