feat: 添加磨砂玻璃效果自定义配置及相关样式支持

This commit is contained in:
Montia37
2025-08-26 03:25:50 +08:00
parent 832a4dc3d9
commit 78e02f0ca2
22 changed files with 769 additions and 225 deletions

View File

@@ -2,7 +2,7 @@
"name": "Komari Theme PurCart",
"short": "PurCarte",
"description": "A frosted glass theme for Komari",
"version": "1.0.5",
"version": "1.0.7",
"author": "Montia & Gemini",
"url": "https://github.com/Montia37/Komari-theme-purcarte",
"preview": "preview.png",
@@ -20,6 +20,20 @@
"default": "/assets/Moonlit-Scenery.webp",
"help": "目前仅支持单张背景图片eg: https://test.com/1.png"
},
{
"key": "blurValue",
"name": "磨砂玻璃模糊值",
"type": "number",
"default": 10,
"help": "调整模糊值大小,数值越大模糊效果越明显,建议值为 5-20为 0 则表示不启用模糊效果"
},
{
"key": "blurBackgroundColor",
"name": "磨砂玻璃背景色",
"type": "string",
"default": "rgba(255, 255, 255, 0.5)|rgba(0, 0, 0, 0.5)",
"help": "调整模糊背景色,推荐 rgba 颜色值,使用“|”分隔亮色模式和暗色模式的颜色值eg: rgba(255, 255, 255, 0.5)|rgba(0, 0, 0, 0.5)"
},
{
"key": "tagDefaultColorList",
"name": "标签默认颜色列表",
@@ -108,6 +122,13 @@
"default": true,
"help": "启用后默认显示分组栏"
},
{
"key": "enableSwap",
"name": "启用 SWAP 显示",
"type": "switch",
"default": true,
"help": "启用后默认显示 SWAP 信息"
},
{
"name": "Instance 设置",
"type": "title"
@@ -135,4 +156,4 @@
}
]
}
}
}