From ecb24412aae041fbc4d114ff2dc84a364875d29b Mon Sep 17 00:00:00 2001 From: Aleix Soler Date: Fri, 21 Nov 2025 09:30:10 +0100 Subject: [PATCH] fix: use either icon or lucideIcon --- components/FileExplorer/FileExplorerIcon.tsx | 2 + components/SettingsUI/UISettings.tsx | 4 +- components/StatusBar/StatusBar.tsx | 2 + components/Toolbar/EditorToolbarButton.tsx | 2 + constants/defaultSettings.ts | 1 + .../file-explorer-integration.tsx | 2 + integrations/status-bar/status-bar.tsx | 2 + .../toolbar/editorToolbarIntegration.tsx | 2 + styles.css | 1463 +---------------- types/pluginSettings.ts | 1 + 10 files changed, 17 insertions(+), 1464 deletions(-) diff --git a/components/FileExplorer/FileExplorerIcon.tsx b/components/FileExplorer/FileExplorerIcon.tsx index 01642df..1d750fe 100644 --- a/components/FileExplorer/FileExplorerIcon.tsx +++ b/components/FileExplorer/FileExplorerIcon.tsx @@ -9,6 +9,7 @@ type Props = { hideUnknownStatus?: boolean; unknownStatusConfig?: { icon: string; + lucideIcon?: string; color: string; }; iconFrameMode?: "always" | "never"; @@ -47,6 +48,7 @@ export const FileExplorerIcon: FC = memo( return ( = ({ settings, onChange }) => { } emojiPlaceholder="❓" emojiHint="Type any emoji or text fallback." - lucideValue={settings.unknownStatusIcon} + lucideValue={settings.unknownStatusLucideIcon || ""} onLucideChange={(value) => - onChange("unknownStatusIcon", value) + onChange("unknownStatusLucideIcon", value) } lucidePlaceholder="Choose Lucide icon" lucideHint="Matches the Obsidian toolbar style." diff --git a/components/StatusBar/StatusBar.tsx b/components/StatusBar/StatusBar.tsx index d59e421..2d38f90 100644 --- a/components/StatusBar/StatusBar.tsx +++ b/components/StatusBar/StatusBar.tsx @@ -18,6 +18,7 @@ export type Props = { showIcon: boolean; showText: boolean; icon: string; + lucideIcon?: string; color: string; }; }; @@ -54,6 +55,7 @@ export const StatusBar: FC = ({ {noStatusConfig.showIcon && ( void; unknownStatusConfig: { icon: string; + lucideIcon?: string; color: string; }; } @@ -43,6 +44,7 @@ export const EditorToolbarButton: FC = memo( >