mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-01 02:41:42 +00:00
* Add UI-side changes for invertable hue slider * Add hue inverted range * Add new slider backgrounds to threshold tab * Run spotless * Updated libpicam.so to artifact built from commit c458bab87740 in that repo on gerth2's pi. * undo the java-side hack since isVCSMSupported is fixed * Hook up hue inversion frontend to backend and UI tweaks * Remove unused .flipped class * Fix hueInverted name in Vue.js store Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com> Co-authored-by: Matt <matthew.morley.ca@gmail.com> Co-authored-by: Chris Gerth <chrisgerth010592@gmail.com>
63 lines
1.3 KiB
Vue
63 lines
1.3 KiB
Vue
<template>
|
|
<div>
|
|
<v-row
|
|
dense
|
|
align="center"
|
|
>
|
|
<v-col :cols="12 - (inputCols || 8)">
|
|
<tooltipped-label
|
|
:tooltip="tooltip"
|
|
:text="name"
|
|
/>
|
|
</v-col>
|
|
<v-col :cols="inputCols || 8">
|
|
<v-radio-group
|
|
v-model="localValue"
|
|
row
|
|
dark
|
|
:mandatory="true"
|
|
>
|
|
<v-radio
|
|
v-for="(radioName,index) in list"
|
|
:key="index"
|
|
color="#ffd843"
|
|
:label="radioName"
|
|
:value="index"
|
|
:disabled="disabled"
|
|
/>
|
|
</v-radio-group>
|
|
</v-col>
|
|
</v-row>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import TooltippedLabel from "./cv-tooltipped-label";
|
|
|
|
export default {
|
|
name: 'Radio',
|
|
components: {
|
|
TooltippedLabel
|
|
},
|
|
// eslint-disable-next-line vue/require-prop-types
|
|
props: ['name', 'value', 'list', 'disabled', 'inputCols', 'tooltip'],
|
|
data() {
|
|
return {}
|
|
},
|
|
computed: {
|
|
localValue: {
|
|
get() {
|
|
return this.value;
|
|
},
|
|
set(value) {
|
|
this.$emit('input', value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="" scoped>
|
|
|
|
</style>
|