Theme: adjust active UV face color in the theme

This color had it's alpha reduced in the drawing code,
as the active face is no longer stippled.

Now the color is used from the theme without adjusting the alpha.
This commit is contained in:
Campbell Barton 2020-04-16 18:43:03 +10:00
parent 90d3fe1e4d
commit 3468434b6b
3 changed files with 2 additions and 3 deletions

View File

@ -697,7 +697,7 @@ const bTheme U_theme_default = {
.vertex_size = 3,
.outline_width = 1,
.facedot_size = 3,
.editmesh_active = RGBA(0xffffff80),
.editmesh_active = RGBA(0xffffff40),
.handle_vertex_select = RGBA(0xffff00ff),
.handle_vertex_size = 5,
.gp_vertex_size = 3,

View File

@ -724,7 +724,7 @@
freestyle_face_mark="#7fff7f33"
face_back="#00000000"
face_front="#00000000"
editmesh_active="#ffffff80"
editmesh_active="#ffffff40"
wire_edit="#c0c0c0"
edge_select="#ff8500"
scope_back="#727272ff"

View File

@ -347,7 +347,6 @@ static void draw_uvs(SpaceImage *sima,
UI_GetThemeColor4fv(TH_FACE, col1);
UI_GetThemeColor4fv(TH_FACE_SELECT, col2);
UI_GetThemeColor4fv(TH_EDITMESH_ACTIVE, col3);
col3[3] *= 0.2; /* Simulate dithering */
col1[3] *= overlay_alpha;
col2[3] *= overlay_alpha;