Some tweaks to menu drawing
[blender.git] / source / blender / editors / interface / resources.c
index 8b9b26c372a56c74c2ddcbc692d197db81ca71b3..786306cdfb910b3dd5a3fa276a713df07e2a16bc 100644 (file)
@@ -378,73 +378,49 @@ void ui_theme_init_userdef(void)
        SETCOL(btheme->tui.text,                0,0,0, 255);
        SETCOL(btheme->tui.text_hi,     255, 255, 255, 255);
        
-       SETCOL(btheme->tui.menu_back,   0xD2,0xD2,0xD2, 255);
-       SETCOL(btheme->tui.menu_item,   0xDA,0xDA,0xDA, 255);
+       SETCOL(btheme->tui.menu_back,   255, 255, 255, 235);
+       SETCOL(btheme->tui.menu_item,   255, 255, 255, 20);
        SETCOL(btheme->tui.menu_hilite, 0x7F,0x7F,0x7F, 255);
        SETCOL(btheme->tui.menu_text,   0, 0, 0, 255);
        SETCOL(btheme->tui.menu_text_hi, 255, 255, 255, 255);
+
        btheme->tui.but_drawtype= TH_ROUNDSHADED;
-       
        BLI_strncpy(btheme->tui.iconfile, "", sizeof(btheme->tui.iconfile));
-       
+
        /* space view3d */
-SETCOL(btheme->tui.outline,     0xA0,0xA0,0xA0, 255);
-       SETCOL(btheme->tui.neutral,     180, 180, 180, 255);
-       SETCOL(btheme->tui.action,              180, 180, 180, 255);
-       SETCOL(btheme->tui.setting,     180, 180, 180, 255);
-       SETCOL(btheme->tui.setting1,    180, 180, 180, 255);
-       SETCOL(btheme->tui.setting2,    180, 180, 180, 255);
-       SETCOL(btheme->tui.num,                 143, 143, 143, 255);
-       SETCOL(btheme->tui.textfield,   143, 142, 143, 255);
-       SETCOL(btheme->tui.textfield_hi,255, 151, 26,  255);
-       SETCOL(btheme->tui.popup,               174, 174, 174, 255);
-
-       SETCOL(btheme->tui.text,                0,0,0, 255);
-       SETCOL(btheme->tui.text_hi,     255, 255, 255, 255);
-
-       SETCOL(btheme->tui.menu_back,   0xD2,0xD2,0xD2, 255);
-       SETCOL(btheme->tui.menu_item,   0xDA,0xDA,0xDA, 255);
-       SETCOL(btheme->tui.menu_hilite, 0x7F,0x7F,0x7F, 255);
-       SETCOL(btheme->tui.menu_text,   0, 0, 0, 255);
-       SETCOL(btheme->tui.menu_text_hi, 255, 255, 255, 255);
-       btheme->tui.but_drawtype= TH_ROUNDSHADED;
-
-       BLI_strncpy(btheme->tui.iconfile, "", sizeof(btheme->tui.iconfile));
-
-               /* space view3d */
-               SETCOL(btheme->tv3d.back,       90, 90, 90, 255);
-               SETCOL(btheme->tv3d.text,       0, 0, 0, 255);
-               SETCOL(btheme->tv3d.text_hi, 255, 255, 255, 255);
-               SETCOL(btheme->tv3d.header, 195, 195, 195, 255);
-               SETCOL(btheme->tv3d.panel,      165, 165, 165, 127);
-
-               SETCOL(btheme->tv3d.shade1,  160, 160, 160, 100);
-               SETCOL(btheme->tv3d.shade2,  0x7f, 0x70, 0x70, 100);
-
-               SETCOL(btheme->tv3d.grid,       74, 74, 74      , 255);
-               SETCOL(btheme->tv3d.wire,       0x0, 0x0, 0x0, 255);
-               SETCOL(btheme->tv3d.lamp,       0, 0, 0, 40);
-               SETCOL(btheme->tv3d.select, 241, 88, 0, 255);
-               SETCOL(btheme->tv3d.active, 255, 140, 25, 255);
-               SETCOL(btheme->tv3d.group,      16, 64, 16, 255);
-               SETCOL(btheme->tv3d.group_active, 85, 187, 85, 255);
-               SETCOL(btheme->tv3d.transform, 0xff, 0xff, 0xff, 255);
-               SETCOL(btheme->tv3d.vertex, 0, 0, 0, 255);
-               SETCOL(btheme->tv3d.vertex_select, 255, 133, 0, 255);
-               btheme->tv3d.vertex_size= 3;
-               SETCOL(btheme->tv3d.edge,       0x0, 0x0, 0x0, 255);
-               SETCOL(btheme->tv3d.edge_select, 255, 160, 0, 255);
-               SETCOL(btheme->tv3d.edge_seam, 219, 37, 18, 255);
-               SETCOL(btheme->tv3d.edge_facesel, 75, 75, 75, 255);
-               SETCOL(btheme->tv3d.face,       0, 0, 0, 18);
-               SETCOL(btheme->tv3d.face_select, 255, 133, 0, 60);
-               SETCOL(btheme->tv3d.normal, 0x22, 0xDD, 0xDD, 255);
-               SETCOL(btheme->tv3d.face_dot, 255, 133, 0, 255);
-               btheme->tv3d.facedot_size= 4;
-               SETCOL(btheme->tv3d.cframe, 0x60, 0xc0,  0x40, 255);
-
-               SETCOL(btheme->tv3d.bone_solid, 200, 200, 200, 255);
-               SETCOL(btheme->tv3d.bone_pose, 80, 200, 255, 80);               // alpha 80 is not meant editable, used for wire+action draw
+       SETCOL(btheme->tv3d.back,       90, 90, 90, 255);
+       SETCOL(btheme->tv3d.text,       0, 0, 0, 255);
+       SETCOL(btheme->tv3d.text_hi, 255, 255, 255, 255);
+       SETCOL(btheme->tv3d.header, 195, 195, 195, 255);
+       SETCOL(btheme->tv3d.panel,      165, 165, 165, 127);
+
+       SETCOL(btheme->tv3d.shade1,  160, 160, 160, 100);
+       SETCOL(btheme->tv3d.shade2,  0x7f, 0x70, 0x70, 100);
+
+       SETCOL(btheme->tv3d.grid,       74, 74, 74      , 255);
+       SETCOL(btheme->tv3d.wire,       0x0, 0x0, 0x0, 255);
+       SETCOL(btheme->tv3d.lamp,       0, 0, 0, 40);
+       SETCOL(btheme->tv3d.select, 241, 88, 0, 255);
+       SETCOL(btheme->tv3d.active, 255, 140, 25, 255);
+       SETCOL(btheme->tv3d.group,      16, 64, 16, 255);
+       SETCOL(btheme->tv3d.group_active, 85, 187, 85, 255);
+       SETCOL(btheme->tv3d.transform, 0xff, 0xff, 0xff, 255);
+       SETCOL(btheme->tv3d.vertex, 0, 0, 0, 255);
+       SETCOL(btheme->tv3d.vertex_select, 255, 133, 0, 255);
+       btheme->tv3d.vertex_size= 3;
+       SETCOL(btheme->tv3d.edge,       0x0, 0x0, 0x0, 255);
+       SETCOL(btheme->tv3d.edge_select, 255, 160, 0, 255);
+       SETCOL(btheme->tv3d.edge_seam, 219, 37, 18, 255);
+       SETCOL(btheme->tv3d.edge_facesel, 75, 75, 75, 255);
+       SETCOL(btheme->tv3d.face,       0, 0, 0, 18);
+       SETCOL(btheme->tv3d.face_select, 255, 133, 0, 60);
+       SETCOL(btheme->tv3d.normal, 0x22, 0xDD, 0xDD, 255);
+       SETCOL(btheme->tv3d.face_dot, 255, 133, 0, 255);
+       btheme->tv3d.facedot_size= 4;
+       SETCOL(btheme->tv3d.cframe, 0x60, 0xc0,  0x40, 255);
+
+       SETCOL(btheme->tv3d.bone_solid, 200, 200, 200, 255);
+       SETCOL(btheme->tv3d.bone_pose, 80, 200, 255, 80);               // alpha 80 is not meant editable, used for wire+action draw
        
        
        /* space buttons */