From c5bc637120d33b1ee899c7d81ce636ef49e4597c Mon Sep 17 00:00:00 2001 From: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com> Date: Sat, 22 Jul 2023 04:00:50 -0400 Subject: [PATCH] dont open image in color picking mode --- .../src/components/app/photon-camera-stream.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/photon-client/src/components/app/photon-camera-stream.vue b/photon-client/src/components/app/photon-camera-stream.vue index 95d29e941a..104a48097e 100644 --- a/photon-client/src/components/app/photon-camera-stream.vue +++ b/photon-client/src/components/app/photon-camera-stream.vue @@ -3,6 +3,7 @@ import { computed } from "vue"; import { useCameraSettingsStore } from "@/stores/settings/CameraSettingsStore"; import { useStateStore } from "@/stores/StateStore"; import loadingImage from "@/assets/images/loading.svg"; +import eyedropperCursor from "@/assets/images/eyedropper.svg"; import type { StyleValue } from "vue/types/jsx"; const props = defineProps<{ @@ -22,17 +23,17 @@ const src = computed(() => { const alt = computed(() => `${props.streamType} Stream View`); const style = computed(() => { - if(src.value !== loadingImage) { - return { - cursor: "pointer" - }; + if(useStateStore().colorPickingMode) { + return { cursor: "crosshair" }; + } else if(src.value !== loadingImage) { + return { cursor: "pointer" }; } return {}; }); const handleClick = () => { - if(src.value !== loadingImage) { + if(!useStateStore().colorPickingMode && src.value !== loadingImage) { window.open(src.value); } };