Skip to content

Commit d140bea

Browse files
committed
Fix messagebox colors
1 parent fe58f5c commit d140bea

File tree

6 files changed

+37
-17
lines changed

6 files changed

+37
-17
lines changed

.claude/settings.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@
2424
"Bash(then echo:*)",
2525
"Bash(for class:*)",
2626
"Bash(do echo:*)",
27-
"Bash(grep -r \"class.*$class\" \"C:\\\\Users\\\\luc\\\\Documents\\\\GitHub\\\\ESP3D-WEBUI\\\\src\" --include=\"*.js\")"
27+
"Bash(grep -r \"class.*$class\" \"C:\\\\Users\\\\luc\\\\Documents\\\\GitHub\\\\ESP3D-WEBUI\\\\src\" --include=\"*.js\")",
28+
"Bash(grep -r \"ScanApList\\\\|ScanAp\" /c/Users/luc/Documents/GitHub/ESP3D-WEBUI/src --include=*.js --include=*.jsx --include=*.ts --include=*.tsx)",
29+
"Bash(grep -r \"S45|S48|S49|S50|S51\" /c/Users/luc/Documents/GitHub/ESP3D-WEBUI/src/targets/translations/ --include=*.json)",
30+
"Bash(xargs cat:*)",
31+
"Bash(grep -r \"extra.*scan\\\\|extra=.*scan\" /c/Users/luc/Documents/GitHub/ESP3D-WEBUI/src --include=*.js --include=*.jsx)",
32+
"Bash(grep -r \"ssid_sta\\\\|extra.*scan\" /c/Users/luc/Documents/GitHub/ESP3D-WEBUI/src --include=*.json --include=*.js)",
33+
"Bash(xargs grep:*)",
34+
"Bash(grep -r ssid_sta /c/Users/luc/Documents/GitHub/ESP3D-WEBUI/config --include=*.json)"
2835
]
2936
}
3037
}

src/components/Controls/Fields/Input.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ const Input = ({
305305
cb: refreshList,
306306
text: T("S50"),
307307
noclose: true,
308+
class: "btn-primary",
308309
},
309310
icon: <Search />,
310311
id: modalId,

src/components/Controls/ScanAp.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { useHttpQueue } from "../../hooks"
2323
import { espHttpURL } from "../../components/Helpers"
2424
import { useUiContext, useUiContextFn } from "../../contexts"
2525
import { T } from "./../Translations"
26-
import { Lock, CheckCircle } from "preact-feather"
26+
import { Lock, Wifi } from "preact-feather"
2727

2828
const ScanApList = ({ id, setValue, refreshfn }) => {
2929
const { modals, toasts } = useUiContext()
@@ -90,8 +90,9 @@ const ScanApList = ({ id, setValue, refreshfn }) => {
9090
<ButtonImg
9191
m2
9292
ltooltip
93+
className="btn-scan-wifi"
9394
data-tooltip={T("S51")}
94-
icon={<CheckCircle />}
95+
icon={<Wifi class="scan-wifi-icon" />}
9596
onClick={() => {
9697
useUiContextFn.haptic()
9798
setValue(SSID)

src/components/Controls/ScanExtensions.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,17 @@ const ScanExtensionsList = ({ id, refreshfn, extensionCheckConfig, addedPaths =
269269
<tr key={e.id}>
270270
<td>
271271
{showCheckbox ? (
272-
<input
273-
type="checkbox"
274-
class="form-checkbox"
275-
checked={selectedIds.has(e.id)}
276-
onChange={() => {
277-
useUiContextFn.haptic()
278-
toggleSelected(e.id)
279-
}}
280-
/>
272+
<label class="form-switch">
273+
<input
274+
type="checkbox"
275+
checked={selectedIds.has(e.id)}
276+
onChange={() => {
277+
useUiContextFn.haptic()
278+
toggleSelected(e.id)
279+
}}
280+
/>
281+
<i class="form-icon" />
282+
</label>
281283
) : (
282284
<span />
283285
)}

src/style/index.scss

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,11 @@ code {
11121112
&.table-hover tbody tr:hover { background: var(--bg-hover); }
11131113
&.table-scroll { display: block; overflow-x: auto; padding-bottom: 0.75rem; white-space: nowrap; }
11141114
}
1115+
.table thead th { color: var(--txt-dim); font-weight: 600; }
1116+
.table tbody td { color: var(--txt-bright) !important; }
1117+
.btn-scan-wifi { color: var(--warn); background: rgba(255,179,0,0.08); border-color: rgba(255,179,0,0.4); }
1118+
.btn-scan-wifi:hover { background: rgba(255,179,0,0.16); border-color: var(--warn); filter: none; box-shadow: none; }
1119+
.btn-scan-wifi .scan-wifi-icon { color: var(--warn); stroke: var(--warn); }
11151120

11161121
// ═══════════════════════════════════════════════════════════════════════════════
11171122
// APP LAYOUT
@@ -1179,16 +1184,18 @@ code {
11791184
// ═══════════════════════════════════════════════════════════════════════════════
11801185
.temp-grid {
11811186
display: grid;
1182-
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
1187+
grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
11831188
gap: 4px;
1184-
padding: 0.2rem;
1189+
padding: 0.1rem;
11851190
}
1191+
#temperaturesPanel .panel-body { padding: 0.2rem; padding-bottom: 0; }
11861192
.temp-cell {
11871193
background: var(--bg-base);
11881194
border: 1px solid var(--border-dim);
11891195
border-radius: var(--r);
1190-
padding: 0.65rem 0.8rem 0.55rem;
1196+
padding: 0.65rem 0.55rem 0.55rem;
11911197
position: relative;
1198+
min-width: 175px;
11921199
transition: border-color var(--t), box-shadow var(--t);
11931200
}
11941201
.temp-cell:hover { border-color: var(--a-dim); box-shadow: 0 0 10px var(--a-g); }
@@ -1251,7 +1258,8 @@ code {
12511258

12521259
.temp-input-wrap {
12531260
display: flex; align-items: stretch; gap: 4px;
1254-
margin-top: 0.4rem;
1261+
margin: 0.4rem auto 0;
1262+
width: fit-content;
12551263
}
12561264
.temp-input {
12571265
font-family: var(--font-chart);

src/tabs/interface/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,12 @@ const InterfaceTab = () => {
355355
button1: {
356356
text: T("S50"),
357357
noclose: true,
358+
class: "btn-primary",
358359
cb: () => scanExtensionsRef.current?.(),
359360
},
360361
button2: {
361362
text: T("S254"),
363+
class: "btn-warning",
362364
cb: () => {
363365
const ref = addSelectedRef?.current
364366
if (!ref) return
@@ -398,7 +400,6 @@ const InterfaceTab = () => {
398400
const idxField = item.value?.find((s) => s.name === "index")
399401
if (idxField) idxField.value = i
400402
})
401-
extraEntry.nb = list.length
402403
extraEntry.hasmodified = true
403404
const panelsOrderEl = useUiContextFn.getElement("panelsorder", settings)
404405
if (panelsOrderEl && Array.isArray(panelsOrderEl.value)) {

0 commit comments

Comments
 (0)