mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 12:17:54 -06:00
FIX: [STUDIO-1752] remove background of tips_arrow
Change-Id: I5634e33ea320fc8e5fe9cc9d2b641e4598ce133d
This commit is contained in:
parent
41d08e0924
commit
3ee83cd3db
3 changed files with 6 additions and 14 deletions
|
@ -134,7 +134,7 @@ void ParamsPanel::Highlighter::set_timer_owner(wxEvtHandler *owner, int timerid
|
|||
m_timer.SetOwner(owner, timerid);
|
||||
}
|
||||
|
||||
void ParamsPanel::Highlighter::init(std::pair<wxStaticBitmap *, bool *> params, wxWindow *parent)
|
||||
void ParamsPanel::Highlighter::init(std::pair<wxWindow *, bool *> params, wxWindow *parent)
|
||||
{
|
||||
if (m_timer.IsRunning()) invalidate();
|
||||
if (!params.first || !params.second) return;
|
||||
|
@ -185,7 +185,6 @@ void ParamsPanel::Highlighter::blink()
|
|||
ParamsPanel::ParamsPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name )
|
||||
: wxPanel( parent, id, pos, size, style, name )
|
||||
{
|
||||
init_bitmaps();
|
||||
// BBS: new layout
|
||||
SetBackgroundColour(*wxWHITE);
|
||||
#if __WXOSX__
|
||||
|
@ -223,7 +222,7 @@ ParamsPanel::ParamsPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, c
|
|||
m_mode_region->SetMaxSize({em_unit(this) * 12, -1});
|
||||
m_mode_region->SetLabels(_L("Global"), _L("Objects"));
|
||||
//m_mode_region->GetSize(&width, &height);
|
||||
m_tips_arrow = new wxStaticBitmap(m_top_panel, wxID_ANY, m_tips_arrow_icon);
|
||||
m_tips_arrow = new ScalableButton(m_top_panel, wxID_ANY, "tips_arrow");
|
||||
m_tips_arrow->Hide();
|
||||
|
||||
m_title_view = new Label(m_top_panel, _L("Advance"));
|
||||
|
@ -348,11 +347,6 @@ ParamsPanel::ParamsPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, c
|
|||
//m_import_from_file->Bind(wxEVT_BUTTON, [this](wxCommandEvent &) { wxGetApp().mainframe->load_config_file(); });
|
||||
}
|
||||
|
||||
void ParamsPanel::init_bitmaps()
|
||||
{
|
||||
m_tips_arrow_icon = create_scaled_bitmap("tips_arrow", nullptr, 24);
|
||||
}
|
||||
|
||||
void ParamsPanel::create_layout()
|
||||
{
|
||||
#ifdef __WINDOWS__
|
||||
|
@ -640,6 +634,7 @@ void ParamsPanel::msw_rescale()
|
|||
if (m_setting_btn) m_setting_btn->msw_rescale();
|
||||
if (m_search_btn) m_search_btn->msw_rescale();
|
||||
if (m_compare_btn) m_compare_btn->msw_rescale();
|
||||
if (m_tips_arrow) m_tips_arrow->msw_rescale();
|
||||
m_left_sizer->SetMinSize(wxSize(40 * em_unit(this), -1));
|
||||
if (m_mode_sizer)
|
||||
m_mode_sizer->SetMinSize(-1, 3 * em_unit(this));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue