diff --git a/src/App.vue b/src/App.vue index 86c928c..2ed9f46 100644 --- a/src/App.vue +++ b/src/App.vue @@ -184,6 +184,12 @@ :class="roamTab === 'comment' ? 'bg-white/15 text-white font-medium' : 'text-white/50 hover:text-white/80'"> 评论 +
{{ line.text }} + {{ line.translation }}

暂无歌词
@@ -305,7 +312,7 @@ function doSearch() { if (q) router.push({ path: '/discover', query: { q } }); } -const { lyrics, currentLyricIdx } = useLyric(); +const { lyrics, currentLyricIdx, hasTranslation, showTranslation, toggleTranslation } = useLyric(); const lyricScrollContainer = ref(null); const roamLyricHovering = ref(false); const roamLyricPadPx = ref(0); @@ -372,8 +379,8 @@ function getRoamLyricClass(idx: number): string { return 'roam-lyric-active text-accent-text font-semibold text-xl'; } if (diff === 1) return 'text-content/70 text-lg'; - if (diff === 2) return 'text-content-2/50 text-base'; - return 'text-content-3/35 text-base'; + if (diff === 2) return 'text-content-2/50 text-[1rem]'; + return 'text-content-3/35 text-[1rem]'; } function seekToRoamLyric(time: number) { @@ -506,6 +513,7 @@ onMounted(() => { async function registerGlobalShortcuts() { const globalActions: Record void> = { + globalPlayPause: () => player.toggle(), globalPrev: () => player.prev(), globalNext: () => player.next(), globalVolUp: () => player.adjustVolume(5), @@ -551,6 +559,7 @@ onMounted(() => { } const localActions: Record void> = { + playPause: () => player.toggle(), prev: () => player.prev(), next: () => player.next(), volUp: () => player.adjustVolume(5), diff --git a/src/components/PlayerBar.vue b/src/components/PlayerBar.vue index 9d90aa2..3212bc7 100644 --- a/src/components/PlayerBar.vue +++ b/src/components/PlayerBar.vue @@ -104,41 +104,99 @@
- -
-
-

播放列表 ({{ player.queue.length }})

- -
-
-
- {{ idx + 1 }} -
-

{{ song.name }}

-

- -

+ + +
+
+ +
+ +
+
+
+

播放列表

+

{{ player.queue.length }} 首歌曲

+
+
+ + +
-
+ +
+ +
+
+ + + +

播放列表为空

+

去发现好听的音乐吧

+
+ +
+
+ +
+ +
+
+
+ + + +
+
+
+
+

+ {{ song.name }} +

+

+ +

+
+ +
+ +
+ +
-
- + +
diff --git a/src/components/UpdateDialog.vue b/src/components/UpdateDialog.vue index adc8587..49d98bb 100644 --- a/src/components/UpdateDialog.vue +++ b/src/components/UpdateDialog.vue @@ -1,6 +1,6 @@