Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(files): add ignored-file visibility toggle #5951

Closeddiegoarff(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/5951/headopened View on GitHub

Showing 17 changed files with 32 additions and 7 deletions (loading 14).

x
0 of 17 viewed, 17 left
6 additions and 1 deletionapps/mobile/src/components/AndroidScreenHeader.tsxModified
View file
@@ -12,6 +12,7 @@
readonly icon: AppSymbolName;
readonly onPress: () => void;
readonly disabled?: boolean;
+ readonly selected?: boolean;
​
export function AndroidHeaderIconButton(props: {
@@ -19,6 +20,7 @@
readonly icon: AppSymbolName;
readonly onPress?: () => void;
readonly disabled?: boolean;
+ readonly selected?: boolean;
}) {
const foregroundColor = useThemeColor("--color-foreground");
const disabledColor = useThemeColor("--color-icon-subtle");
@@ -27,11 +29,13 @@
<Pressable
accessibilityLabel={props.accessibilityLabel}
accessibilityRole="button"
+ accessibilityState={{ selected: props.selected }}
disabled={props.disabled}
hitSlop={8}
onPress={props.onPress}
className={cn(
- "size-11 items-center justify-center rounded-full bg-subtle",
+ "size-11 items-center justify-center rounded-full",
+ props.selected ? "bg-subtle-strong" : "bg-subtle",