Blender Git Loki
Git Commits -> Revision 846f5d8
Revision 846f5d8 by Joshua Leung (greasepencil-experimental, greasepencil-object, greasepencil-refactor, soc-2019-npr, temp-gpencil-eval) July 24, 2018, 05:25 (GMT) |
Annotations: Dynamically updating layer-color preview icons + "Active Note" enum This adds a new enum with dynamically-generated icons to show previews for the icons associated with each GP layer used for annotations. This enum is used as part of the UI for annotations (specifically, in the topbar settings for the active tool), making it easier for users to see what color strokes drawn using the active note/layer will look like. I ended up needing to create a new icon type in BKE_icons.h so that we can store references to the layer/color used. Known issues: * The icon seems a bit too big, and would look a bit nicer with rounded corners. But there are too many issues with the UI roundbox functions (e.g. _aa() makes colors too dark, and non-aa versions look too rough). * Changing layer colors doesn't redraw the icons. A manual refresh (by mousing over the widget) is needed. |
Commit Details:
Full Hash: 846f5d8f744601914ba0481dc23ec75c5dc7509d
Parent Commit: 1b47790
Lines Changed: +137, -4
9 Modified Paths:
/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py (+1, -1) (Diff)
/source/blender/blenkernel/BKE_icons.h (+7, -0) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+4, -0) (Diff)
/source/blender/blenkernel/intern/icons.c (+43, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+2, -0) (Diff)
/source/blender/editors/gpencil/gpencil_utils.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_icons.c (+35, -0) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_gpencil.c (+42, -1) (Diff)
/source/blender/blenkernel/BKE_icons.h (+7, -0) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+4, -0) (Diff)
/source/blender/blenkernel/intern/icons.c (+43, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+2, -0) (Diff)
/source/blender/editors/gpencil/gpencil_utils.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_icons.c (+35, -0) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_gpencil.c (+42, -1) (Diff)