Skip to content

Commit 6028bff

Browse files
committed
refactor: remove standalone theme and font picker components
1 parent bf2d5a9 commit 6028bff

4 files changed

Lines changed: 2 additions & 211 deletions

File tree

packages/app/src/components/font-picker.tsx

Lines changed: 0 additions & 103 deletions
This file was deleted.

packages/app/src/components/header.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import { A, useParams } from "@solidjs/router"
1616
import { createMemo, createResource, Show } from "solid-js"
1717
import { IconButton } from "@opencode-ai/ui/icon-button"
1818
import { iife } from "@opencode-ai/util/iife"
19-
import { ThemePicker } from "@/components/theme-picker"
20-
import { FontPicker } from "@/components/font-picker"
2119

2220
export function Header(props: {
2321
navigateToProject: (directory: string) => void
@@ -57,12 +55,7 @@ export function Header(props: {
5755
<div class="pl-4 px-6 flex items-center justify-between gap-4 w-full">
5856
<Show
5957
when={layout.projects.list().length > 0 && params.dir}
60-
fallback={
61-
<div class="hidden md:flex items-center gap-2 ml-auto">
62-
<ThemePicker />
63-
<FontPicker />
64-
</div>
65-
}
58+
fallback={<div class="hidden md:flex items-center gap-2 ml-auto" />}
6659
>
6760
{(directory) => {
6861
const currentDirectory = createMemo(() => base64Decode(directory()))
@@ -121,11 +114,6 @@ export function Header(props: {
121114
</Show>
122115
</div>
123116
<div class="flex items-center gap-4">
124-
{/* Theme and Font first - desktop only */}
125-
<div class="hidden md:flex items-center gap-2">
126-
<ThemePicker />
127-
<FontPicker />
128-
</div>
129117
{/* Review toggle - requires session */}
130118
<Show when={currentSession()}>
131119
<Tooltip

packages/app/src/components/theme-picker.tsx

Lines changed: 0 additions & 94 deletions
This file was deleted.

packages/app/src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import "@opencode-ai/ui/styles/tailwind";
22

33
:root {
4-
/* Font is set via JavaScript in index.html and font-picker.tsx */
4+
/* Font is set via JavaScript in index.html */
55
/* Default fallback handled in inline script */
66

77
/* Safe area insets for mobile devices (notch, home indicator, etc.) */

0 commit comments

Comments
 (0)