FIX: dark mode display in dialog

jira:STUDIO-10811

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I174541d97efe8d0beea4913d23375f82b104b7a2
(cherry picked from commit 7bcc83682e314ea12c5c5229f394015d61cff345)
This commit is contained in:
xun.zhang
2025-03-12 11:01:08 +08:00
committed by Noisyfox
parent 959f6fe87c
commit a86bbf6cb4
3 changed files with 30 additions and 3 deletions

View File

@@ -112,6 +112,15 @@
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 {
color: red;
font-size: 12px;
@@ -155,6 +164,12 @@
background-color: #eeeeee;
}
body.dark-mode button.btn-cancel {
background-color: #2d2d31;
color: #e0e0e0;
border: 1px solid #e0e0e0;
}
select {
padding: 6px 9px;
border: 1px solid #dbdbdb;
@@ -210,6 +225,17 @@
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 {
background: inherit;
border-color: #555;
@@ -326,7 +352,7 @@
type="number"
step="0.1"
id="multiplierInput"
style="width:70px;"
class="multiplier-input"
value="1.00"
oninput="onMultiplierChange()"
/>
@@ -626,7 +652,7 @@
input.style.color = "red";
hasException = true;
} else {
input.style.color = "black";
input.style.removeProperty("color");
}
}
}