From 6688117c7ebeec99f60a3e5d9f61168035b5cd8f Mon Sep 17 00:00:00 2001 From: George Marshall Date: Fri, 25 Mar 2022 06:37:42 -0700 Subject: [PATCH] Dark mode: Updating lock icon decrypt message (#14198) --- app/images/lock.svg | 3 -- app/images/mm-info-icon.svg | 3 -- .../confirm-decrypt-message.component.js | 14 +++---- .../confirm-decrypt-message.scss | 40 ++++++++++--------- 4 files changed, 29 insertions(+), 31 deletions(-) delete mode 100644 app/images/lock.svg delete mode 100644 app/images/mm-info-icon.svg diff --git a/app/images/lock.svg b/app/images/lock.svg deleted file mode 100644 index 8ecb366ea..000000000 --- a/app/images/lock.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/app/images/mm-info-icon.svg b/app/images/mm-info-icon.svg deleted file mode 100644 index c6d4a4ad4..000000000 --- a/app/images/mm-info-icon.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/ui/pages/confirm-decrypt-message/confirm-decrypt-message.component.js b/ui/pages/confirm-decrypt-message/confirm-decrypt-message.component.js index 950497837..04d5e1574 100644 --- a/ui/pages/confirm-decrypt-message/confirm-decrypt-message.component.js +++ b/ui/pages/confirm-decrypt-message/confirm-decrypt-message.component.js @@ -177,15 +177,13 @@ export default class ConfirmDecryptMessage extends Component { {hasError ? errorMessage : ''}
- -
- {t('decryptMetamask')} +
+ +
+ {t('decryptMetamask')} +
diff --git a/ui/pages/confirm-decrypt-message/confirm-decrypt-message.scss b/ui/pages/confirm-decrypt-message/confirm-decrypt-message.scss index 1210f81a6..a619e5837 100644 --- a/ui/pages/confirm-decrypt-message/confirm-decrypt-message.scss +++ b/ui/pages/confirm-decrypt-message/confirm-decrypt-message.scss @@ -92,7 +92,7 @@ } &__account { - color: var(--color-text-muted); + color: var(--color-text-alternative); margin-left: 17px; } @@ -124,7 +124,7 @@ } &__balance { - color: var(--color-text-muted); + color: var(--color-text-alternative); margin-right: 17px; width: 124px; } @@ -193,13 +193,29 @@ top: 0; cursor: pointer; - img { - padding: 5px; + &__container { + padding: 16px; background-color: var(--color-background-default); - left: calc(50% - 24px); position: absolute; - top: calc(50% - 34px); + left: 50%; + top: 50%; border-radius: 3px; + transform: translate(-50%, calc(-50%)); + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + + + &__icon { + color: var(--color-icon-default); + display: flex; + margin-bottom: 16px; + } + + &__text { + @include H7; + } } &--pressed { @@ -207,18 +223,6 @@ } } - &-lock-text { - @include H7; - - width: 200px; - position: absolute; - top: calc(50% + 5px); - text-align: center; - left: calc(50% - 100px); - background-color: var(--color-background-default); - border-radius: 3px; - } - &-copy { @include H7;