mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-21 17:18:23 -05:00
make icon colors consistent
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user