From 78e02f0ca2fc53c3cac4ac11302a2ac63f4e0c01 Mon Sep 17 00:00:00 2001 From: Montia37 Date: Tue, 26 Aug 2025 03:25:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=A3=A8=E7=A0=82?= =?UTF-8?q?=E7=8E=BB=E7=92=83=E6=95=88=E6=9E=9C=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8F=8A=E7=9B=B8=E5=85=B3=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- komari-theme.json | 25 +- src/components/sections/Footer.tsx | 4 +- src/components/sections/Header.tsx | 8 +- src/components/sections/NodeCard.tsx | 23 +- src/components/sections/NodeListHeader.tsx | 12 +- src/components/sections/NodeListItem.tsx | 100 ++++---- src/components/sections/StatsBar.tsx | 2 +- src/components/ui/button.tsx | 10 +- src/components/ui/card.tsx | 2 +- src/components/ui/dropdown-menu.tsx | 4 +- src/components/ui/switch.tsx | 2 +- src/components/ui/tips.tsx | 85 +++++++ src/components/ui/tooltip.tsx | 2 +- src/config/ConfigProvider.tsx | 51 +++- src/config/default.ts | 6 + src/index.css | 147 +++++------ src/pages/Home.tsx | 25 +- src/pages/instance/LoadCharts.tsx | 23 +- src/pages/instance/PingChart.tsx | 161 +++++++++---- src/pages/instance/index.tsx | 21 +- src/palette-rgb.css | 268 +++++++++++++++++++++ src/utils/formatHelper.ts | 13 +- 22 files changed, 769 insertions(+), 225 deletions(-) create mode 100644 src/components/ui/tips.tsx create mode 100644 src/palette-rgb.css diff --git a/komari-theme.json b/komari-theme.json index 41d5d3a..bceb650 100644 --- a/komari-theme.json +++ b/komari-theme.json @@ -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 @@ } ] } -} +} \ No newline at end of file diff --git a/src/components/sections/Footer.tsx b/src/components/sections/Footer.tsx index 5f791ab..41a2fd2 100644 --- a/src/components/sections/Footer.tsx +++ b/src/components/sections/Footer.tsx @@ -2,8 +2,8 @@ import React from "react"; const Footer: React.FC = () => { return ( -