From 39f664fe638855256e23284c8a2ca10b6a5ee6ae Mon Sep 17 00:00:00 2001 From: yyb Date: Wed, 14 Aug 2024 23:42:25 +0800 Subject: [PATCH] fix: remove label & radio from color-select --- src/lib/Dark.tsx | 4 ++-- src/pages/reader/tools/PenPanel.tsx | 21 ++++++++------------- src/pages/reader/tools/pen-panel.sass | 9 +++------ 3 files changed, 13 insertions(+), 21 deletions(-) diff --git a/src/lib/Dark.tsx b/src/lib/Dark.tsx index 2b695fd..2f7ceba 100644 --- a/src/lib/Dark.tsx +++ b/src/lib/Dark.tsx @@ -15,14 +15,14 @@ export const loadDarkMode = async () => { { brightness: 100, contrast: 100 }, { ignoreInlineStyle: [ - "label .circle", + ".color-select .circle", ".color-circle", ".pen-icon path", ".text-color-icon", ], invert: [ // ".page-wrapper[data-preview=true] .draw-canvas", - "label .circle", + ".color-select .circle", ".width-circle.lineWidth", ".pen-icon", ".text-color-icon", diff --git a/src/pages/reader/tools/PenPanel.tsx b/src/pages/reader/tools/PenPanel.tsx index 7cf3b73..547fb10 100644 --- a/src/pages/reader/tools/PenPanel.tsx +++ b/src/pages/reader/tools/PenPanel.tsx @@ -155,19 +155,14 @@ export const ColorSelect: FC<{ }> = ({ setColor, color }) => (
{allColors.map((c) => ( -