FIX: dark mode display in dialog

jira:STUDIO-10811

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I174541d97efe8d0beea4913d23375f82b104b7a2
This commit is contained in:
xun.zhang 2025-03-12 11:01:08 +08:00 committed by lane.wei
parent 05cc1ae808
commit 7bcc83682e
3 changed files with 30 additions and 3 deletions

View File

@ -112,6 +112,15 @@
margin: 0; margin: 0;
} }
input[type="number"].multiplier-input {
width: 60px;
}
body.dark-mode input[type="number"].multiplier-input {
width: 60px;
background-color: #4c4c55;
color: white;
}
.warning-text { .warning-text {
color: red; color: red;
font-size: 12px; font-size: 12px;
@ -155,6 +164,12 @@
background-color: #eeeeee; background-color: #eeeeee;
} }
body.dark-mode button.btn-cancel {
background-color: #2d2d31;
color: #e0e0e0;
border: 1px solid #e0e0e0;
}
select { select {
padding: 6px 9px; padding: 6px 9px;
border: 1px solid #dbdbdb; border: 1px solid #dbdbdb;
@ -210,6 +225,17 @@
border-color: #4c4c55; border-color: #4c4c55;
} }
body.dark-mode input[type="number"].table-input {
width: 30px;
height: 20px;
text-align: center;
-moz-appearance: textfield;
appearance: textfield;
border: none;
color: #e0e0e0;
background-color: inherit;
}
body.dark-mode th, body.dark-mode td { body.dark-mode th, body.dark-mode td {
background: inherit; background: inherit;
border-color: #555; border-color: #555;
@ -326,7 +352,7 @@
type="number" type="number"
step="0.1" step="0.1"
id="multiplierInput" id="multiplierInput"
style="width:70px;" class="multiplier-input"
value="1.00" value="1.00"
oninput="onMultiplierChange()" oninput="onMultiplierChange()"
/> />
@ -626,7 +652,7 @@
input.style.color = "red"; input.style.color = "red";
hasException = true; hasException = true;
} else { } else {
input.style.color = "black"; input.style.removeProperty("color");
} }
} }
} }

View File

@ -246,7 +246,7 @@ FilamentMapDialog::FilamentMapDialog(wxWindow *parent,
Fit(); Fit();
CenterOnParent(); CenterOnParent();
GUI::wxGetApp().UpdateDarkUIWin(this); wxGetApp().UpdateDlgDarkUI(this);
} }
FilamentMapMode FilamentMapDialog::get_mode() FilamentMapMode FilamentMapDialog::get_mode()

View File

@ -147,6 +147,7 @@ WipingDialog::WipingDialog(wxWindow* parent, const std::vector<std::vector<int>>
main_sizer->SetSizeHints(this); main_sizer->SetSizeHints(this);
main_sizer->Fit(this); main_sizer->Fit(this);
CenterOnParent(); CenterOnParent();
wxGetApp().UpdateDlgDarkUI(this);
//m_webview->Bind(wxEVT_WEBVIEW_NAVIGATED, [this](auto& evt) { //m_webview->Bind(wxEVT_WEBVIEW_NAVIGATED, [this](auto& evt) {
// auto table_obj_str = BuildTableObjStr(); // auto table_obj_str = BuildTableObjStr();