From 9c191e56aabbb004e4a8c67367c378bb5c96aba6 Mon Sep 17 00:00:00 2001 From: Sam Foster Date: Thu, 10 Jun 2021 20:37:27 +0000 Subject: [PATCH] Bug 1713956 - Swap animation names and filenames so reload-to-stop animates from reload to stop icon, and stop-to-reload animates from stop to reload. r=jaws Differential Revision: https://phabricator.services.mozilla.com/D117053 --- .../themes/shared/icons/reload-to-stop.svg | 398 ++++++----------- .../themes/shared/icons/stop-to-reload.svg | 400 ++++++++++++------ .../themes/shared/toolbarbutton-icons.inc.css | 12 +- 3 files changed, 405 insertions(+), 405 deletions(-) diff --git a/browser/themes/shared/icons/reload-to-stop.svg b/browser/themes/shared/icons/reload-to-stop.svg index 3019ae6f9222..3c36ae3e319b 100644 --- a/browser/themes/shared/icons/reload-to-stop.svg +++ b/browser/themes/shared/icons/reload-to-stop.svg @@ -1,349 +1,191 @@ - + - - - - - - - - - - - + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - + + + + + + + + - - - - - - - + + + + + + + + - - - - - - - + + + + + + + + - - - - - - - + + + + + + + + - - - - - - - + + + + + + + + + + + + + - - - - - + + + + + + + + - + - - + + + - - - - - - - + + - - - - - - - - - - - - - + + - - - - - - + - - - + + - - - - - - + - - - + + - - - - - - - - + + + + + + + - - - - - - - - + + + + + + + - - - - - - - - + + + + + + + - - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + diff --git a/browser/themes/shared/icons/stop-to-reload.svg b/browser/themes/shared/icons/stop-to-reload.svg index 3c36ae3e319b..3019ae6f9222 100644 --- a/browser/themes/shared/icons/stop-to-reload.svg +++ b/browser/themes/shared/icons/stop-to-reload.svg @@ -1,191 +1,349 @@ - + - - - - - - - - - - - - - - + + - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + - - - - - - - - + + + + + + + - - - - - - - - + + + + + + + - - - - - - - - + + + + + + + - - - - - - - - + + + + + + + - - - - - - - - + + + + + - - - - - - + - - - + + - - + + + + + + + - - + + + + + + + + + + + + + + + + + + - + - - + + + + + + + + - + - - + + + - - - - - - - + + + + + + + + - - - - - - - + + + + + + + + - - - - - - - + + + + + + + + - - - - - - - + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/browser/themes/shared/toolbarbutton-icons.inc.css b/browser/themes/shared/toolbarbutton-icons.inc.css index 6de168368436..c40d4c8c67bd 100644 --- a/browser/themes/shared/toolbarbutton-icons.inc.css +++ b/browser/themes/shared/toolbarbutton-icons.inc.css @@ -88,7 +88,7 @@ toolbar[brighttext] { fill: transparent; } -@keyframes reload-to-stop { +@keyframes stop-to-reload { from { transform: translateX(0); } @@ -97,7 +97,7 @@ toolbar[brighttext] { } } -@keyframes stop-to-reload { +@keyframes reload-to-stop { from { transform: translateX(0); } @@ -127,13 +127,13 @@ toolbar[brighttext] { } #stop-reload-button[animate] > #reload-button > .toolbarbutton-animatable-box > .toolbarbutton-animatable-image { - background-image: url("chrome://browser/skin/reload-to-stop.svg"); + background-image: url("chrome://browser/skin/stop-to-reload.svg"); width: 720px; height: 20px; } #stop-reload-button[animate] > #reload-button:not([displaystop]) > .toolbarbutton-animatable-box > .toolbarbutton-animatable-image { - animation-name: reload-to-stop; + animation-name: stop-to-reload; } #reload-button:not([displaystop]) > .toolbarbutton-animatable-box > .toolbarbutton-animatable-image { @@ -142,13 +142,13 @@ toolbar[brighttext] { } #stop-reload-button[animate] > #reload-button[displaystop] + #stop-button > .toolbarbutton-animatable-box > .toolbarbutton-animatable-image { - background-image: url("chrome://browser/skin/stop-to-reload.svg"); + background-image: url("chrome://browser/skin/reload-to-stop.svg"); width: 320px; height: 20px; } #stop-reload-button[animate] > #reload-button[displaystop] + #stop-button > .toolbarbutton-animatable-box > .toolbarbutton-animatable-image { - animation-name: stop-to-reload; + animation-name: reload-to-stop; } #reload-button[displaystop] + #stop-button > .toolbarbutton-animatable-box > .toolbarbutton-animatable-image {