|
69 | 69 | let showFixtureConfiguration = false; |
70 | 70 | let showSACNConfiguration = false; |
71 | 71 | let showSettingsMenu = false; |
| 72 | + let showDebugSection = false; |
72 | 73 | let hideAllSettings = false; |
73 | 74 |
|
74 | 75 | let fixturesToCalibrate = writable<string[]>([]); |
|
1033 | 1034 | <button on:click={removeCalibrationPoint}> |
1034 | 1035 | Remove Calibration Point |
1035 | 1036 | </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> |
1041 | 1037 | <label class="checkbox-label"> |
1042 | 1038 | <input type="checkbox" bind:checked={showCalibrationPoints} /> |
1043 | 1039 | Show Calibration Points |
1044 | 1040 | </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> |
1049 | 1055 | </div> |
1050 | 1056 | <Info |
1051 | 1057 | bind:addingCalibrationPoint |
|
1236 | 1242 | align-items: center; |
1237 | 1243 | gap: 8px; |
1238 | 1244 | 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; |
1239 | 1307 | } |
1240 | 1308 |
|
1241 | 1309 | .settings-separator { |
|
0 commit comments