Made the minimal theme align, and buttons now sit close together.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 19 Jan 2006 14:42:04 +0000 (14:42 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 19 Jan 2006 14:42:04 +0000 (14:42 +0000)
Looks nicer.

source/blender/src/interface.c
source/blender/src/interface_draw.c

index baa2b2ffec86e0f6548dd9600bd003c918fac4d8..2b50cb1cf8e3d6e17ab604fe74e603d72eb9dd20 100644 (file)
@@ -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;
        }
index e0e09e36aac05415cbb5ce7d826c22cc9c40de57..8c5640fdf0d8135dd02d72d4c0635aba19e1e71c 100644 (file)
@@ -1209,12 +1209,18 @@ 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) {
                if(flag & UI_ACTIVE) BIF_ThemeColorShade(colorid, -40);