FIX: [STUDIO-1638] transparent background for Notebook
Change-Id: If849fe43349f87be66b53af48737a9a2c50aa237
This commit is contained in:
parent
78dbefd9ba
commit
e59fe6511d
2 changed files with 13 additions and 14 deletions
|
@ -54,7 +54,7 @@ ButtonsListCtrl::ButtonsListCtrl(wxWindow *parent, wxBoxSizer* side_tools) :
|
|||
|
||||
void ButtonsListCtrl::OnPaint(wxPaintEvent&)
|
||||
{
|
||||
Slic3r::GUI::wxGetApp().UpdateDarkUI(this);
|
||||
//Slic3r::GUI::wxGetApp().UpdateDarkUI(this);
|
||||
const wxSize sz = GetSize();
|
||||
wxPaintDC dc(this);
|
||||
|
||||
|
@ -240,4 +240,15 @@ wxString ButtonsListCtrl::GetPageText(size_t n) const
|
|||
|
||||
//#endif // _WIN32
|
||||
|
||||
void Notebook::Init()
|
||||
{
|
||||
// We don't need any border as we don't have anything to separate the
|
||||
// page contents from.
|
||||
SetInternalBorder(0);
|
||||
|
||||
// No effects by default.
|
||||
m_showEffect = m_hideEffect = wxSHOW_EFFECT_NONE;
|
||||
|
||||
m_showTimeout = m_hideTimeout = 0;
|
||||
SetBackgroundStyle(wxBG_STYLE_TRANSPARENT);
|
||||
}
|
||||
|
|
|
@ -391,19 +391,7 @@ protected:
|
|||
}
|
||||
|
||||
private:
|
||||
void Init()
|
||||
{
|
||||
// We don't need any border as we don't have anything to separate the
|
||||
// page contents from.
|
||||
SetInternalBorder(0);
|
||||
|
||||
// No effects by default.
|
||||
m_showEffect =
|
||||
m_hideEffect = wxSHOW_EFFECT_NONE;
|
||||
|
||||
m_showTimeout =
|
||||
m_hideTimeout = 0;
|
||||
}
|
||||
void Init();
|
||||
|
||||
wxShowEffect m_showEffect,
|
||||
m_hideEffect;
|
||||
|
|
Loading…
Reference in a new issue