Skip to content

Commit 93039fc

Browse files
fix(mobile): project picker and sheet lists use the settings card color
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 54084ae commit 93039fc

6 files changed

Lines changed: 24 additions & 21 deletions

File tree

‎apps/mobile/src/features/archive/ArchivedThreadsScreen.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function ArchivedThreadRow(props: {
190190
readonly thread: EnvironmentThreadShell;
191191
}) {
192192
const { width: windowWidth } = useWindowDimensions();
193-
const cardColor = useUniwindTheme()["--color-card"];
193+
const cardColor = useUniwindTheme()["--color-grouped-card"];
194194
const timestamp = relativeTime(props.thread.archivedAt ?? props.thread.updatedAt);
195195
const subtitle = [props.environmentLabel, props.thread.branch].filter((part): part is string =>
196196
Boolean(part),
@@ -224,7 +224,7 @@ function ArchivedThreadRow(props: {
224224
>
225225
{() => (
226226
<View
227-
className={`flex-row items-center gap-3 bg-card px-4 py-3 ${props.isLast ? "" : "border-b border-separator"}`}
227+
className={`flex-row items-center gap-3 bg-grouped-card px-4 py-3 ${props.isLast ? "" : "border-b border-separator"}`}
228228
>
229229
<View className="h-[34px] w-[34px] items-center justify-center rounded-[11px] bg-subtle">
230230
<SymbolView

‎apps/mobile/src/features/cloud/ConnectOnboardingRouteScreen.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function ConfiguredConnectOnboardingRouteScreen() {
117117
showHeader={false}
118118
/>
119119
) : (
120-
<View collapsable={false} className="rounded-[24px] bg-card p-5">
120+
<View collapsable={false} className="rounded-[24px] bg-grouped-card p-5">
121121
<Text className="text-sm leading-normal text-foreground-muted">
122122
Sign in to your T3 account to set up T3 Connect.
123123
</Text>

‎apps/mobile/src/features/threads/NewTaskContextPickerScreens.tsx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function SelectionRow(props: {
5454
if (Platform.OS === "android") {
5555
return (
5656
<MaterialListRow
57+
className="bg-grouped-card"
5758
title={props.title}
5859
subtitle={props.subtitle}
5960
leading={
@@ -85,7 +86,7 @@ function SelectionRow(props: {
8586
accessibilityRole="radio"
8687
accessibilityState={{ checked: props.selected }}
8788
className={cn(
88-
"min-h-14 flex-row items-center gap-3 bg-card px-4 py-3 active:bg-subtle",
89+
"min-h-14 flex-row items-center gap-3 bg-grouped-card px-4 py-3 active:bg-subtle",
8990
!props.isLast && "border-b border-border-subtle",
9091
)}
9192
disabled={props.disabled}
@@ -131,7 +132,7 @@ function ToggleRow(props: {
131132
readonly onValueChange: (value: boolean) => void;
132133
}) {
133134
return (
134-
<View className="min-h-14 flex-row items-center gap-3 bg-card px-4 py-3">
135+
<View className="min-h-14 flex-row items-center gap-3 bg-grouped-card px-4 py-3">
135136
<Text
136137
className={cn(
137138
"min-w-0 flex-1 text-base text-foreground",
@@ -192,8 +193,8 @@ function PickerSurface(props: { readonly children: ReactNode }) {
192193
<View
193194
className={
194195
Platform.OS === "android"
195-
? "overflow-hidden rounded-[28px] bg-card"
196-
: "overflow-hidden rounded-2xl bg-card"
196+
? "overflow-hidden rounded-[28px] bg-grouped-card"
197+
: "overflow-hidden rounded-2xl bg-grouped-card"
197198
}
198199
>
199200
{props.children}

‎apps/mobile/src/features/threads/NewTaskRouteScreen.tsx‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,9 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
314314
>
315315
{canStartScratch && listScopes.length > 0 ? (
316316
Platform.OS === "android" ? (
317-
<View collapsable={false} className="overflow-hidden rounded-[28px] bg-card">
317+
<View collapsable={false} className="overflow-hidden rounded-[28px] bg-grouped-card">
318318
<MaterialListRow
319+
className="bg-grouped-card"
319320
title="No project"
320321
subtitle="Start a task without a project"
321322
onPress={() => void startScratch()}
@@ -330,12 +331,12 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
330331
/>
331332
</View>
332333
) : (
333-
<View collapsable={false} className="overflow-hidden rounded-[24px] bg-card">
334+
<View collapsable={false} className="overflow-hidden rounded-[24px] bg-grouped-card">
334335
<Pressable
335336
accessibilityRole="button"
336337
accessibilityLabel="No project"
337338
onPress={() => void startScratch()}
338-
className="flex-row items-center gap-3 bg-card px-4 py-3.5"
339+
className="flex-row items-center gap-3 bg-grouped-card px-4 py-3.5"
339340
>
340341
<View className="h-7 w-7 items-center justify-center">
341342
<SymbolView
@@ -366,7 +367,7 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
366367
collapsable={false}
367368
className={cn(
368369
"items-center gap-3 px-6 py-8",
369-
Platform.OS !== "android" && "rounded-[24px] bg-card",
370+
Platform.OS !== "android" && "rounded-[24px] bg-grouped-card",
370371
)}
371372
>
372373
{projectEmptyState.loading ? (
@@ -443,8 +444,8 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
443444
collapsable={false}
444445
className={
445446
Platform.OS === "android"
446-
? "overflow-hidden rounded-[28px] bg-card"
447-
: "overflow-hidden rounded-[24px] bg-card"
447+
? "overflow-hidden rounded-[28px] bg-grouped-card"
448+
: "overflow-hidden rounded-[24px] bg-grouped-card"
448449
}
449450
>
450451
{visibleScopes.map((scope, scopeIndex) => {
@@ -456,6 +457,7 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
456457
if (Platform.OS === "android") {
457458
return (
458459
<MaterialListRow
460+
className="bg-grouped-card"
459461
key={scope.key}
460462
title={scope.title}
461463
subtitle={
@@ -488,7 +490,7 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
488490
accessibilityLabel={scope.title}
489491
disabled={reservedDestinationProject !== null}
490492
onPress={() => void selectProject(selectionTarget)}
491-
className="flex-row items-center gap-3 bg-card px-4 py-3.5"
493+
className="flex-row items-center gap-3 bg-grouped-card px-4 py-3.5"
492494
>
493495
<View className="h-7 w-7 items-center justify-center">
494496
<ProjectFavicon

‎apps/mobile/src/features/threads/ThreadSettingsRows.shared.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function ModelRowContent(
4141
<View
4242
style={props.minimumHeight === undefined ? undefined : { minHeight: props.minimumHeight }}
4343
className={cn(
44-
"mx-4 min-h-11 flex-row items-center gap-2 bg-card px-4",
44+
"mx-4 min-h-11 flex-row items-center gap-2 bg-grouped-card px-4",
4545
props.selectedClassName,
4646
props.isFirst && "rounded-t-2xl",
4747
props.isLast ? "rounded-b-2xl" : "border-b border-border-subtle",
@@ -123,7 +123,7 @@ export function ChoiceRowContent(props: ChoiceRowProps & RowSelectionProps) {
123123
onPress={props.onPress}
124124
style={props.minimumHeight === undefined ? undefined : { minHeight: props.minimumHeight }}
125125
className={cn(
126-
"min-h-14 flex-row items-center gap-3 bg-card px-4 py-3 active:bg-subtle",
126+
"min-h-14 flex-row items-center gap-3 bg-grouped-card px-4 py-3 active:bg-subtle",
127127
!props.isLast && "border-b border-border-subtle",
128128
)}
129129
>

‎apps/mobile/src/features/threads/ThreadSettingsSheet.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function DisclosureRow(props: {
186186
accessibilityRole="button"
187187
onPress={props.onPress}
188188
className={cn(
189-
"min-h-11 flex-row items-center gap-2 bg-card px-4 py-2 active:bg-subtle android:min-h-14",
189+
"min-h-11 flex-row items-center gap-2 bg-grouped-card px-4 py-2 active:bg-subtle android:min-h-14",
190190
!props.isLast && "border-b border-border-subtle",
191191
)}
192192
>
@@ -216,7 +216,7 @@ function SwitchRow(props: {
216216
return (
217217
<View
218218
className={cn(
219-
"min-h-11 flex-row items-center justify-between bg-card px-4 py-1",
219+
"min-h-11 flex-row items-center justify-between bg-grouped-card px-4 py-1",
220220
!props.isLast && "border-b border-border-subtle",
221221
)}
222222
>
@@ -700,7 +700,7 @@ function ThreadSettingsOptionsItem(props: {
700700
<ChatGptSharingStatus provider={selectedProvider} />
701701
<Text className="px-5 pb-2 pt-2 text-sm font-t3-medium text-foreground-muted">Options</Text>
702702
<Animated.View
703-
className="mx-4 overflow-hidden rounded-2xl bg-card"
703+
className="mx-4 overflow-hidden rounded-2xl bg-grouped-card"
704704
layout={THREAD_SETTINGS_OPTIONS_LAYOUT_TRANSITION}
705705
>
706706
{session.displayedDescriptors.map((descriptor) => {
@@ -754,7 +754,7 @@ function ThreadSettingsOptionsItem(props: {
754754
<Text className="px-5 pb-2 pt-7 text-sm font-t3-medium text-foreground-muted">
755755
Catalog
756756
</Text>
757-
<View className="mx-4 overflow-hidden rounded-2xl bg-card">
757+
<View className="mx-4 overflow-hidden rounded-2xl bg-grouped-card">
758758
<SwitchRow
759759
isLast
760760
label="Legacy models"
@@ -999,7 +999,7 @@ function ThreadSettingsChoiceContent(props: {
999999
contentInsetAdjustmentBehavior="automatic"
10001000
showsVerticalScrollIndicator={false}
10011001
>
1002-
<View className="overflow-hidden rounded-2xl bg-card">
1002+
<View className="overflow-hidden rounded-2xl bg-grouped-card">
10031003
{submenuContent.rows.map((row, index) => (
10041004
<ChoiceRow
10051005
key={row.id}

0 commit comments

Comments
 (0)