make icon colors consistent

This commit is contained in:
Violet Caulfield
2025-01-25 13:56:30 -06:00
parent cbbd5f7616
commit 68706c83ba
2 changed files with 12 additions and 11 deletions
+9 -6
View File
@@ -131,12 +131,15 @@ export default function Track({
alignContent="center"
justifyContent="center"
>
<Icon name="dots-vertical" onPress={() => {
navigation.push("Details", {
item: track,
isNested: isNested
});
}} />
<Icon
name="dots-vertical"
onPress={() => {
navigation.push("Details", {
item: track,
isNested: isNested
});
}}
/>
</YStack>
</XStack>
+3 -5
View File
@@ -1,7 +1,6 @@
import React from "react"
import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"
import { useColorScheme } from "react-native";
import { ColorTokens, getTokens } from "tamagui";
import { useTheme } from "tamagui";
const smallSize = 24;
@@ -22,14 +21,13 @@ export default function Icon({
color?: string | undefined
}) : React.JSX.Element {
const isDarkMode = useColorScheme() === "dark"
const theme = useTheme();
let size = large ? largeSize : small ? smallSize : regularSize
return (
<MaterialCommunityIcons
color={color ? color
: isDarkMode ? getTokens().color.$amethyst.val
: getTokens().color.$purpleDark.val
: theme.color.val
}
name={name}
onPress={onPress}