forked from bartvdbraak/blender
Made the minimal theme align, and buttons now sit close together.
Looks nicer.
This commit is contained in:
parent
4a32e0380b
commit
14e1000e38
@ -4929,7 +4929,7 @@ void uiBlockEndAlign(uiBlock *block)
|
|||||||
uiBut *prev, *but=NULL, *next;
|
uiBut *prev, *but=NULL, *next;
|
||||||
int flag= 0, cols=0, rows=0;
|
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
|
block->flag &= ~UI_BUT_ALIGN; // all 4 flags
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -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 */
|
/* 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)
|
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;
|
x1+= asp;
|
||||||
x2-= asp;
|
x2-= asp;
|
||||||
y1+= asp;
|
y1+= asp;
|
||||||
y2-= asp;
|
y2-= asp;
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Less space between buttons looks nicer */
|
||||||
|
y2-= asp;
|
||||||
|
x2-= asp;
|
||||||
|
|
||||||
/* paper */
|
/* paper */
|
||||||
if(flag & UI_SELECT) {
|
if(flag & UI_SELECT) {
|
||||||
if(flag & UI_ACTIVE) BIF_ThemeColorShade(colorid, -40);
|
if(flag & UI_ACTIVE) BIF_ThemeColorShade(colorid, -40);
|
||||||
|
Loading…
Reference in New Issue
Block a user