Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 26 additions & 9 deletions app/(tabs)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,37 @@ export default function TabLayout() {
const colors = useColors();
const insets = useSafeAreaInsets();
const bottomPadding = Platform.OS === "web" ? 12 : Math.max(insets.bottom, 8);
const tabBarHeight = 56 + bottomPadding;
// Reserve enough vertical room for both the icon and its label on compact Android screens.
const tabBarHeight = 70 + bottomPadding;

return (
<Tabs
screenOptions={{
tabBarActiveTintColor: colors.tint,
tabBarInactiveTintColor: colors.muted,
headerShown: false,
tabBarButton: HapticTab,
tabBarHideOnKeyboard: true,
tabBarLabelStyle: { fontSize: design.type.eyebrow, fontWeight: "800", letterSpacing: 0.2 },
tabBarItemStyle: { borderRadius: design.radius.md, marginHorizontal: 2, marginVertical: 4 },
tabBarLabelStyle: {
fontSize: 10,
lineHeight: 12,
fontWeight: "800",
letterSpacing: 0,
includeFontPadding: false,
marginTop: 2,
marginBottom: 2,
},
tabBarItemStyle: {
flex: 1,
minWidth: 0,
borderRadius: design.radius.md,
marginHorizontal: 1,
marginVertical: 3,
paddingHorizontal: 0,
},
tabBarActiveBackgroundColor: design.color.orangeSoft,
tabBarStyle: {
paddingTop: 6,
paddingTop: 4,
paddingBottom: bottomPadding,
height: tabBarHeight,
backgroundColor: design.color.surface,
Expand All @@ -37,35 +54,35 @@ export default function TabLayout() {
name="index"
options={{
title: "Command",
tabBarIcon: ({ color }) => <IconSymbol size={24} name="shield.fill" color={color} />,
tabBarIcon: ({ color }) => <IconSymbol size={22} name="shield.fill" color={color} />,
}}
/>
<Tabs.Screen
name="assessments"
options={{
title: "Assess",
tabBarIcon: ({ color }) => <IconSymbol size={24} name="checkmark.seal.fill" color={color} />,
tabBarIcon: ({ color }) => <IconSymbol size={22} name="checkmark.seal.fill" color={color} />,
}}
/>
<Tabs.Screen
name="tools"
options={{
title: "Tools",
tabBarIcon: ({ color }) => <IconSymbol size={24} name="square.grid.2x2.fill" color={color} />,
tabBarIcon: ({ color }) => <IconSymbol size={22} name="square.grid.2x2.fill" color={color} />,
}}
/>
<Tabs.Screen
name="sessions"
options={{
title: "Sessions",
tabBarIcon: ({ color }) => <IconSymbol size={24} name="clock.arrow.circlepath" color={color} />,
tabBarIcon: ({ color }) => <IconSymbol size={22} name="clock.arrow.circlepath" color={color} />,
}}
/>
<Tabs.Screen
name="usb"
options={{
title: "USB Link",
tabBarIcon: ({ color }) => <IconSymbol size={24} name="cable.connector" color={color} />,
tabBarIcon: ({ color }) => <IconSymbol size={22} name="cable.connector" color={color} />,
}}
/>
<Tabs.Screen name="catalog" options={{ href: null }} />
Expand Down
Loading