Skip to content

Commit

Permalink
Merge pull request #15 from uramakilab/fix/ui-fixes
Browse files Browse the repository at this point in the history
Fix/UI fixes
  • Loading branch information
Natanco1 authored Nov 29, 2023
2 parents dc25e56 + 646c24d commit a2ee807
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
30 changes: 16 additions & 14 deletions src/components/calibration/MiscConfigCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
</v-card-title>
<div class="custom-outline">
Control:
<v-checkbox v-model="isControlled" label="Controlled Calibration" color="black"></v-checkbox>
<v-checkbox v-model="customColors" label="Use Custom Colors" color="black"></v-checkbox>
</div>
<div class="custom-outline">
Background Color:
<v-color-picker v-model="backgroundColor" hide-inputs></v-color-picker>
</div>
<div class="custom-outline">
Point Color:
<v-color-picker v-model="pointColor" hide-inputs></v-color-picker>
<div v-if="customColors">
<div class="custom-outline">
Background Color:
<v-color-picker v-model="backgroundColor" hide-inputs></v-color-picker>
</div>
<div class="custom-outline">
Point Color:
<v-color-picker v-model="pointColor" hide-inputs></v-color-picker>
</div>
</div>
</v-card>
</v-col>
Expand All @@ -28,7 +30,7 @@ export default {
return {
backgroundColor: '#FFFFFFFF',
pointColor: '#000000FF',
isControlled: true,
customColors: false,
}
},
watch: {
Expand All @@ -38,8 +40,8 @@ export default {
pointColor(value) {
this.updatePointColor(value)
},
isControlled(value) {
this.updateControlled(value)
customColors(value) {
this.updateCustomColors(value)
},
},
methods: {
Expand All @@ -49,9 +51,9 @@ export default {
updatePointColor(value) {
this.$store.commit('setPointColor', value);
},
updateControlled(value) {
this.$store.commit('setControlled', value)
},
updateCustomColors(value) {
this.$store.commit('setCustomColors', value);
}
}
}
</script>
Expand Down
7 changes: 3 additions & 4 deletions src/store/calibration.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
offset: 50,
backgroundColor: '#FFFFFFFF',
pointColor: '#000000FF',
isControlled: true,
customColors: false,
blinkFilter: true,
leftEyeTreshold: 5,
rightEyeTreshold: 5,
Expand Down Expand Up @@ -39,8 +39,8 @@ export default {
setPointColor(state, newPointColor) {
state.pointColor = newPointColor
},
setControlled(state, newControlled) {
state.isControlled = newControlled
setCustomColors(state, newCustomColors) {
state.customColors = newCustomColors
},
setBlinkFilter(state, newBlinkFilter) {
state.blinkFilter = newBlinkFilter
Expand All @@ -53,7 +53,6 @@ export default {
},
setIndex(state, newIndex) {
state.index = newIndex
console.log(`index: ${state.index}`)
},
},
actions: {
Expand Down
1 change: 0 additions & 1 deletion src/views/DoubleCalibrationRecord.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export default {
} else {
const prediction = { leftIris: leftIris[0], rightIris: rightIris[0] }
point.data.push(prediction)
console.log(point.data.length)
a++
}
}
Expand Down

0 comments on commit a2ee807

Please sign in to comment.