From 2a60c9945be119a9449fdac1e965a764afd35dd9 Mon Sep 17 00:00:00 2001 From: jorbuedo Date: Wed, 15 Jan 2025 12:55:54 +0100 Subject: [PATCH] fix(wallet-mobile): Adjust staking icons dark background (#3787) --- .../src/components/Icon/TotalAda.tsx | 55 +++++++------- .../src/components/Icon/TotalDelegated.tsx | 73 ++++++++++--------- .../src/components/Icon/TotalReward.tsx | 57 ++++++++------- .../src/legacy/Dashboard/UserSummary.json | 16 ++-- 4 files changed, 108 insertions(+), 93 deletions(-) diff --git a/apps/wallet-mobile/src/components/Icon/TotalAda.tsx b/apps/wallet-mobile/src/components/Icon/TotalAda.tsx index a23c306fbb..f6cab180a1 100644 --- a/apps/wallet-mobile/src/components/Icon/TotalAda.tsx +++ b/apps/wallet-mobile/src/components/Icon/TotalAda.tsx @@ -1,38 +1,43 @@ +import {useTheme} from '@yoroi/theme' import React from 'react' import Svg, {Circle, G, Path} from 'react-native-svg' import {IconProps} from './type' -export const TotalAda = ({size = 44, color = 'black'}: IconProps) => ( - - - - - +export const TotalAda = ({size = 44, color = 'black'}: IconProps) => { + const {color: colors, isDark} = useTheme() - - - + return ( + + + + + - + + - + + + + + - - -) + + ) +} diff --git a/apps/wallet-mobile/src/components/Icon/TotalDelegated.tsx b/apps/wallet-mobile/src/components/Icon/TotalDelegated.tsx index 7bbf2c373d..7e0692e9ce 100644 --- a/apps/wallet-mobile/src/components/Icon/TotalDelegated.tsx +++ b/apps/wallet-mobile/src/components/Icon/TotalDelegated.tsx @@ -1,49 +1,54 @@ +import {useTheme} from '@yoroi/theme' import React from 'react' import Svg, {Circle, G, Path} from 'react-native-svg' import {IconProps} from './type' -export const TotalDelegated = ({size = 44, color = 'black'}: IconProps) => ( - - - - - - - - +export const TotalDelegated = ({size = 44, color = 'black'}: IconProps) => { + const {color: colors, isDark} = useTheme() - - + return ( + + + + + + - - - + + - - + + - - + + - + + + + + + + + - - -) + + ) +} diff --git a/apps/wallet-mobile/src/components/Icon/TotalReward.tsx b/apps/wallet-mobile/src/components/Icon/TotalReward.tsx index 7a80d8824f..5656ed8bd3 100644 --- a/apps/wallet-mobile/src/components/Icon/TotalReward.tsx +++ b/apps/wallet-mobile/src/components/Icon/TotalReward.tsx @@ -1,35 +1,40 @@ +import {useTheme} from '@yoroi/theme' import React from 'react' import Svg, {Circle, G, Path} from 'react-native-svg' import {IconProps} from './type' -export const TotalReward = ({size = 44, color = 'black'}: IconProps) => ( - - - - - +export const TotalReward = ({size = 44, color = 'black'}: IconProps) => { + const {color: colors, isDark} = useTheme() + + return ( + + + + + - - + + - + - + + - - -) + + ) +} diff --git a/apps/wallet-mobile/translations/messages/src/legacy/Dashboard/UserSummary.json b/apps/wallet-mobile/translations/messages/src/legacy/Dashboard/UserSummary.json index 05af0bc668..5b234789f8 100644 --- a/apps/wallet-mobile/translations/messages/src/legacy/Dashboard/UserSummary.json +++ b/apps/wallet-mobile/translations/messages/src/legacy/Dashboard/UserSummary.json @@ -6,12 +6,12 @@ "start": { "line": 163, "column": 9, - "index": 4904 + "index": 4901 }, "end": { "line": 166, "column": 3, - "index": 5006 + "index": 5003 } }, { @@ -21,12 +21,12 @@ "start": { "line": 167, "column": 16, - "index": 5024 + "index": 5021 }, "end": { "line": 170, "column": 3, - "index": 5134 + "index": 5131 } }, { @@ -36,12 +36,12 @@ "start": { "line": 171, "column": 18, - "index": 5154 + "index": 5151 }, "end": { "line": 174, "column": 3, - "index": 5268 + "index": 5265 } }, { @@ -51,12 +51,12 @@ "start": { "line": 175, "column": 23, - "index": 5293 + "index": 5290 }, "end": { "line": 178, "column": 3, - "index": 5405 + "index": 5402 } } ] \ No newline at end of file