Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node_modules
dist
dist-ssr
*.local
.vite/*

# Editor directories and files
.vscode/*
Expand Down
95 changes: 47 additions & 48 deletions client/src/components/LayerTypeConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,53 @@ export default defineComponent({
</span>
</v-col>
</v-row>
<v-row
v-if="actionItemVisible.has('selectColor')"
dense
align="center"
justify="center"
>
<v-col cols="2">
<v-tooltip text="Selected Color">
<template #activator="{ props }">
<v-icon
class="pl-3"
v-bind="props"
>
mdi-format-color-highlight
</v-icon>
</template>
</v-tooltip>
</v-col>
<v-col cols="8">
<v-icon @click="updateLayerTypeField('selectColor', !valueDisplayCheckbox('selectColor'))">
{{
valueDisplayCheckbox('selectColor') ? 'mdi-checkbox-marked' : 'mdi-checkbox-blank-outline' }}
</v-icon>
<span class="pl-2">Select Color</span>
</v-col>
<v-col>
<v-menu
:close-on-content-click="false"
offset-y
>
<template #activator="{ props }">
<div
v-if="currentLayerType && currentLayerType.selectColor"
class="color-square"
:style="{ backgroundColor: currentLayerType.selectColor }"
v-bind="props"
/>
</template>
<v-color-picker
v-if="currentLayerType"
mode="hex"
:model-value="currentLayerType.selectColor"
@update:model-value="updateSelectColor('selectColor', $event)"
/>
</v-menu>
</v-col>
</v-row>
<v-row
v-if="actionItemVisible.has('hoverable')"
dense
Expand Down Expand Up @@ -429,54 +476,6 @@ export default defineComponent({
/>
</v-col>
</v-row>

<v-row
v-if="actionItemVisible.has('selectColor')"
dense
align="center"
justify="center"
>
<v-col cols="2">
<v-tooltip text="Selected Color">
<template #activator="{ props }">
<v-icon
class="pl-3"
v-bind="props"
>
mdi-format-color-highlight
</v-icon>
</template>
</v-tooltip>
</v-col>
<v-col cols="8">
<v-icon @click="updateLayerTypeField('selectColor', !valueDisplayCheckbox('selectColor'))">
{{
valueDisplayCheckbox('selectColor') ? 'mdi-checkbox-marked' : 'mdi-checkbox-blank-outline' }}
</v-icon>
<span class="pl-2">Select Color</span>
</v-col>
<v-col>
<v-menu
:close-on-content-click="false"
offset-y
>
<template #activator="{ props }">
<div
v-if="currentLayerType && currentLayerType.selectColor"
class="color-square"
:style="{ backgroundColor: currentLayerType.selectColor }"
v-bind="props"
/>
</template>
<v-color-picker
v-if="currentLayerType"
mode="hex"
:model-value="currentLayerType.selectColor"
@update:model-value="updateSelectColor('selectColor', $event)"
/>
</v-menu>
</v-col>
</v-row>
<v-row
v-if="actionItemVisible.has('color')"
dense
Expand Down
Loading