Skip to content

Commit cc83235

Browse files
committed
Merge branch 'v2' of https://github.com/Geoxor/Amethyst into v2
2 parents 7f5a951 + 06b822e commit cc83235

3 files changed

Lines changed: 41 additions & 42 deletions

File tree

src/renderer/App.vue

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ import CoverArt from "@/components/CoverArt.vue";
55
66
import { InspectorBar, useInspector } from "@/components/Inspector";
77
import NavigationBar from "@/components/NavigationBar.vue";
8-
import NavigationButton from "@/components/NavigationButton.vue";
98
import PlaybackControls from "@/components/v2/PlaybackControls.vue";
109
import TopBar from "@/components/TopBar.vue";
1110
import { SpectrumAnalyzer } from "@/components/visualizers/SpectrumAnalyzer";
1211
import Vectorscope from "@/components/visualizers/VectorscopeAnalyzer.vue";
13-
import { AdjustIcon, AmethystIcon, CompassIcon, HeartIcon, ListIcon, PlaylistIcon, SettingsIcon } from "@/icons";
12+
import { AmethystIcon} from "@/icons";
1413
import { Track } from "@/logic/track";
1514
import { onMounted, onUnmounted, ref } from "vue";
1615
import LoudnessMeter from "./components/visualizers/LoudnessMeter.vue";
@@ -127,43 +126,7 @@ onUnmounted(() => {
127126
</div>
128127
<div class="h-full whitespace-nowrap flex flex-col justify-between overflow-hidden">
129128
<div class="flex-1 flex h-full max-h-full relative overflow-hidden">
130-
<navigation-bar v-if="amethyst.getCurrentPlatform() !== 'mobile'">
131-
<navigation-button
132-
:icon="ListIcon"
133-
route-name="queue"
134-
/>
135-
136-
<navigation-button
137-
:icon="CompassIcon"
138-
route-name="discover"
139-
/>
140-
141-
<navigation-button
142-
:icon="PlaylistIcon"
143-
route-name="playlists"
144-
/>
145-
146-
<navigation-button
147-
:icon="HeartIcon"
148-
route-name="favorites"
149-
/>
150-
151-
<navigation-button
152-
:icon="AdjustIcon"
153-
route-name="node-editor"
154-
/>
155-
156-
<navigation-button
157-
:icon="SettingsIcon"
158-
route-name="settings"
159-
/>
160-
161-
<navigation-button
162-
v-if="amethyst.IS_DEV"
163-
:icon="AmethystIcon"
164-
route-name="playground"
165-
/>
166-
</navigation-bar>
129+
<navigation-bar v-if="amethyst.getCurrentPlatform() !== 'mobile'" />
167130

168131
<div class="flex flex-col w-full">
169132
<router-view class="overflow-hidden disable-select no-drag" />
Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,45 @@
11
<script setup lang="ts">
2-
2+
import NavigationButton from "@/components/NavigationButton.vue";
3+
import { AdjustIcon, AmethystIcon, CompassIcon, HeartIcon, ListIcon, PlaylistIcon, SettingsIcon } from "@/icons";
4+
import { amethyst } from "@/amethyst";
35
</script>
46

57
<template>
68
<div class="flex flex-col h-full mt-2">
7-
<slot />
9+
<navigation-button
10+
:icon="ListIcon"
11+
route-name="queue"
12+
/>
13+
14+
<!-- <navigation-button
15+
:icon="CompassIcon"
16+
route-name="discover"
17+
/> -->
18+
19+
<!-- <navigation-button
20+
:icon="PlaylistIcon"
21+
route-name="playlists"
22+
/> -->
23+
24+
<!-- <navigation-button
25+
:icon="HeartIcon"
26+
route-name="favorites"
27+
/> -->
28+
29+
<navigation-button
30+
:icon="AdjustIcon"
31+
route-name="node-editor"
32+
/>
33+
34+
<navigation-button
35+
:icon="SettingsIcon"
36+
route-name="settings"
37+
/>
38+
39+
<navigation-button
40+
v-if="amethyst.IS_DEV"
41+
:icon="AmethystIcon"
42+
route-name="playground"
43+
/>
844
</div>
945
</template>

src/renderer/components/PlaybackButtons.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const isCurrentTrackFavorited = computed(() => amethyst.player.getCurrentTrack()
7373
@click="amethyst.player.previous()"
7474
/>
7575
<div
76-
class="flex items-center bg-playback-controls-text text-white rounded-full p-2 hover:bg-accent"
76+
class="flex items-center bg-playback-controls-text text-white rounded-full p-2 hover:bg-accent hover:text-playback-controls-text"
7777
@click="amethyst.player.isPlaying.value ? amethyst.player.pause() : amethyst.player.play()"
7878
>
7979
<PauseIcon

0 commit comments

Comments
 (0)