Made the minimal theme align, and buttons now sit close together.

Looks nicer.
This commit is contained in:
Campbell Barton 2006-01-19 14:42:04 +00:00
parent 4a32e0380b
commit 14e1000e38
2 changed files with 9 additions and 3 deletions

@ -4929,7 +4929,7 @@ void uiBlockEndAlign(uiBlock *block)
uiBut *prev, *but=NULL, *next;
int flag= 0, cols=0, rows=0;
if ( !((BIF_GetThemeValue(TH_BUT_DRAWTYPE) == 1) || (BIF_GetThemeValue(TH_BUT_DRAWTYPE) == 2))) {
if ( !((BIF_GetThemeValue(TH_BUT_DRAWTYPE) == 0) || (BIF_GetThemeValue(TH_BUT_DRAWTYPE) == 1) || (BIF_GetThemeValue(TH_BUT_DRAWTYPE) == 2))) {
block->flag &= ~UI_BUT_ALIGN; // all 4 flags
return;
}

@ -1209,11 +1209,17 @@ static void ui_draw_round(int type, int colorid, float asp, float x1, float y1,
/* super minimal button as used in logic menu */
static void ui_draw_minimal(int type, int colorid, float asp, float x1, float y1, float x2, float y2, int flag)
{
/* too much space between buttons */
/*
x1+= asp;
x2-= asp;
y1+= asp;
y2-= asp;
*/
/* Less space between buttons looks nicer */
y2-= asp;
x2-= asp;
/* paper */
if(flag & UI_SELECT) {