mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-23 04:45:04 -07:00
FIX:Fixed frequent switching of dark mode causing unclear window display
jira: STUDIO-10618 Change-Id: I49ccbb4e59d9865f0e4f4d9cef96fe1e0d011e7b (cherry picked from commit 184143ead7ec4beceb63076e91cedd955d040308)
This commit is contained in:
parent
01833baa28
commit
d930c7cdc8
3 changed files with 13 additions and 9 deletions
|
|
@ -44,11 +44,11 @@ BaseTransparentDPIFrame::BaseTransparentDPIFrame(
|
|||
image_sizer->AddStretchSpacer();
|
||||
text_sizer->Add(image_sizer);
|
||||
text_sizer->AddSpacer(FromDIP(5));
|
||||
auto finish_text = new Label(this, win_text, LB_AUTO_WRAP);
|
||||
finish_text->SetMinSize(wxSize(FromDIP(win_width - 64), -1));
|
||||
finish_text->SetMaxSize(wxSize(FromDIP(win_width - 64), -1));
|
||||
finish_text->SetForegroundColour(wxColour(255, 255, 255, 255));
|
||||
text_sizer->Add(finish_text, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL, 0);
|
||||
m_finish_text = new Label(this, win_text, LB_AUTO_WRAP);
|
||||
m_finish_text->SetMinSize(wxSize(FromDIP(win_width - 64), -1));
|
||||
m_finish_text->SetMaxSize(wxSize(FromDIP(win_width - 64), -1));
|
||||
m_finish_text->SetForegroundColour(wxColour(255, 255, 255, 255));
|
||||
text_sizer->Add(m_finish_text, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL, 0);
|
||||
text_sizer->AddSpacer(FromDIP(20));
|
||||
m_sizer_main->Add(text_sizer, FromDIP(0), wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxTOP, FromDIP(15));
|
||||
|
||||
|
|
@ -124,6 +124,7 @@ BaseTransparentDPIFrame::~BaseTransparentDPIFrame() {
|
|||
bool BaseTransparentDPIFrame::Show(bool show)
|
||||
{
|
||||
if (show) {
|
||||
m_finish_text->SetForegroundColour(wxColour(255, 255, 255, 255));
|
||||
if (m_refresh_timer) {
|
||||
m_refresh_timer->Start(ANIMATION_REFRESH_INTERVAL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue