From 9f78e1ce1e1b42215143b92fe86b6d220a7b7acf Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Sun, 9 Feb 2025 11:58:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A2=84=E5=AE=9A=E4=B9=89=E4=B8=BB?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/button/save_buttons.tsx | 12 +- napcat.webui/src/const/themes/nc_pink.ts | 2 - .../src/pages/dashboard/config/theme.tsx | 333 +++++++++--------- napcat.webui/src/types/theme.d.ts | 2 - napcat.webui/src/utils/theme.ts | 126 +++++++ napcat.webui/tailwind.config.js | 6 + 6 files changed, 311 insertions(+), 170 deletions(-) diff --git a/napcat.webui/src/components/button/save_buttons.tsx b/napcat.webui/src/components/button/save_buttons.tsx index f19486d3..d943677a 100644 --- a/napcat.webui/src/components/button/save_buttons.tsx +++ b/napcat.webui/src/components/button/save_buttons.tsx @@ -1,4 +1,5 @@ import { Button } from '@heroui/button' +import clsx from 'clsx' import toast from 'react-hot-toast' import { IoMdRefresh } from 'react-icons/io' @@ -7,15 +8,22 @@ export interface SaveButtonsProps { reset: () => void refresh?: () => void isSubmitting: boolean + className?: string } const SaveButtons: React.FC = ({ onSubmit, reset, isSubmitting, - refresh + refresh, + className }) => ( -
+