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:
authorJulian Eisel <julian@blender.org>2020-09-18 21:10:40 +0300
committerJulian Eisel <julian@blender.org>2020-09-18 21:38:45 +0300
commitaacf8d75f5cbf8db5ac6feec7e49eac7c296ad96 (patch)
tree1df7b52bd70ce8350f6bfd2eb6b5f5f289c4a189 /source/blender/editors/interface/interface_intern.h
parenta6a0cbcd7492bd8087b6df659c365482614b13e2 (diff)
UI: Support mouse over highlighting for superimposed icons
E.g. the 'x' icons or eyedropper icons in text buttons. They didn't use to have any mouse over feedback, now we dim the icon until hovered. This kind of feedback helps users see that the icons are interactive, and if they are within their interaction hotspot.
Diffstat (limited to 'source/blender/editors/interface/interface_intern.h')
-rw-r--r--source/blender/editors/interface/interface_intern.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h
index d62b8a0258a..c233bebd88b 100644
--- a/source/blender/editors/interface/interface_intern.h
+++ b/source/blender/editors/interface/interface_intern.h
@@ -375,6 +375,8 @@ typedef struct uiButExtraOpIcon {
BIFIconID icon;
struct wmOperatorCallParams *optype_params;
+
+ bool highlighted;
} uiButExtraOpIcon;
typedef struct ColorPicker {