From 0321602b6524ee2f7139610824893695d2f59b68 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 17 Oct 2003 14:02:08 +0000 Subject: - The basic layer for Themes in place! - currently only implemented for 3d window - create as many themes you like, and name them - default theme is not editable, and always will be defined at startup (initTheme) - saves in .B.blend - themes for spaces can become local too, so you can set individual 3d windows at theme 'Maya' or so. (to be implemented) - it uses alpha as well...! API: This doesnt use the old method with BFCOLORID blahblah. The API is copied from OpenGL conventions (naming) as much as possible: - void BIF_ThemeColor(ScrArea *sa, int colorid) sets a color... id's are in BIF_resources.h (TH_GRID, TH_WIRE, etc) - void BIF_ThemeColorShade(ScrArea *sa, int colorid, int offset) sets a color with offset, no more weird COLORSHADE_LGREY stuff - void BIF_GetThemeColor3fv(ScrArea *sa, int colorid, float *col) like opengl, this gives you in *col the three rgb values - void BIF_GetThemeColor4ubv(ScrArea *sa, int colorid, char *col) or the one to get 4 bytes ThemeColor calls for globals (UI etc) can also call NULL for *sa... this is to be implemented still. Next step: cleaning up interface.c for all weird colorcalls. --- source/blender/include/BSE_drawoops.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/include/BSE_drawoops.h') diff --git a/source/blender/include/BSE_drawoops.h b/source/blender/include/BSE_drawoops.h index b042fc097fa..78a8107f8e2 100644 --- a/source/blender/include/BSE_drawoops.h +++ b/source/blender/include/BSE_drawoops.h @@ -35,7 +35,6 @@ struct ScrArea; struct Oops; -struct uiBlock; void boundbox_oops(void); void give_oopslink_line(struct Oops *oops, struct OopsLink *ol, float *v1, float *v2); @@ -44,7 +43,7 @@ void draw_icon_oops(float *co, short type); void mysbox(float x1, float y1, float x2, float y2); unsigned int give_oops_color(short type, short sel, unsigned int *border); void calc_oopstext(char *str, float *v1); -void draw_oops(struct Oops *oops, struct uiBlock *block); +void draw_oops(struct Oops *oops); void drawoopsspace(struct ScrArea *sa, void *spacedata); #endif /* BSE_DRAWOOPS */ -- cgit v1.2.3