diff --git a/app/globals.css b/app/globals.css index 5a6ebf5..3cd1ab1 100644 --- a/app/globals.css +++ b/app/globals.css @@ -156,9 +156,10 @@ font-feature-settings: "rlig" 1, "calt" 1; } - /* Apply custom scrollbar globally */ + /* Apply custom scrollbar globally with primary color accent */ * { scrollbar-width: thin; + scrollbar-color: color-mix(in oklch, var(--primary) 40%, transparent) var(--muted); } *::-webkit-scrollbar { @@ -172,18 +173,18 @@ } *::-webkit-scrollbar-thumb { - background: color-mix(in oklch, var(--muted-foreground) 30%, transparent); + background: color-mix(in oklch, var(--primary) 40%, transparent); border-radius: 5px; border: 2px solid var(--muted); transition: background 0.2s ease; } *::-webkit-scrollbar-thumb:hover { - background: color-mix(in oklch, var(--muted-foreground) 50%, transparent); + background: color-mix(in oklch, var(--primary) 60%, transparent); } *::-webkit-scrollbar-thumb:active { - background: color-mix(in oklch, var(--muted-foreground) 70%, transparent); + background: color-mix(in oklch, var(--primary) 80%, transparent); } /* Scrollbar corners */ diff --git a/components/editor/editor-layout.tsx b/components/editor/editor-layout.tsx index 4e899d2..8cf5803 100644 --- a/components/editor/editor-layout.tsx +++ b/components/editor/editor-layout.tsx @@ -37,10 +37,10 @@ export function EditorLayout() { if (layers.length === 0) { const { createLayer } = useLayerStore.getState(); createLayer({ - name: 'Background', + name: 'Layer 1', width: 800, height: 600, - fillColor: '#ffffff', + // No fillColor - layer is transparent by default }); } }, []); diff --git a/components/editor/tool-options.tsx b/components/editor/tool-options.tsx index 3c3a868..f557f5c 100644 --- a/components/editor/tool-options.tsx +++ b/components/editor/tool-options.tsx @@ -12,9 +12,12 @@ export function ToolOptions() { // Drawing tools: brush, pencil, eraser const isDrawingTool = ['brush', 'eraser', 'pencil'].includes(activeTool); const showHardness = ['brush'].includes(activeTool); - const showColor = ['brush', 'pencil', 'fill'].includes(activeTool); + const showColor = ['brush', 'pencil'].includes(activeTool); const showFlow = ['brush'].includes(activeTool); + // Fill tool + const isFillTool = activeTool === 'fill'; + // Shape tool const isShapeTool = activeTool === 'shape'; @@ -22,7 +25,7 @@ export function ToolOptions() { const isSelectionTool = activeTool === 'select'; // Don't show options bar if no options available - if (!isDrawingTool && !isShapeTool && !isSelectionTool) { + if (!isDrawingTool && !isFillTool && !isShapeTool && !isSelectionTool) { return null; } @@ -125,6 +128,46 @@ export function ToolOptions() { > )} + {/* Fill Tool Options */} + {isFillTool && ( + <> +