Blender Git Loki

Git Commits -> Revision 0321602

Revision 0321602 by Ton Roosendaal (master)
October 17, 2003, 14:02 (GMT)
- 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.

Commit Details:

Full Hash: 0321602b6524ee2f7139610824893695d2f59b68
SVN Revision: 1333
Parent Commit: 00cf36d
Lines Changed: +757, -107

20 Modified Paths:

/source/blender/blenloader/intern/readfile.c (+23, -4) (Diff)
/source/blender/blenloader/intern/writefile.c (+8, -0) (Diff)
/source/blender/include/BIF_interface.h (+1, -1) (Diff)
/source/blender/include/BIF_resources.h (+57, -0) (Diff)
/source/blender/include/BSE_drawoops.h (+1, -2) (Diff)
/source/blender/include/butspace.h (+7, -0) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+51, -0) (Diff)
/source/blender/src/buttons_shading.c (+7, -2) (Diff)
/source/blender/src/drawobject.c (+54, -43) (Diff)
/source/blender/src/drawoops.c (+3, -4) (Diff)
/source/blender/src/drawview.c (+19, -15) (Diff)
/source/blender/src/editscreen.c (+2, -2) (Diff)
/source/blender/src/ghostwinlay.c (+1, -0) (Diff)
/source/blender/src/header_view3d.c (+2, -3) (Diff)
/source/blender/src/interface.c (+28, -19) (Diff)
/source/blender/src/interface_panel.c (+17, -6) (Diff)
/source/blender/src/language.c (+1, -0) (Diff)
/source/blender/src/resources.c (+292, -0) (Diff)
/source/blender/src/space.c (+178, -4) (Diff)
/source/blender/src/usiblender.c (+5, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021