Fix: icon alpha theme option does not affect toolbar icons correctly

Differential Revision: https://developer.blender.org/D6535
This commit is contained in:
Yevgeny Makarov
2020-01-28 10:13:53 +01:00
committed by Brecht Van Lommel
parent 2a39fb1345
commit 50d65d5a2e

View File

@@ -1506,7 +1506,7 @@ static void icon_draw_rect(float x,
return;
}
/* modulate color */
float col[4] = {1.0f, 1.0f, 1.0f, alpha};
float col[4] = {alpha, alpha, alpha, alpha};
/* rect contains image in 'rendersize', we only scale if needed */
if (rw != w || rh != h) {