This commit sets the info header on the preferences window and the

header prints on the 3d view header to be the same color as the menu text.
This ensures that you can read the text against the color of the header
just as long as the theme color for the menu text is also readable against
the header color. This should make dark themes much better.
This commit is contained in:
Chris Burt
2005-10-01 21:16:52 +00:00
parent 453fd9f532
commit 589f91e0ee
2 changed files with 7 additions and 4 deletions

View File

@@ -230,7 +230,8 @@ void headerprint(char *str)
areawinset(curarea->headwin);
headerbox(curarea);
cpack(0x0);
BIF_ThemeColor(TH_MENU_TEXT); /* better than cpack(0x0) color no? (desoto) */
glRasterPos2i(20+curarea->headbutofs, 6);
BMF_DrawString(G.font, str);

View File

@@ -1740,17 +1740,19 @@ static void info_text(int x, int y)
cpack( swatch_color );
glRecti(x-24, y-6, x-30+hsize, y+14);
glColor3ub(0, 0, 0);
glColor3ub(0, 0, 0); /* makes text black colored rect */
glRasterPos2i(x, y);
BIF_RasterPos(x, y);
BIF_DrawString(G.font, headerstr, (U.transopts & USER_TR_MENUS));
hsize= BIF_GetStringWidth(G.font, headerstr, (U.transopts & USER_TR_BUTTONS));
BIF_ThemeColor(TH_MENU_TEXT); /* makes text readable on dark theme */
glRasterPos2i(x+hsize+10, y);
BIF_RasterPos(x+hsize+10, y);
BIF_DrawString(G.font, infostr, (U.transopts & USER_TR_MENUS));
}