mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-27 09:59:48 -07:00
FIX: DPI scale for TempInput
jira: [STUDIO-12907] Change-Id: I7d9751856cb69babb7093973136bdfd9fad4f501 (cherry picked from commit 03adbd4becf1106d02ac4c8251bc3dbfe84c517d)
This commit is contained in:
parent
03e056e278
commit
95027d72db
1 changed files with 3 additions and 2 deletions
|
|
@ -236,14 +236,14 @@ void TempInput::Warning(bool warn, WarningType type)
|
|||
if (warning_mode) {
|
||||
if (wdialog == nullptr) {
|
||||
wdialog = new PopupWindow(this);
|
||||
wdialog->SetBackgroundColour(wxColour(0xFFFFFF));
|
||||
wdialog->SetBackgroundColour(wxColour("#FFFFFF"));
|
||||
|
||||
wdialog->SetSizeHints(wxDefaultSize, wxDefaultSize);
|
||||
|
||||
wxBoxSizer *sizer_body = new wxBoxSizer(wxVERTICAL);
|
||||
|
||||
auto body = new wxPanel(wdialog, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
|
||||
body->SetBackgroundColour(wxColour(0xFFFFFF));
|
||||
body->SetBackgroundColour(wxColour("#FFFFFF"));
|
||||
|
||||
|
||||
wxBoxSizer *sizer_text;
|
||||
|
|
@ -329,6 +329,7 @@ void TempInput::SetLabelColor(StateColor const &color)
|
|||
void TempInput::Rescale()
|
||||
{
|
||||
if (this->normal_icon.bmp().IsOk()) this->normal_icon.msw_rescale();
|
||||
if (this->actice_icon.bmp().IsOk()) this->actice_icon.msw_rescale();
|
||||
if (this->degree_icon.bmp().IsOk()) this->degree_icon.msw_rescale();
|
||||
if (this->round_scale_hint_icon.bmp().IsOk()) this->round_scale_hint_icon.msw_rescale();
|
||||
messureSize();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue