2.5
******* small commit, tweaked the emboss based on the object buttons, made it really subtle but still make it easier to read compared to no emboss, a new way will be needed for menus to work aswel
This commit is contained in:
@@ -2238,7 +2238,7 @@ static void ui_draw_text(uiBut *but, float x, float y, int sunken)
|
||||
|
||||
/* only draw embossed text if the text color is darker than 0.5 mid-grey */
|
||||
if ((curcol[0] + curcol[1] + curcol[3]) * 0.3f < 0.5f)
|
||||
glColor4f(1.0f, 1.0f, 1.0f, 0.25f);
|
||||
glColor4f(0.6f, 0.6f, 0.6f, 0.3f);
|
||||
else
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user