Skip to content

Commit

Permalink
toggle icon bar
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis committed Jan 29, 2024
1 parent 6635f55 commit 62c3a35
Showing 1 changed file with 30 additions and 12 deletions.
42 changes: 30 additions & 12 deletions client/src/views/Spectrogram.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,36 @@ export default defineComponent({
<span v-if="freqRef >= 0">{{ freqRef.toFixed(2) }}KHz</span>
</div>
</v-col>
<v-spacer />
<v-tooltip bottom>
<template #activator="{ props:subProps }">
<v-icon
v-bind="subProps"
size="35"
class="mr-5 mt-5"

:color="gridEnabled ? 'blue' : ''"
@click="gridEnabled = !gridEnabled"
>
mdi-grid
</v-icon>
</template>
<span> Turn Legend Grid On/Off</span>
</v-tooltip>
<v-tooltip bottom>
<template #activator="{ props:subProps }">
<v-icon
v-bind="subProps"
size="35"
class="mr-5 mt-5"
:color="compressed ? 'blue' : ''"
@click="compressed = !compressed"
>
mdi-calendar-collapse-horizontal
</v-icon>
</template>
<span> Toggle Compressed View</span>
</v-tooltip>
</v-row>
</v-toolbar>
<spectrogram-viewer
Expand Down Expand Up @@ -141,18 +171,6 @@ export default defineComponent({
/>
</v-col>
<v-col style="max-width:300px">
<v-checkbox
v-model="compressed"
label="Compressed"
density="compact"
class="ma-0 pa-0"
/>
<v-checkbox
v-model="gridEnabled"
label="Grid"
density="compact"
class="ma-0 pa-0"
/>
<annotation-list
:annotations="annotations"
:selected-id="selectedId"
Expand Down

0 comments on commit 62c3a35

Please sign in to comment.