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:
authorCampbell Barton <ideasman42@gmail.com>2007-04-22 21:14:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-04-22 21:14:23 +0400
commit1c52e2cfa4096f3775472bd11d5ac982edc5ae3a (patch)
tree937be2dbb8dd2a251bad4be153fd71de1f94aa9c /source/blender/src/editscreen.c
parentd2f81fe5e98d3cb98bbf4e4caf97bf4738561a87 (diff)
6488 - Interface - Theme controls corner style
Made some other changes too, to border redraw, and dont draw antialiased squares when the minimal themes enabled.
Diffstat (limited to 'source/blender/src/editscreen.c')
-rw-r--r--source/blender/src/editscreen.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c
index 4cd2ca7086b..c0fee24ba8a 100644
--- a/source/blender/src/editscreen.c
+++ b/source/blender/src/editscreen.c
@@ -3678,6 +3678,12 @@ void drawscredge_area(ScrArea *sa)
cpack(0x0);
+ /* Simple hack to make sure round corners arntdrawn with the minimal theme,
+ * Nothing wrong with it IMHO, but just be aware its used so the following
+ * if's never compare true with HEADERTOP or HEADERDOWN */
+ if (BIF_GetThemeValue(TH_BUT_DRAWTYPE) == TH_MINIMAL)
+ sa->headertype = -sa->headertype;
+
/* right border area */
if(sa->headertype==HEADERTOP) sdrawline(x2, y1, x2, y2-SCR_ROUND+1);
else if(sa->headertype==HEADERDOWN) sdrawline(x2, y1+SCR_ROUND-1, x2, y2);
@@ -3697,6 +3703,9 @@ void drawscredge_area(ScrArea *sa)
if(sa->headertype==HEADERDOWN) sdrawline(x1+SCR_ROUND-3, y1, x2-SCR_ROUND+3, y1);
else sdrawline(x1, y1, x2, y1);
+ /* restore real header type */
+ if (BIF_GetThemeValue(TH_BUT_DRAWTYPE) == TH_MINIMAL)
+ sa->headertype = -sa->headertype;
}
/* ********************************* */