feat: crosshair toggle for driver mode (#1822)

closes #1818 

![image of added
toggle](https://github.com/user-attachments/assets/9a8a4f88-3ce2-4fcd-b0ac-61f5b96d26e4)
Here's what the added toggle looks like, I just put in the input
settings. It'll also hide itself when drivermode is off.
This commit is contained in:
Sam Freund
2025-03-19 16:29:59 -05:00
committed by GitHub
parent c2127ac820
commit 3e879cc30f
3 changed files with 16 additions and 4 deletions

View File

@@ -170,5 +170,13 @@ const interactiveCols = computed(() =>
:select-cols="interactiveCols"
@input="(args) => handleStreamResolutionChange(args)"
/>
<pv-switch
v-if="useCameraSettingsStore().isDriverMode"
v-model="useCameraSettingsStore().currentPipelineSettings.crosshair"
label="Crosshair"
:switch-cols="interactiveCols"
tooltip="Enables or disables a crosshair overlay on the camera stream"
@input="(args) => useCameraSettingsStore().changeCurrentPipelineSetting({ crosshair: args }, false)"
/>
</div>
</template>