From e06af3e5701b1903551e64b6e29057c16fa23ee5 Mon Sep 17 00:00:00 2001 From: Artur Lozovski Date: Fri, 15 Dec 2023 14:30:49 +0000 Subject: [PATCH] add dark styles to modal --- .../librqbit/webui/src/components/buttons/Button.tsx | 4 ++-- .../webui/src/components/forms/FormInput.tsx | 2 +- .../src/components/modal/DeleteTorrentModal.tsx | 7 +++++-- crates/librqbit/webui/src/components/modal/Modal.tsx | 12 +++++++----- .../webui/src/components/modal/ModalBody.tsx | 2 +- 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/crates/librqbit/webui/src/components/buttons/Button.tsx b/crates/librqbit/webui/src/components/buttons/Button.tsx index 398f962..b2e8d4e 100644 --- a/crates/librqbit/webui/src/components/buttons/Button.tsx +++ b/crates/librqbit/webui/src/components/buttons/Button.tsx @@ -11,11 +11,11 @@ export const Button: React.FC<{ secondary: "hover:bg-blue-500 transition-colors hover:text-white dark:hover:bg-blue-900/50", danger: - "bg-red-400 text-white border-green-50 hover:border-red-700 hover:bg-red-600 dark:bg-red-800 dark:border-none", + "bg-red-400 text-white border-green-50 hover:border-red-700 hover:bg-red-600 dark:bg-red-800 dark:border-none dark:hover:bg-red-900", primary: "bg-blue-600 text-white hover:bg-blue-800 disabled:bg-blue-200 dark:disabled:bg-slate-600 dark:disabled:text-slate-300 dark:border-none", cancel: - "hover:bg-slate-200 dark:bg-slate-200 dark:hover:bg-slate-400 dark:border-none", + "hover:bg-slate-200 dark:bg-slate-600 dark:hover:bg-slate-700 dark:border-none", none: "", }[variant ?? "secondary"]; return ( diff --git a/crates/librqbit/webui/src/components/forms/FormInput.tsx b/crates/librqbit/webui/src/components/forms/FormInput.tsx index d2fb1d9..8aa511a 100644 --- a/crates/librqbit/webui/src/components/forms/FormInput.tsx +++ b/crates/librqbit/webui/src/components/forms/FormInput.tsx @@ -29,7 +29,7 @@ export const FormInput: React.FC<{ -

+

Are you sure you want to delete the torrent?

@@ -65,7 +65,10 @@ export const DeleteTorrentModal: React.FC<{ checked={deleteFiles} placeholder="Also delete files" /> -