summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
80e6247)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43446
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
button_state == wxAUI_BUTTON_STATE_PRESSED)
{
dc.SetBrush(wxBrush(wxAuiStepColour(bkcolour, 120)));
button_state == wxAUI_BUTTON_STATE_PRESSED)
{
dc.SetBrush(wxBrush(wxAuiStepColour(bkcolour, 120)));
- dc.SetPen(wxPen(wxAuiStepColour(bkcolour, 70)));
+ dc.SetPen(wxPen(wxAuiStepColour(bkcolour, 75)));
// draw the background behind the button
dc.DrawRectangle(rect.x, rect.y, 15, 15);
// draw the background behind the button
dc.DrawRectangle(rect.x, rect.y, 15, 15);
#endif
m_base_colour = base_colour;
#endif
m_base_colour = base_colour;
- wxColor darker2_colour = wxAuiStepColour(base_colour, 70);
+ wxColor border_colour = wxAuiStepColour(base_colour, 75);
- m_border_pen = wxPen(darker2_colour);
+ m_border_pen = wxPen(border_colour);
m_base_colour_pen = wxPen(m_base_colour);
m_base_colour_brush = wxBrush(m_base_colour);
m_base_colour_pen = wxPen(m_base_colour);
m_base_colour_brush = wxBrush(m_base_colour);
// draw background
wxRect r(rect.x, rect.y, rect.width+2, rect.height-3);
wxColor top_color = wxAuiStepColour(m_base_colour, 90);
// draw background
wxRect r(rect.x, rect.y, rect.width+2, rect.height-3);
wxColor top_color = wxAuiStepColour(m_base_colour, 90);
- wxColor bottom_color = wxAuiStepColour(m_base_colour, 110);
+ wxColor bottom_color = wxAuiStepColour(m_base_colour, 170);
dc.GradientFillLinear(r, top_color, bottom_color, wxSOUTH);
// draw base lines
dc.GradientFillLinear(r, top_color, bottom_color, wxSOUTH);
// draw base lines
if (tab_x + clip_width > in_rect.x + in_rect.width)
clip_width = (in_rect.x + in_rect.width) - tab_x;
if (tab_x + clip_width > in_rect.x + in_rect.width)
clip_width = (in_rect.x + in_rect.width) - tab_x;
wxPoint clip_points[6];
clip_points[0] = wxPoint(tab_x, tab_y+tab_height-3);
clip_points[1] = wxPoint(tab_x, tab_y+2);
wxPoint clip_points[6];
clip_points[0] = wxPoint(tab_x, tab_y+tab_height-3);
clip_points[1] = wxPoint(tab_x, tab_y+2);
wxRegion clipping_region(WXSIZEOF(clip_points), clip_points);
dc.SetClippingRegion(clipping_region);
#endif // !wxDFB && !wxCocoa
wxRegion clipping_region(WXSIZEOF(clip_points), clip_points);
dc.SetClippingRegion(clipping_region);
#endif // !wxDFB && !wxCocoa
+*/
+ // since the above code above doesn't play well with WXDFB or WXCOCOA,
+ // we'll just use a rectangle for the clipping region for now --
+ dc.SetClippingRegion(tab_x, tab_y, clip_width+1, tab_height-3);
wxPoint border_points[6];
border_points[0] = wxPoint(tab_x, tab_y+tab_height-4);
border_points[1] = wxPoint(tab_x, tab_y+2);
wxPoint border_points[6];
border_points[0] = wxPoint(tab_x, tab_y+tab_height-4);
border_points[1] = wxPoint(tab_x, tab_y+2);
wxRect r(tab_x, tab_y, tab_width, tab_height);
dc.SetPen(m_base_colour_pen);
dc.SetBrush(m_base_colour_brush);
wxRect r(tab_x, tab_y, tab_width, tab_height);
dc.SetPen(m_base_colour_pen);
dc.SetBrush(m_base_colour_brush);
- dc.DrawRectangle(r.x, r.y, r.width, r.height);
+ dc.DrawRectangle(r.x+1, r.y+1, r.width-1, r.height-4);
// this white helps fill out the gradient at the top of the tab
dc.SetPen(*wxWHITE_PEN);
dc.SetBrush(*wxWHITE_BRUSH);
// this white helps fill out the gradient at the top of the tab
dc.SetPen(*wxWHITE_PEN);
dc.SetBrush(*wxWHITE_BRUSH);
- dc.DrawRectangle(r.x+2, r.y+1, r.width-3, r.height);
+ dc.DrawRectangle(r.x+2, r.y+1, r.width-3, r.height-4);
// these two points help the rounded corners appear more antialiased
dc.SetPen(m_base_colour_pen);
// these two points help the rounded corners appear more antialiased
dc.SetPen(m_base_colour_pen);
// -- draw top gradient fill for glossy look
wxColor top_color = m_base_colour;
// -- draw top gradient fill for glossy look
wxColor top_color = m_base_colour;
- wxColor bottom_color = wxAuiStepColour(top_color, 106);
+ wxColor bottom_color = wxAuiStepColour(top_color, 160);
dc.GradientFillLinear(r, bottom_color, top_color, wxNORTH);
r.y += r.height;
dc.GradientFillLinear(r, bottom_color, top_color, wxNORTH);
r.y += r.height;
// draw bitmap
dc.DrawBitmap(bitmap,
bitmap_offset,
// draw bitmap
dc.DrawBitmap(bitmap,
bitmap_offset,
- drawn_tab_yoff + (drawn_tab_height/2) - (bitmap.GetHeight()/2) + 1,
+ drawn_tab_yoff + (drawn_tab_height/2) - (bitmap.GetHeight()/2),
true);
text_offset = bitmap_offset + bitmap.GetWidth();
true);
text_offset = bitmap_offset + bitmap.GetWidth();
wxColour base_colour = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
wxColour base_colour = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
- wxColour background_colour = wxAuiStepColour(base_colour, 95);
+ wxColour background_colour = base_colour;
wxColour normaltab_colour = base_colour;
wxColour selectedtab_colour = *wxWHITE;
wxColour normaltab_colour = base_colour;
wxColour selectedtab_colour = *wxWHITE;
m_base_colour = base_colour;
wxColor darker1_colour = wxAuiStepColour(base_colour, 85);
m_base_colour = base_colour;
wxColor darker1_colour = wxAuiStepColour(base_colour, 85);
- wxColor darker2_colour = wxAuiStepColour(base_colour, 70);
+ wxColor darker2_colour = wxAuiStepColour(base_colour, 75);
wxColor darker3_colour = wxAuiStepColour(base_colour, 60);
wxColor darker4_colour = wxAuiStepColour(base_colour, 50);
wxColor darker5_colour = wxAuiStepColour(base_colour, 40);
wxColor darker3_colour = wxAuiStepColour(base_colour, 60);
wxColor darker4_colour = wxAuiStepColour(base_colour, 50);
wxColor darker5_colour = wxAuiStepColour(base_colour, 40);