From 005cc7410f5aad9613eab9d582dcf35cc13ac06a Mon Sep 17 00:00:00 2001 From: Arthur Jamet Date: Sun, 19 Nov 2023 09:48:34 +0100 Subject: [PATCH] Front: PlayView: Fix wrong theming of text color --- front/views/PlayView.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/front/views/PlayView.tsx b/front/views/PlayView.tsx index 1a2ac41..0c0f9b3 100644 --- a/front/views/PlayView.tsx +++ b/front/views/PlayView.tsx @@ -128,6 +128,7 @@ const PlayView = ({ songId, route }: RouteProps) => { }); const colorScheme = useColorScheme(); const { colors } = useTheme(); + const textColor = colorScheme == 'dark' ? colors.lightText : colors.coolGray; const onPause = () => { stopwatch.pause(); @@ -385,7 +386,7 @@ const PlayView = ({ songId, route }: RouteProps) => { alignItems: 'center', }} > - + {info.label} ) => { }} > {info.icon} - + {info.value} @@ -425,7 +426,7 @@ const PlayView = ({ songId, route }: RouteProps) => { borderRadius: 12, }} > - + {score} @@ -443,10 +444,10 @@ const PlayView = ({ songId, route }: RouteProps) => { borderRadius: 12, }} > - + {lastScoreMessage?.content} - + {streak > 0 && `x${streak}`} @@ -531,7 +532,7 @@ const PlayView = ({ songId, route }: RouteProps) => { }} > ) => { {song.data.name} ) => { /> )} - + {time < 0 ? paused ? '0:00'