Skip to content

Commit

Permalink
Improve mixer animations. (#2999)
Browse files Browse the repository at this point in the history
- Replace stills with .svg files (previously .gif)
- Smooth the transition from still to animated by removing transparent
 borders from images (also removes the need to offset the images by -2px)
- Give gifs a background color rather than transparency. Necessary to prevent jaggies.
  • Loading branch information
jholdstock committed Nov 27, 2020
1 parent a2dbc7d commit df4bef8
Show file tree
Hide file tree
Showing 9 changed files with 170 additions and 7 deletions.
5 changes: 2 additions & 3 deletions app/components/views/PrivacyPage/Privacy/Privacy.module.css
Expand Up @@ -61,11 +61,10 @@
font-size: 18px;
color: var(--privacy-mixer-status-color);
margin-bottom: 20px;
padding-left: 38px;
padding-left: 44px;
height: 34px;
align-items: center;
background-size: 36px;
background-position: -2px 0;
background-size: 34px;
background-repeat: no-repeat;
background-image: var(--decentralized-loop-still);
}
Expand Down
Binary file modified app/style/icons/decentralizedLoopAnimation.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/style/icons/decentralizedLoopAnimationDark.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/style/icons/decentralizedLoopStill.gif
Binary file not shown.
82 changes: 82 additions & 0 deletions app/style/icons/decentralizedLoopStill.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/style/icons/decentralizedLoopStillDark.gif
Binary file not shown.
82 changes: 82 additions & 0 deletions app/style/icons/decentralizedLoopStillDark.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/style/themes/darkTheme.js
Expand Up @@ -243,9 +243,9 @@ const darkTheme = {
"unmixed-account-icon": "url('style/icons/unmixedAccountDark.svg')",
"privacy-running-arrows": "url('style/icons/privacyRunningArrowsDark.svg')",
"decentralized-loop-still":
"url('style/icons/decentralizedLoopStillDark.gif')",
"url('style/icons/decentralizedLoopStillDark.svg')",
"decentralized-loop-animation":
"url('style/icons/decentralizedLoopAnimationDark.gif')",
"url('style/icons/decentralizedLoopAnimationDark.gif')",
"send-to-self-icon": "url('style/icons/sentToSelfTxDark.svg')"
};

Expand Down
4 changes: 2 additions & 2 deletions app/style/themes/lightTheme.js
Expand Up @@ -239,9 +239,9 @@ const lightTheme = {
"mixed-account-icon": "url('style/icons/mixedAccount.svg')",
"unmixed-account-icon": "url('style/icons/unmixedAccount.svg')",
"privacy-running-arrows": "url('style/icons/privacyRunningArrows.svg')",
"decentralized-loop-still": "url('style/icons/decentralizedLoopStill.gif')",
"decentralized-loop-still": "url('style/icons/decentralizedLoopStill.svg')",
"decentralized-loop-animation":
"url('style/icons/decentralizedLoopAnimation.gif')",
"url('style/icons/decentralizedLoopAnimation.gif')",
"send-to-self-icon": "url('style/icons/sentToSelfTx.svg')"
};

Expand Down

0 comments on commit df4bef8

Please sign in to comment.