From 3dfe119f2aaeca329c9f9c19d57104e6cd84f6c9 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Fri, 26 May 2017 17:04:36 +0100 Subject: [PATCH] Bug 1374106, part 3 - Split up the video control closed captions on/off icon and convert it to use SVG context paint. r=dao MozReview-Commit-ID: KB8nARiNIkK --- toolkit/themes/shared/jar.inc.mn | 3 +- .../media/closedCaptionButton-cc-off.svg | 16 ++++++ .../media/closedCaptionButton-cc-on.svg | 17 ++++++ .../shared/media/closedCaptionButton.svg | 55 ------------------- toolkit/themes/shared/media/videocontrols.css | 22 ++------ 5 files changed, 41 insertions(+), 72 deletions(-) create mode 100644 toolkit/themes/shared/media/closedCaptionButton-cc-off.svg create mode 100644 toolkit/themes/shared/media/closedCaptionButton-cc-on.svg delete mode 100644 toolkit/themes/shared/media/closedCaptionButton.svg diff --git a/toolkit/themes/shared/jar.inc.mn b/toolkit/themes/shared/jar.inc.mn index dd335bf1dac7..1e13d84c407b 100644 --- a/toolkit/themes/shared/jar.inc.mn +++ b/toolkit/themes/shared/jar.inc.mn @@ -72,6 +72,8 @@ toolkit.jar: skin/classic/global/media/audioMutedButton.svg (../../shared/media/audioMutedButton.svg) skin/classic/global/media/audioNoAudioButton.svg (../../shared/media/audioNoAudioButton.svg) skin/classic/global/media/audioUnmutedButton.svg (../../shared/media/audioUnmutedButton.svg) + skin/classic/global/media/closedCaptionButton-cc-off.svg (../../shared/media/closedCaptionButton-cc-off.svg) + skin/classic/global/media/closedCaptionButton-cc-on.svg (../../shared/media/closedCaptionButton-cc-on.svg) skin/classic/global/media/TopLevelImageDocument.css (../../shared/media/TopLevelImageDocument.css) skin/classic/global/media/TopLevelVideoDocument.css (../../shared/media/TopLevelVideoDocument.css) skin/classic/global/media/imagedoc-lightnoise.png (../../shared/media/imagedoc-lightnoise.png) @@ -79,7 +81,6 @@ toolkit.jar: * skin/classic/global/media/videocontrols.css (../../shared/media/videocontrols.css) skin/classic/global/media/pauseButton.svg (../../shared/media/pauseButton.svg) skin/classic/global/media/playButton.svg (../../shared/media/playButton.svg) - skin/classic/global/media/closedCaptionButton.svg (../../shared/media/closedCaptionButton.svg) skin/classic/global/media/fullscreenButton.svg (../../shared/media/fullscreenButton.svg) skin/classic/global/media/error.png (../../shared/media/error.png) skin/classic/global/media/throbber.png (../../shared/media/throbber.png) diff --git a/toolkit/themes/shared/media/closedCaptionButton-cc-off.svg b/toolkit/themes/shared/media/closedCaptionButton-cc-off.svg new file mode 100644 index 000000000000..481c5c9cabd2 --- /dev/null +++ b/toolkit/themes/shared/media/closedCaptionButton-cc-off.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/toolkit/themes/shared/media/closedCaptionButton-cc-on.svg b/toolkit/themes/shared/media/closedCaptionButton-cc-on.svg new file mode 100644 index 000000000000..7f62144b9345 --- /dev/null +++ b/toolkit/themes/shared/media/closedCaptionButton-cc-on.svg @@ -0,0 +1,17 @@ + + + + + diff --git a/toolkit/themes/shared/media/closedCaptionButton.svg b/toolkit/themes/shared/media/closedCaptionButton.svg deleted file mode 100644 index 0c550719562d..000000000000 --- a/toolkit/themes/shared/media/closedCaptionButton.svg +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/toolkit/themes/shared/media/videocontrols.css b/toolkit/themes/shared/media/videocontrols.css index 01f5b4276654..7d426a46a7e2 100644 --- a/toolkit/themes/shared/media/videocontrols.css +++ b/toolkit/themes/shared/media/videocontrols.css @@ -98,12 +98,14 @@ audio > xul|videocontrols { } .playButton:hover, -.muteButton:hover { +.muteButton:hover, +.closedCaptionButton:hover { fill: #48a0f7; } .playButton:hover:active, -.muteButton:hover:active { +.muteButton:hover:active, +.closedCaptionButton:hover:active { fill: #2d89e6; } @@ -131,22 +133,10 @@ audio > xul|videocontrols { } .closedCaptionButton { - background-image: url(chrome://global/skin/media/closedCaptionButton.svg#cc-off); -} -.closedCaptionButton:hover { - background-image: url(chrome://global/skin/media/closedCaptionButton.svg#cc-off-hover); -} -.closedCaptionButton:hover:active { - background-image: url(chrome://global/skin/media/closedCaptionButton.svg#cc-off-active); + background-image: url(chrome://global/skin/media/closedCaptionButton-cc-off.svg); } .closedCaptionButton[enabled] { - background-image: url(chrome://global/skin/media/closedCaptionButton.svg#cc); -} -.closedCaptionButton[enabled]:hover { - background-image: url(chrome://global/skin/media/closedCaptionButton.svg#cc-hover); -} -.closedCaptionButton[enabled]:hover:active { - background-image: url(chrome://global/skin/media/closedCaptionButton.svg#cc-active); + background-image: url(chrome://global/skin/media/closedCaptionButton-cc-on.svg); } .fullscreenButton {