基于WebView2实现的Win11桌面框架,利用插件自定义
chunhualin1
2026-08-14 b84db8983d63a9a981083ebce1a139860c6bdf25
samples/plugins/sample.audio-visualizer/plugin.json
@@ -4,27 +4,73 @@
  "version": "1.0.0",
  "type": "widget",
  "entry": "index.html",
  "description": "Full-width music rhythm bars for the lower desktop area.",
  "description": "Full-screen music rhythm bars for the desktop.",
  "author": "Moli.Desktop",
  "permissions": [
    "audio-capture"
  ],
  "defaultLayout": {
    "x": 0,
    "y": 720,
    "width": 1920,
    "height": 240,
    "y": 0,
    "width": 2560,
    "height": 1080,
    "locked": false,
    "clickThrough": true,
    "opacity": 0.92,
    "scale": 1,
    "displayPriority": "iconLayer"
    "displayLayer": "desktop"
  },
  "config": {
    "barCount": 192,
    "barCount": 256,
    "fallbackLevelCount": 128,
    "primaryColor": "#ff2fb3",
    "secondaryColor": "#29d8ff",
    "accentColor": "#f8fbff",
    "sensitivity": 1.42
    "sensitivity": 5.5,
    "centerYRatio": 0.66,
    "maxHeightRatio": 0.5,
    "smooth": 0.3,
    "decay": 0.5,
    "compressionPower": 0.7,
    "silenceThreshold": 0.001,
    "fallbackTimeoutMs": 900,
    "fallbackPhaseStep": 0.018,
    "beatThreshold": 1.12,
    "beatDecay": 0.9,
    "beatBassBoost": 0.34,
    "beatTrebleBoost": 0.1,
    "barGapSmall": 2,
    "barGapLarge": 3,
    "barGapBreakpoint": 900,
    "barWidthMin": 1.2,
    "barWidthMax": 5,
    "barRadiusMax": 3,
    "barMinHeight": 1.2,
    "lineOpacity": 0.72,
    "lineShadowBlur": 10,
    "lineShadowOpacity": 0.65,
    "barShadowBlur": 8,
    "colorHueStart": 330,
    "colorHueEnd": 292,
    "colorLightnessStart": 62,
    "colorLightnessEnd": 70,
    "colorAlpha": 0.55,
    "gradientTopAlpha": 0.35,
    "gradientBottomAlpha": 0.35,
    "bandGains": {
      "bass": 2.15,
      "mid": 1.75,
      "treble": 2.35,
      "tail": 1.95
    },
    "bandStops": {
      "midEnd": 0.35,
      "trebleEnd": 0.58,
      "bassEnd": 0.82,
      "trebleBlend": 0.07,
      "tailBlend": 0.035,
      "bassFrequencyEnd": 0.16,
      "midFrequencyEnd": 0.55
    }
  }
}