Manipulator: icon highlight could be darker

Use color and highlight from theme.
This commit is contained in:
Campbell Barton 2018-01-25 00:44:55 +11:00
parent 992ac8f942
commit 90768c9b68
2 changed files with 0 additions and 4 deletions

View File

@ -133,7 +133,6 @@ static void button2d_draw_intern(
if (select == false) {
if (button->shape_batch[0] != NULL) {
glEnable(GL_POLYGON_SMOOTH);
glEnable(GL_LINE_SMOOTH);
glLineWidth(1.0f);
for (uint i = 0; i < ARRAY_SIZE(button->shape_batch) && button->shape_batch[i]; i++) {
@ -146,7 +145,6 @@ static void button2d_draw_intern(
GWN_batch_uniform_4f(button->shape_batch[i], "color", UNPACK4(color));
GWN_batch_draw(button->shape_batch[i]);
}
glDisable(GL_POLYGON_SMOOTH);
glDisable(GL_LINE_SMOOTH);
gpuPopMatrix();
}

View File

@ -210,8 +210,6 @@ static void WIDGETGROUP_navigate_setup(const bContext *UNUSED(C), wmManipulatorG
RNA_property_string_set_bytes(
mpr->ptr, prop,
(const char *)info->shape, info->shape_size);
/* don't fade icons so much */
mpr->color[3] = 0.5f;
}
wmOperatorType *ot = WM_operatortype_find(info->opname, true);