From 67bc825d7fa743226b2c6f970049b7b440043c7a Mon Sep 17 00:00:00 2001 From: james-a-morris Date: Tue, 24 Sep 2024 15:26:35 -0400 Subject: [PATCH 1/2] improve: update token logo Signed-off-by: james-a-morris --- src/assets/chain-logos/optimism-grayscale.svg | 18 ++++++------------ .../chain-logos/optimism-sepolia-grayscale.svg | 18 ++++++------------ src/assets/chain-logos/optimism-sepolia.svg | 11 ++++++----- src/assets/chain-logos/optimism.svg | 11 ++++++----- src/assets/token-logos/op.svg | 10 +++++----- .../components/DepositStatusUpperCard.tsx | 7 +++++++ 6 files changed, 36 insertions(+), 39 deletions(-) diff --git a/src/assets/chain-logos/optimism-grayscale.svg b/src/assets/chain-logos/optimism-grayscale.svg index f1f83d901..d47ef7be1 100644 --- a/src/assets/chain-logos/optimism-grayscale.svg +++ b/src/assets/chain-logos/optimism-grayscale.svg @@ -1,12 +1,6 @@ - - - - - - - - - - - - + + + + + + \ No newline at end of file diff --git a/src/assets/chain-logos/optimism-sepolia-grayscale.svg b/src/assets/chain-logos/optimism-sepolia-grayscale.svg index f1f83d901..d47ef7be1 100644 --- a/src/assets/chain-logos/optimism-sepolia-grayscale.svg +++ b/src/assets/chain-logos/optimism-sepolia-grayscale.svg @@ -1,12 +1,6 @@ - - - - - - - - - - - - + + + + + + \ No newline at end of file diff --git a/src/assets/chain-logos/optimism-sepolia.svg b/src/assets/chain-logos/optimism-sepolia.svg index 2e5ce3103..ca5b8bf16 100644 --- a/src/assets/chain-logos/optimism-sepolia.svg +++ b/src/assets/chain-logos/optimism-sepolia.svg @@ -1,5 +1,6 @@ - - - - - + + + + + + \ No newline at end of file diff --git a/src/assets/chain-logos/optimism.svg b/src/assets/chain-logos/optimism.svg index 2e5ce3103..ca5b8bf16 100644 --- a/src/assets/chain-logos/optimism.svg +++ b/src/assets/chain-logos/optimism.svg @@ -1,5 +1,6 @@ - - - - - + + + + + + \ No newline at end of file diff --git a/src/assets/token-logos/op.svg b/src/assets/token-logos/op.svg index 2e5ce3103..6286f1011 100644 --- a/src/assets/token-logos/op.svg +++ b/src/assets/token-logos/op.svg @@ -1,5 +1,5 @@ - - - - - + + + + + \ No newline at end of file diff --git a/src/views/DepositStatus/components/DepositStatusUpperCard.tsx b/src/views/DepositStatus/components/DepositStatusUpperCard.tsx index d16672411..9f323deb6 100644 --- a/src/views/DepositStatus/components/DepositStatusUpperCard.tsx +++ b/src/views/DepositStatus/components/DepositStatusUpperCard.tsx @@ -430,6 +430,13 @@ const AnimatedLogoToChain = styled(AnimatedLogo)<{ status: DepositStatus }>` ? COLORS.white : COLORS.aqua}; + fill: ${({ status }) => + status === "depositing" || status === "deposit-reverted" + ? COLORS["grey-400"] + : status === "filling" + ? COLORS.white + : COLORS.aqua}; + // Use currentColor for the fill of rect, circle, and #path-to-animate & rect, circle, From 41eaaa69f21102e87f4d50fab2a4bfe325263a44 Mon Sep 17 00:00:00 2001 From: james-a-morris Date: Thu, 26 Sep 2024 12:04:09 -0400 Subject: [PATCH 2/2] fix: run generate-ui & highlight aqua on success Signed-off-by: james-a-morris --- .../optimism/assets/grayscale-logo.svg | 17 +++++----------- .../chain-configs/optimism/assets/logo.svg | 10 +++++----- src/assets/chain-logos/optimism-grayscale.svg | 3 +-- .../optimism-sepolia-grayscale.svg | 3 +-- src/assets/chain-logos/optimism-sepolia.svg | 3 +-- src/assets/chain-logos/optimism.svg | 3 +-- .../components/DepositStatusUpperCard.tsx | 20 +++++++++++++++++++ 7 files changed, 34 insertions(+), 25 deletions(-) diff --git a/scripts/chain-configs/optimism/assets/grayscale-logo.svg b/scripts/chain-configs/optimism/assets/grayscale-logo.svg index f1f83d901..03feaff02 100644 --- a/scripts/chain-configs/optimism/assets/grayscale-logo.svg +++ b/scripts/chain-configs/optimism/assets/grayscale-logo.svg @@ -1,12 +1,5 @@ - - - - - - - - - - - - + + + + + \ No newline at end of file diff --git a/scripts/chain-configs/optimism/assets/logo.svg b/scripts/chain-configs/optimism/assets/logo.svg index 2e5ce3103..126dbea86 100644 --- a/scripts/chain-configs/optimism/assets/logo.svg +++ b/scripts/chain-configs/optimism/assets/logo.svg @@ -1,5 +1,5 @@ - - - - - + + + + + \ No newline at end of file diff --git a/src/assets/chain-logos/optimism-grayscale.svg b/src/assets/chain-logos/optimism-grayscale.svg index d47ef7be1..03feaff02 100644 --- a/src/assets/chain-logos/optimism-grayscale.svg +++ b/src/assets/chain-logos/optimism-grayscale.svg @@ -1,5 +1,4 @@ - - + diff --git a/src/assets/chain-logos/optimism-sepolia-grayscale.svg b/src/assets/chain-logos/optimism-sepolia-grayscale.svg index d47ef7be1..03feaff02 100644 --- a/src/assets/chain-logos/optimism-sepolia-grayscale.svg +++ b/src/assets/chain-logos/optimism-sepolia-grayscale.svg @@ -1,5 +1,4 @@ - - + diff --git a/src/assets/chain-logos/optimism-sepolia.svg b/src/assets/chain-logos/optimism-sepolia.svg index ca5b8bf16..126dbea86 100644 --- a/src/assets/chain-logos/optimism-sepolia.svg +++ b/src/assets/chain-logos/optimism-sepolia.svg @@ -1,6 +1,5 @@ - - + \ No newline at end of file diff --git a/src/assets/chain-logos/optimism.svg b/src/assets/chain-logos/optimism.svg index ca5b8bf16..126dbea86 100644 --- a/src/assets/chain-logos/optimism.svg +++ b/src/assets/chain-logos/optimism.svg @@ -1,6 +1,5 @@ - - + \ No newline at end of file diff --git a/src/views/DepositStatus/components/DepositStatusUpperCard.tsx b/src/views/DepositStatus/components/DepositStatusUpperCard.tsx index 9f323deb6..418530448 100644 --- a/src/views/DepositStatus/components/DepositStatusUpperCard.tsx +++ b/src/views/DepositStatus/components/DepositStatusUpperCard.tsx @@ -417,6 +417,16 @@ const AnimatedLogoFromChain = styled(AnimatedLogo)<{ status: DepositStatus }>` #path-to-animate { fill: currentColor; } + + // Set the fill on the svg based on status if id=require-fill is present + &#requires-fill { + fill: ${({ status }) => + status === "deposit-reverted" + ? COLORS.warning + : status === "depositing" + ? COLORS.white + : COLORS.aqua}; + } } `; @@ -443,6 +453,16 @@ const AnimatedLogoToChain = styled(AnimatedLogo)<{ status: DepositStatus }>` #path-to-animate { fill: currentColor; } + + // Set the fill on the svg based on status if id=require-fill is present + &#requires-fill { + fill: ${({ status }) => + status === "deposit-reverted" + ? COLORS.warning + : status === "depositing" + ? COLORS.white + : COLORS.aqua}; + } } `;