Skip to content

Commit

Permalink
nicer styling for toggleLayer labels
Browse files Browse the repository at this point in the history
  • Loading branch information
K committed Feb 11, 2025
1 parent 91ed111 commit 070e9b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nr-app/src/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function Map() {
value={enabledLayers[key]}
onValueChange={() => void dispatch(mapActions.toggleLayer(key))}
/>
<Text style={styles.layerToggle}>{config.title} </Text>
<Text style={styles.layerToggle}> {config.title} </Text>
</View>
)}
/>
Expand Down Expand Up @@ -132,7 +132,8 @@ const styles = StyleSheet.create({
backgroundColor: "rgba(0, 0, 0, 0.7)",
},
layerToggle: {
backgroundColor: "rgba(255, 255, 0, 0.7)",
color: "rgba(255,255,255,1)",
backgroundColor: "rgba(10, 10, 0, 0.2)",
},
input: {
width: 200,
Expand Down

0 comments on commit 070e9b7

Please sign in to comment.