From bd1ae73bb923e6f755246be765a59b1f193003d9 Mon Sep 17 00:00:00 2001 From: Kacper Date: Thu, 11 Dec 2025 00:29:16 +0100 Subject: [PATCH] refactor(settings): remove empty shared directory --- .../settings-view/appearance-section.tsx | 61 ------------- .../settings-view/shared/theme-options.ts | 88 ------------------- 2 files changed, 149 deletions(-) delete mode 100644 app/src/components/views/settings-view/appearance-section.tsx delete mode 100644 app/src/components/views/settings-view/shared/theme-options.ts diff --git a/app/src/components/views/settings-view/appearance-section.tsx b/app/src/components/views/settings-view/appearance-section.tsx deleted file mode 100644 index ed60b135..00000000 --- a/app/src/components/views/settings-view/appearance-section.tsx +++ /dev/null @@ -1,61 +0,0 @@ -import { Button } from "@/components/ui/button"; -import { Label } from "@/components/ui/label"; -import { Palette } from "lucide-react"; -import { themeOptions } from "./shared/theme-options"; -import type { Theme, Project } from "./types"; - -interface AppearanceSectionProps { - effectiveTheme: Theme; - currentProject: Project | null; - onThemeChange: (theme: Theme) => void; -} - -export function AppearanceSection({ - effectiveTheme, - currentProject, - onThemeChange, -}: AppearanceSectionProps) { - return ( -
-
-
- -

Appearance

-
-

- Customize the look and feel of your application. -

-
-
-
- -
- {themeOptions.map(({ value, label, Icon, testId }) => { - const isActive = effectiveTheme === value; - return ( - - ); - })} -
-
-
-
- ); -} diff --git a/app/src/components/views/settings-view/shared/theme-options.ts b/app/src/components/views/settings-view/shared/theme-options.ts deleted file mode 100644 index e59da056..00000000 --- a/app/src/components/views/settings-view/shared/theme-options.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { - type LucideIcon, - Atom, - Cat, - Eclipse, - Flame, - Ghost, - Moon, - Radio, - Snowflake, - Sparkles, - Sun, - Terminal, - Trees, -} from "lucide-react"; -import { Theme } from "../types"; - -export interface ThemeOption { - value: Theme; - label: string; - Icon: LucideIcon; - testId: string; -} - -export const themeOptions: ReadonlyArray = [ - { value: "dark", label: "Dark", Icon: Moon, testId: "dark-mode-button" }, - { value: "light", label: "Light", Icon: Sun, testId: "light-mode-button" }, - { - value: "retro", - label: "Retro", - Icon: Terminal, - testId: "retro-mode-button", - }, - { - value: "dracula", - label: "Dracula", - Icon: Ghost, - testId: "dracula-mode-button", - }, - { - value: "nord", - label: "Nord", - Icon: Snowflake, - testId: "nord-mode-button", - }, - { - value: "monokai", - label: "Monokai", - Icon: Flame, - testId: "monokai-mode-button", - }, - { - value: "tokyonight", - label: "Tokyo Night", - Icon: Sparkles, - testId: "tokyonight-mode-button", - }, - { - value: "solarized", - label: "Solarized", - Icon: Eclipse, - testId: "solarized-mode-button", - }, - { - value: "gruvbox", - label: "Gruvbox", - Icon: Trees, - testId: "gruvbox-mode-button", - }, - { - value: "catppuccin", - label: "Catppuccin", - Icon: Cat, - testId: "catppuccin-mode-button", - }, - { - value: "onedark", - label: "One Dark", - Icon: Atom, - testId: "onedark-mode-button", - }, - { - value: "synthwave", - label: "Synthwave", - Icon: Radio, - testId: "synthwave-mode-button", - }, -];