+
+
+
diff --git a/components/home/lovart/lovart-sidebar.tsx b/components/home/lovart/lovart-sidebar.tsx
index 58210e64b..502f46294 100644
--- a/components/home/lovart/lovart-sidebar.tsx
+++ b/components/home/lovart/lovart-sidebar.tsx
@@ -31,7 +31,6 @@ type LovartSidebarProps = {
onImageEditor: () => void;
onNavLink: (url: string) => void;
onNewCanvas: () => void;
- onProfile: () => void;
onRoute: (url: string) => void;
onTutorial: (video: TutorialVideo) => void;
productPlanningEnabled: boolean;
@@ -51,6 +50,7 @@ type LovartSidebarProps = {
tutorialEnabled: boolean;
tutorialVideos: TutorialVideo[];
videoCanvasEnabled: boolean;
+ tone?: "light" | "dark";
};
export function LovartSidebar({
@@ -64,7 +64,6 @@ export function LovartSidebar({
onImageEditor,
onNavLink,
onNewCanvas,
- onProfile,
onRoute,
onTutorial,
productPlanningEnabled,
@@ -77,14 +76,15 @@ export function LovartSidebar({
tutorialEnabled,
tutorialVideos,
videoCanvasEnabled,
+ tone = "light",
}: LovartSidebarProps) {
const sidebarPopupBaseClass =
- "rounded-[24px] border border-black/8 bg-white/96 p-2.5 text-[#111827] shadow-[0_24px_64px_rgba(15,23,42,0.12)] backdrop-blur-xl";
+ "rounded-[24px] border border-black/8 bg-white/96 p-2.5 text-[#111827] shadow-[0_24px_64px_rgba(15,23,42,0.12)] backdrop-blur-xl dark:border-white/10 dark:bg-[#141416]/96 dark:text-white dark:shadow-[0_24px_64px_rgba(0,0,0,0.42)]";
const sidebarButtonClass = (active = false) =>
[
- "group flex h-10 w-10 shrink-0 items-center justify-center rounded-xl text-[#6b7280] transition-all duration-200 hover:bg-black/[0.04] hover:text-[#111827]",
+ "group flex h-[34px] w-[34px] shrink-0 items-center justify-center rounded-[10px] text-[#6b7280] transition-all duration-200 hover:bg-black/[0.04] hover:text-[#111827] dark:text-white/62 dark:hover:bg-white/8 dark:hover:text-white",
active
- ? "bg-[#111827] text-white shadow-[0_10px_22px_rgba(15,23,42,0.18)]"
+ ? "bg-[#f1f2f4] text-[#111827] shadow-[inset_0_0_0_1px_rgba(15,23,42,0.04)] dark:bg-white/12 dark:text-white"
: "",
]
.filter(Boolean)
@@ -104,7 +104,10 @@ export function LovartSidebar({
onClick={onClick}
title={getItem(key).label}
>
- {renderIcon(key, { active: options?.active })}
+ {renderIcon(key, {
+ active: options?.active,
+ sizeClassName: "h-[15px] w-[15px]",
+ })}
{getItem(key).label}
@@ -124,7 +127,7 @@ export function LovartSidebar({
className={sidebarButtonClass()}
title={getItem(key).label}
>
- {renderIcon(key)}
+ {renderIcon(key, { sizeClassName: "h-[15px] w-[15px]" })}
-
+
{getItem(key).label}
@@ -140,11 +143,11 @@ export function LovartSidebar({
))}
@@ -153,7 +156,7 @@ export function LovartSidebar({
) : null;
return (
-