Skip to content

Commit

Permalink
move zoom options in view category
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoxor committed Jun 25, 2023
1 parent 181ee12 commit 3d685a5
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions src/renderer/components/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,31 +78,6 @@ const commandOrControlSymbol = computed(() => amethyst.getCurrentOperatingSystem
/>
</Menu>
<Menu title="Utility">
<menu-option
v-if="amethyst.getCurrentPlatform() === 'desktop'"
title="Zoom in"
:icon="ZoomInIcon"
:shortcuts="[commandOrControlSymbol, '+']"
@click="amethyst.zoom('in')"
/>
<menu-option
v-if="amethyst.getCurrentPlatform() === 'desktop'"
title="Zoom out"
:icon="ZoomOutIcon"
:shortcuts="[commandOrControlSymbol, '-']"
@click="amethyst.zoom('out')"
/>
<menu-option
v-if="amethyst.getCurrentPlatform() === 'desktop'"
title="Reset zoom"
:icon="ResizeIcon"
:shortcuts="[commandOrControlSymbol, '0']"
@click="amethyst.zoom('reset')"
/>
<menu-splitter
v-if="amethyst.getCurrentPlatform() === 'desktop'"
/>

<menu-option
:shortcuts="[commandOrControlSymbol, 'SHIFT', 'X']"
title="Clear queue"
Expand Down Expand Up @@ -140,6 +115,30 @@ const commandOrControlSymbol = computed(() => amethyst.getCurrentOperatingSystem
/>
</Menu>
<Menu title="View">
<menu-option
v-if="amethyst.getCurrentPlatform() === 'desktop'"
title="Zoom in"
:icon="ZoomInIcon"
:shortcuts="[commandOrControlSymbol, '+']"
@click="amethyst.zoom('in')"
/>
<menu-option
v-if="amethyst.getCurrentPlatform() === 'desktop'"
title="Zoom out"
:icon="ZoomOutIcon"
:shortcuts="[commandOrControlSymbol, '-']"
@click="amethyst.zoom('out')"
/>
<menu-option
v-if="amethyst.getCurrentPlatform() === 'desktop'"
title="Reset zoom"
:icon="ResizeIcon"
:shortcuts="[commandOrControlSymbol, '0']"
@click="amethyst.zoom('reset')"
/>
<menu-splitter
v-if="amethyst.getCurrentPlatform() === 'desktop'"
/>
<menu-option
title="Settings"
:icon="SettingsIcon"
Expand Down

0 comments on commit 3d685a5

Please sign in to comment.