The revised patch from Leon for new particle effects.
[blender.git] / source / blender / include / BIF_resources.h
index cc3f751bcbca404ce2b4c76af14e5b610d230589..6bce7e4e3f171381f71a70fc1695f6d44bbc4ed4 100644 (file)
@@ -26,7 +26,7 @@
  * The Original Code is: all of this file.
  *
  * Contributor(s): none yet.
- *
+ * 
  * ***** END GPL/BL DUAL LICENSE BLOCK *****
  */
 
@@ -60,7 +60,7 @@ typedef enum {
        ICON_ORTHO,
        ICON_PERSP,
        ICON_CAMERA,
-       ICON_BLANK1,
+       ICON_EFFECTS,
        ICON_BBOX,
        ICON_WIRE,
        ICON_SOLID,
@@ -89,7 +89,7 @@ typedef enum {
        ICON_POSE_HLT,
        ICON_BORDERMOVE,
        ICON_MAYBE_ITS_A_LASSO,
-       ICON_BLANK6,
+       ICON_BLANK1,
        ICON_ROTATE,
        ICON_CURSOR,
        ICON_ROTATECOLLECTION,
@@ -101,15 +101,17 @@ typedef enum {
        ICON_BLANK11,
        ICON_BLANK12,
        
+
+
        ICON_DOTSUP,
        ICON_DOTSDOWN,
        ICON_MENU_PANEL,
        ICON_AXIS_SIDE,
        ICON_AXIS_FRONT,
        ICON_AXIS_TOP,
-       ICON_BLANK14,
-       ICON_BLANK15,
-       ICON_BLANK16,
+       ICON_DRAW_UVFACES,
+       ICON_STICKY_UVS,
+       ICON_STICKY2_UVS,
        ICON_BLANK17,
        ICON_BLANK18,
        ICON_ENVMAP,
@@ -258,13 +260,78 @@ typedef enum {
 #define BIFNICONIDS                    (BIFICONID_LAST-BIFICONID_FIRST + 1)
 } BIFIconID;
 
+typedef enum {
+#define BIFCOLORSHADE_FIRST     (COLORSHADE_DARK)
+        COLORSHADE_DARK,
+        COLORSHADE_GREY,
+        COLORSHADE_MEDIUM,
+        COLORSHADE_HILITE,
+        COLORSHADE_LIGHT,
+        COLORSHADE_WHITE,
+#define BIFCOLORSHADE_LAST      (COLORSHADE_WHITE)
+#define BIFNCOLORSHADES         (BIFCOLORSHADE_LAST-BIFCOLORSHADE_FIRST + 1)
+} BIFColorShade;
+
+typedef enum {
+#define BIFCOLORID_FIRST       (BUTGREY)
+       BUTGREY = 0,
+       BUTGREEN,
+       BUTBLUE,
+       BUTSALMON,
+       MIDGREY,
+       BUTPURPLE,
+       BUTYELLOW,
+       REDALERT,
+       BUTRUST,
+       BUTWHITE,
+       BUTDBLUE,
+       BUTPINK,
+       BUTDPINK,
+       BUTMACTIVE,
 
-/* ---------- theme ----------- */
+       BUTIPO,
+       BUTAUDIO,
+       BUTCAMERA,
+       BUTRANDOM,
+       BUTEDITOBJECT,
+       BUTPROPERTY,
+       BUTSCENE,
+       BUTMOTION,
+       BUTMESSAGE,
+       BUTACTION,
+       BUTCD,
+       BUTGAME,
+       BUTVISIBILITY,
+       BUTYUCK,
+       BUTSEASICK,
+       BUTCHOKE,
+       BUTIMPERIAL,
+
+       BUTTEXTCOLOR,
+       BUTTEXTPRESSED,
+       BUTSBACKGROUND,
+       
+       VIEWPORTBACKCOLOR,
+       VIEWPORTGRIDCOLOR,
+       VIEWPORTACTIVECOLOR,
+       VIEWPORTSELECTEDCOLOR,
+       VIEWPORTUNSELCOLOR,
+       
+       EDITVERTSEL, 
+       EDITVERTUNSEL, 
+       EDITEDGESEL, 
+       EDITEDGEUNSEL,
+       
+#define BIFCOLORID_LAST                (EDITEDGEUNSEL)
+#define BIFNCOLORIDS           (BIFCOLORID_LAST-BIFCOLORID_FIRST + 1)
+
+} BIFColorID;
 
 enum {
        TH_AUTO,        /* for buttons, to signal automatic color assignment */
        
 // uibutton colors
+       TH_BUT_OUTLINE,
        TH_BUT_NEUTRAL,
        TH_BUT_ACTION,
        TH_BUT_SETTING,
@@ -284,6 +351,7 @@ enum {
        TH_BUT_DRAWTYPE,
        
        TH_REDALERT,
+       TH_CUSTOM,
        
        TH_THEMEUI,
 // common colors among spaces
@@ -332,6 +400,8 @@ void                BIF_ThemeColorShadeAlpha(int colorid, int coloffset, int alphaoffset);
 
 // sets color, which is blend between two theme colors
 void   BIF_ThemeColorBlend(int colorid1, int colorid2, float fac);
+// same, with shade offset
+void    BIF_ThemeColorBlendShade(int colorid1, int colorid2, float fac, int offset);
 
 // returns one value, not scaled
 float  BIF_GetThemeValuef(int colorid);
@@ -351,6 +421,8 @@ void        BIF_InitTheme(void);
 void   BIF_SetTheme(struct ScrArea *sa);
 void   BIF_resources_init              (void);
 void   BIF_resources_free              (void);
+void   BIF_colors_init                 (void);
+void   BIF_load_ui_colors              (void);
 
 
 // icon API
@@ -364,4 +436,6 @@ char        *BIF_ThemeGetColorPtr(struct bTheme *btheme, int spacetype, int colorid);
 char   *BIF_ThemeColorsPup(int spacetype);
 
 
+void   BIF_def_color                   (BIFColorID colorid, unsigned char r, unsigned char g, unsigned char b);
+
 #endif /*  BIF_ICONS_H */