Ariver
2026-07-11 015f1089ea875a153dd2a18ef42c25145d4868f5
C1.source/privatevoice.src/frontend/src/components/indicator/FloatingIndicator.svelte
@@ -9,7 +9,7 @@
  let status: IndicatorStatus = $state('hidden')
  let statusText = $state('')
  let barColor = $state('#007AFF')
  let key = $state('Ctrl')
  let key = $state('')
  const unsubVisible = indicatorVisible.subscribe(() => {})
  const unsubStatus = indicatorStatus.subscribe(s => {
@@ -20,7 +20,10 @@
    for (let i = 0; i < 4; i++) realVolumes[i] = realVolumes[i + 1]
    realVolumes[4] = vol
  })
  const unsubHotkey = hotkeyName.subscribe(k => { key = k })
  const unsubHotkey = hotkeyName.subscribe(k => {
    key = k
    updateVisuals(status)
  })
  const AppleBlue   = '#007AFF'
  const AppleGreen  = '#34C759'
@@ -32,7 +35,7 @@
      case 'loading':
        barColor = AppleBlue;  statusText = '加载中'; break
      case 'ready':
        barColor = AppleGreen; statusText = `按住${key}说话`; break
        barColor = AppleGreen; statusText = key ? `按住${key}说话` : '触发键未设置'; break
      case 'recording':
        barColor = AppleRed;   statusText = ''; break
      case 'processing':