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:
authorPaul (Thirio) <paul@paulcoops.com>2019-11-25 19:36:05 +0300
committerHarley Acheson <harley.acheson@gmail.com>2019-11-25 19:36:05 +0300
commitb374b24f1b2dea4360f318fe3c86bede00bdaae4 (patch)
tree81e74e8b8103c9dca6f21bf00036367c1d470bf3 /source/blender/editors/interface/resources.c
parent78071d0cdfe53bf9dd7baa1a7204b1e148b7574b (diff)
UI: Widget Text Cursor Color
Adds a theme setting to specify color of widget text insertion cursor (caret). Differential Revision: https://developer.blender.org/D6024 Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r--source/blender/editors/interface/resources.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c
index a4dd0cb5c9f..99833e9200d 100644
--- a/source/blender/editors/interface/resources.c
+++ b/source/blender/editors/interface/resources.c
@@ -872,6 +872,9 @@ const uchar *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colorid)
case TH_EDITOR_OUTLINE:
cp = btheme->tui.editor_outline;
break;
+ case TH_WIDGET_TEXT_CURSOR:
+ cp = btheme->tui.widget_text_cursor;
+ break;
case TH_AXIS_X:
cp = btheme->tui.xaxis;
break;