Added another window from the press of the button

This commit is contained in:
Omer
2019-11-25 02:00:05 +02:00
parent b0135d12e8
commit fc0c83b323
3 changed files with 49 additions and 1 deletions

View File

@@ -22,6 +22,11 @@ export default new Router({
path: '/settings',
name: 'Settings',
component: lazyLoad('Settings')
},
{
path: '/picker',
name: 'Picker',
component: lazyLoad('ColorPicker')
}
]
})

View File

@@ -6,7 +6,7 @@
<CVrangeSlider v-model="value.saturation" name="Saturation" :min="0" :max="255" @input="handleData('saturation')" :disabled="isAutomaticHSV"/>
<CVrangeSlider v-model="value.value" name="Value" :min="0" :max="255" @input="handleData('value')" :disabled="isAutomaticHSV"/>
<v-divider color="darkgray "/>
<v-btn style="margin: 20px;" tile color="#4baf62" :disabled="isManualHSV">
<v-btn style="margin: 20px;" tile color="#4baf62" :disabled="isManualHSV" @click="openPickerTab">
<v-icon>colorize</v-icon>
Colorpick Calibration
</v-btn>
@@ -19,6 +19,7 @@
<script>
import CVrangeSlider from '../../components/cv-range-slider'
import CVswitch from '../../components/cv-switch'
export default {
name: 'Threshold',
props:['value'],
@@ -49,6 +50,11 @@ import CVswitch from '../../components/cv-switch'
},
},
methods:{
openPickerTab()
{
console.log("opening picker tab");
this.$router.push("picker");
},
handleData(val){
this.handleInput(val,this.value[val]);
this.$emit('update')

View File

@@ -0,0 +1,37 @@
<template>
<div>
</div>
</template>
<script>
export default {
name: 'ColorPicker',
components: {
},
methods: {
}
}
</script>
<style scoped>
.colsClass {
padding: 0 !important;
}
.videoClass {
text-align: center;
}
.videoClass img {
height: auto !important;
width: 70%;
vertical-align: middle;
}
#Point {
padding-top: 5px;
text-align: center;
color: #f4f4f4;
}
</style>