@devries-cameron20 / t3code Mirror · read-only / commits / 2eaff08241
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 23:00 UTC

chore(lint): keep mobile theme escape-hatch allowlist honest (#13146)

Julius Marminge committed Sep 22, 2026 at 18:48 UTC 2eaff08241a51dadfd9ef5ad53cba74e6d0fceb4
3 files changed +3 -17
apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx
+1 -8
@@ -417,7 +417,6 @@ export function ThreadFilesTreeScreen(props: ThreadFilesRouteScreenProps) {
417 const { fileInspector, layout, showAuxiliaryPane } = useAdaptiveWorkspaceLayout();
418 const [searchQuery, setSearchQuery] = useState("");
419 const { themeAppearance: highlightTheme } = useAppearancePreferences();
420 - const headerColor = useUniwindTheme()["--color-header"];
420 const { cwd, environmentId, projectName, selectedThread, threadId } = useThreadFilesWorkspace(
421 props.route.params,
422 );
@@ -554,13 +553,7 @@ export function ThreadFilesTreeScreen(props: ThreadFilesRouteScreenProps) {
553 </>
554 );
555
557 - return Platform.OS === "android" ? (
558 - <View className="flex-1" style={{ backgroundColor: headerColor }}>
559 - {content}
560 - </View>
561 - ) : (
562 - content
563 - );
556 + return Platform.OS === "android" ? <View className="flex-1 bg-header">{content}</View> : content;
557 }
558
559 export function ThreadFileScreen(props: ThreadFileRouteScreenProps) {
apps/mobile/src/features/settings/appearance/components/AppearancePreviews.tsx
+2 -7
@@ -5,7 +5,6 @@ import {
5 resolveMarkdownFontSizes,
6 resolveMobileCodeSurface,
7 } from "../../../../lib/appearancePreferences";
8 -import { useUniwindTheme } from "../../../../lib/useUniwindTheme";
8 import { getMobileTerminalTheme } from "../../../terminal/terminalTheme";
9 import { useAppearancePreferences } from "../AppearancePreferencesProvider";
10
@@ -138,16 +137,12 @@ export function CodeAppearancePreview(props: {
137 readonly wordBreak: boolean;
138 }) {
139 const surface = resolveMobileCodeSurface(props.fontSize);
141 - const theme = useUniwindTheme();
142 - const lineNumberColor = theme["--color-icon-subtle"];
143 - const keywordColor = theme["--color-md-link"];
140
141 const lineNumber = (line: CodePreviewLine, index: number) => (
142 <Text
147 - className="text-right"
143 + className="text-right text-icon-subtle"
144 key={line.id}
145 style={{
150 - color: lineNumberColor,
146 fontFamily: CODE_FONT_FAMILY,
147 fontSize: surface.lineNumberFontSize,
148 lineHeight: surface.rowHeight,
@@ -172,8 +167,8 @@ export function CodeAppearancePreview(props: {
167 {line.tokens.map((token) => (
168 <Text
169 key={token.text}
170 + className={token.keyword ? "text-md-link" : undefined}
171 style={{
176 - color: token.keyword ? keywordColor : undefined,
172 fontFamily: CODE_FONT_FAMILY,
173 fontSize: surface.fontSize,
174 lineHeight: surface.rowHeight,
vite.config.ts
-2
@@ -215,7 +215,6 @@ export default defineConfig({
215 "apps/mobile/src/features/connection/ConnectionsNewRouteScreen.tsx",
216 "apps/mobile/src/features/files/FileMarkdownPreview.tsx",
217 "apps/mobile/src/features/files/SourceFileSurface.tsx",
218 - "apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx",
218 "apps/mobile/src/features/files/AttachmentFileScreen.tsx",
219 "apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx",
220 "apps/mobile/src/features/files/thread-file-navigator-pane.tsx",
@@ -223,7 +222,6 @@ export default defineConfig({
222 "apps/mobile/src/features/review/ReviewSheet.tsx",
223 "apps/mobile/src/features/review/useNativeReviewDiffBridge.ts",
224 "apps/mobile/src/features/settings/SettingsEnvironmentsRouteScreen.tsx",
226 - "apps/mobile/src/features/settings/appearance/components/AppearancePreviews.tsx",
225 "apps/mobile/src/features/threads/GitActionProgressOverlay.tsx",
226 "apps/mobile/src/features/threads/NewTaskDraftScreen.tsx",
227 "apps/mobile/src/features/threads/ThreadComposer.tsx",