diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-03-13 14:56:52 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-03-13 14:56:52 +0300 |
commit | 6bf9aa3f8e833df488911d6005b1683cca36c51e (patch) | |
tree | 444bde790664f485036dec9a1c51fe7642ff501a /source/blender/editors/include/UI_icons.h | |
parent | 81e7f6b8a0c99c953ca9659b1b317ae852c6508e (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 'source/blender/editors/include/UI_icons.h')
-rw-r--r-- | source/blender/editors/include/UI_icons.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_icons.h b/source/blender/editors/include/UI_icons.h index 286235e95eb..76ff9e0fbd8 100644 --- a/source/blender/editors/include/UI_icons.h +++ b/source/blender/editors/include/UI_icons.h @@ -1015,3 +1015,8 @@ DEF_VICO(MOVE_UP_VEC) DEF_VICO(MOVE_DOWN_VEC) DEF_VICO(X_VEC) DEF_VICO(SMALL_TRI_RIGHT_VEC) + +DEF_VICO(KEYTYPE_KEYFRAME_VEC) +DEF_VICO(KEYTYPE_BREAKDOWN_VEC) +DEF_VICO(KEYTYPE_EXTREME_VEC) +DEF_VICO(KEYTYPE_JITTER_VEC) |