feat: 添加mac状态栏播放按键控制功能开关

This commit is contained in:
alger
2025-05-17 14:45:39 +08:00
parent f7951ec22f
commit 2476fbd6e3
6 changed files with 25 additions and 4 deletions
+13
View File
@@ -183,6 +183,17 @@
</n-button>
</div>
<div class="set-item" v-if="platform === 'darwin'">
<div>
<div class="set-item-title">{{ t('settings.playback.showStatusBar') }}</div>
<div class="set-item-content">{{ t('settings.playback.showStatusBarContent') }}</div>
</div>
<n-switch v-model:value="setData.showTopAction">
<template #checked>{{ t('common.on') }}</template>
<template #unchecked>{{ t('common.off') }}</template>
</n-switch>
</div>
<div class="set-item">
<div>
<div class="set-item-title">{{ t('settings.playback.autoPlay') }}</div>
@@ -488,6 +499,8 @@ import config from '../../../../package.json';
// 所有平台默认值
const ALL_PLATFORMS: Platform[] = ['migu', 'kugou', 'pyncmd', 'bilibili', 'kuwo'];
const platform = window.electron.ipcRenderer.sendSync('get-platform');
const settingsStore = useSettingsStore();
const userStore = useUserStore();