Skip to content

Commit 3ac4fa9

Browse files
committed
Move settings to debug section
1 parent a239e3e commit 3ac4fa9

File tree

1 file changed

+77
-9
lines changed

1 file changed

+77
-9
lines changed

frontend/src/App.svelte

Lines changed: 77 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
let showFixtureConfiguration = false;
7070
let showSACNConfiguration = false;
7171
let showSettingsMenu = false;
72+
let showDebugSection = false;
7273
let hideAllSettings = false;
7374
7475
let fixturesToCalibrate = writable<string[]>([]);
@@ -1033,19 +1034,24 @@
10331034
<button on:click={removeCalibrationPoint}>
10341035
Remove Calibration Point
10351036
</button>
1036-
<div class="settings-separator"></div>
1037-
<label class="checkbox-label">
1038-
<input type="checkbox" bind:checked={showMousePosition} />
1039-
Show Mouse Position
1040-
</label>
10411037
<label class="checkbox-label">
10421038
<input type="checkbox" bind:checked={showCalibrationPoints} />
10431039
Show Calibration Points
10441040
</label>
1045-
<label class="checkbox-label">
1046-
<input type="checkbox" bind:checked={showTriangles} />
1047-
Draw Triangles
1048-
</label>
1041+
<div class="settings-separator"></div>
1042+
<details class="debug-details" bind:open={showDebugSection}>
1043+
<summary>Debug</summary>
1044+
<div class="debug-section">
1045+
<label class="checkbox-label">
1046+
<input type="checkbox" bind:checked={showMousePosition} />
1047+
Show Mouse Position
1048+
</label>
1049+
<label class="checkbox-label">
1050+
<input type="checkbox" bind:checked={showTriangles} />
1051+
Draw Triangles
1052+
</label>
1053+
</div>
1054+
</details>
10491055
</div>
10501056
<Info
10511057
bind:addingCalibrationPoint
@@ -1236,6 +1242,68 @@
12361242
align-items: center;
12371243
gap: 8px;
12381244
cursor: pointer;
1245+
padding: 8px 12px;
1246+
font-size: 14px;
1247+
font-weight: 500;
1248+
color: var(--text-primary);
1249+
background-color: var(--btn-default-bg);
1250+
border: 1px solid var(--border-default);
1251+
border-radius: var(--radius-md);
1252+
box-shadow: var(--shadow-sm);
1253+
transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
1254+
}
1255+
1256+
.checkbox-label:hover {
1257+
background-color: var(--btn-default-hover);
1258+
border-color: #484f58;
1259+
box-shadow: 0 3px 10px rgba(0,0,0,0.4);
1260+
}
1261+
1262+
.debug-details {
1263+
width: 100%;
1264+
}
1265+
1266+
.debug-details summary {
1267+
padding: 8px 12px;
1268+
font-size: 14px;
1269+
font-weight: 500;
1270+
color: var(--text-primary);
1271+
background-color: var(--btn-default-bg);
1272+
border: 1px solid var(--border-default);
1273+
border-radius: var(--radius-md);
1274+
box-shadow: var(--shadow-sm);
1275+
cursor: pointer;
1276+
list-style: none;
1277+
transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
1278+
}
1279+
1280+
.debug-details summary::-webkit-details-marker {
1281+
display: none;
1282+
}
1283+
1284+
.debug-details summary::before {
1285+
content: "";
1286+
display: inline-block;
1287+
margin-right: 8px;
1288+
font-size: 10px;
1289+
transition: transform 0.15s ease;
1290+
}
1291+
1292+
.debug-details[open] summary::before {
1293+
transform: rotate(90deg);
1294+
}
1295+
1296+
.debug-details summary:hover {
1297+
background-color: var(--btn-default-hover);
1298+
border-color: #484f58;
1299+
box-shadow: 0 3px 10px rgba(0,0,0,0.4);
1300+
}
1301+
1302+
.debug-section {
1303+
display: flex;
1304+
flex-direction: column;
1305+
gap: 10px;
1306+
margin-top: 10px;
12391307
}
12401308
12411309
.settings-separator {

0 commit comments

Comments
 (0)