Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Burt <desoto@exenex.com>2005-10-02 01:16:52 +0400
committerChris Burt <desoto@exenex.com>2005-10-02 01:16:52 +0400
commit589f91e0ee353c95b3def8a6480557db8fd04b6e (patch)
treed18038efed40ebb74fe86ae4a10ea6fb4d6f525c /source/blender/src/header_info.c
parent453fd9f532178372ed54007388714171baf587e0 (diff)
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.
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r--source/blender/src/header_info.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c
index f656591879d..755af1870ff 100644
--- a/source/blender/src/header_info.c
+++ b/source/blender/src/header_info.c
@@ -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));
}