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