Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions frontend/calpoly-map/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function MapScreen({
routingActive,
routeRequested,
routeAccessibleOnly,
routeStartIsCurrentLocation,
setActivePath,
setRouteError,
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function MapFilters({
<View style={[styles.panel, mapStyle === "dark" && styles.panelDark]}>
<View style={styles.rowSpaceBetween}>
<Text style={[styles.panelTitle, mapStyle === "dark" && styles.panelTitleDark]}>Map Style</Text>
<Text style={styles.panelTitle}>Appearance</Text>
<Text style={[styles.panelTitle, mapStyle === "dark" && styles.panelTitleDark]}>Appearance</Text>
<Pressable
accessibilityRole="button"
accessibilityLabel={`Switch to ${nextMapStyle} mode`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@ import { Pressable, StyleSheet, Text, View } from "react-native";
import { useMapContext } from "../../../context/MapContext";

export function NavigationUI() {
const { exitNavigation, navSteps, activeStepIndex } = useMapContext();
const { exitNavigation, navSteps, activeStepIndex, mapStyle } = useMapContext();
const isDark = mapStyle === "dark";

return (
<View style={styles.container}>
<View style={styles.topBar}>
<Text style={styles.title}>Navigation Mode</Text>
<View style={[styles.topBar, isDark && styles.topBarDark]}>
<Text style={[styles.title, isDark && styles.titleDark]}>Navigation Mode</Text>
{navSteps.length > 0 && (
<Text style={styles.step}>
<Text style={[styles.step, isDark && styles.stepDark]}>
Step {activeStepIndex + 1}/{navSteps.length}:{" "}
{navSteps[activeStepIndex]?.instruction}
</Text>
)}
</View>

<View style={styles.bottomPanel}>
<View style={[styles.bottomPanel, isDark && styles.bottomPanelDark]}>
<Pressable
accessibilityRole="button"
accessibilityLabel="Exit navigation"
Expand Down Expand Up @@ -56,16 +57,25 @@ const styles = StyleSheet.create({
shadowOffset: { width: 0, height: 4 },
elevation: 4,
},
topBarDark: {
backgroundColor: "#1C1F26",
},
title: {
fontSize: 16,
fontWeight: "700",
color: "#111827",
},
titleDark: {
color: "#F1F3F5",
},
step: {
fontSize: 14,
color: "#374151",
marginTop: 6,
},
stepDark: {
color: "#CBD5E1",
},
bottomPanel: {
marginBottom: 48,
marginHorizontal: 16,
Expand All @@ -79,6 +89,9 @@ const styles = StyleSheet.create({
elevation: 4,
alignItems: "center",
},
bottomPanelDark: {
backgroundColor: "#1C1F26",
},
exitButton: {
paddingHorizontal: 24,
paddingVertical: 12,
Expand Down
Loading