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:
authorPablo Vazquez <venomgfx@gmail.com>2019-05-07 16:56:12 +0300
committerPablo Vazquez <venomgfx@gmail.com>2019-05-07 16:59:57 +0300
commit76c6f38ae4cb20abcedb1c03aaa5c9159775502c (patch)
tree93d2c2a37b48176309962950f047752998ae9272 /source/blender/editors/animation/anim_markers.c
parentcbcc2c22d92b05f4cfe5d5ae049c3c45f043a099 (diff)
UI: Use scrubbing theme setting for markers background.
The hard-coded transparency of just 16 made it hard to see the markers when the background was busy with keyframes (or strips in VSE). The rename of the setting is in the following commit. Reviewers: billreynish
Diffstat (limited to 'source/blender/editors/animation/anim_markers.c')
-rw-r--r--source/blender/editors/animation/anim_markers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c
index 66cdae07a36..38024ad73d2 100644
--- a/source/blender/editors/animation/anim_markers.c
+++ b/source/blender/editors/animation/anim_markers.c
@@ -481,7 +481,9 @@ static void draw_markers_background(rctf *rect)
uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT);
immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);
- const unsigned char shade[4] = {0, 0, 0, 16};
+ const unsigned char shade[4];
+ UI_GetThemeColor4ubv(TH_SCRUBBING_BACKGROUND, shade);
+
immUniformColor4ubv(shade);
GPU_blend(true);