From 1d5f9f7aa7ac0bfe6a091b7c1395cafa33d52c43 Mon Sep 17 00:00:00 2001
From: Horst3180
Date: Wed, 19 Aug 2015 19:38:44 +0200
Subject: add firefox theme
---
.../chrome/global/media/TopLevelImageDocument.css | 17 ++
.../chrome/global/media/TopLevelVideoDocument.css | 11 +
.../chrome/global/media/clicktoplay-bgtexture.png | Bin 0 -> 1751 bytes
arc-firefox-theme/chrome/global/media/error.png | Bin 0 -> 433 bytes
.../chrome/global/media/fullscreenButton.png | Bin 0 -> 733 bytes
.../chrome/global/media/imagedoc-darknoise.png | Bin 0 -> 3050 bytes
.../chrome/global/media/imagedoc-lightnoise.png | Bin 0 -> 4025 bytes
.../chrome/global/media/muteButton.png | Bin 0 -> 619 bytes
arc-firefox-theme/chrome/global/media/noAudio.png | Bin 0 -> 930 bytes
.../chrome/global/media/pauseButton.png | Bin 0 -> 269 bytes
.../chrome/global/media/playButton.png | Bin 0 -> 448 bytes
.../chrome/global/media/scrubberThumb.png | Bin 0 -> 562 bytes
.../chrome/global/media/scrubberThumbWide.png | Bin 0 -> 563 bytes
arc-firefox-theme/chrome/global/media/stalled.png | Bin 0 -> 20763 bytes
arc-firefox-theme/chrome/global/media/throbber.png | Bin 0 -> 30718 bytes
.../chrome/global/media/unmuteButton.png | Bin 0 -> 324 bytes
.../chrome/global/media/videoClickToPlayButton.svg | 79 +++++
.../chrome/global/media/videocontrols.css | 319 +++++++++++++++++++++
.../chrome/global/media/volume-empty.png | Bin 0 -> 295 bytes
.../chrome/global/media/volume-full.png | Bin 0 -> 297 bytes
20 files changed, 426 insertions(+)
create mode 100644 arc-firefox-theme/chrome/global/media/TopLevelImageDocument.css
create mode 100644 arc-firefox-theme/chrome/global/media/TopLevelVideoDocument.css
create mode 100644 arc-firefox-theme/chrome/global/media/clicktoplay-bgtexture.png
create mode 100644 arc-firefox-theme/chrome/global/media/error.png
create mode 100644 arc-firefox-theme/chrome/global/media/fullscreenButton.png
create mode 100644 arc-firefox-theme/chrome/global/media/imagedoc-darknoise.png
create mode 100644 arc-firefox-theme/chrome/global/media/imagedoc-lightnoise.png
create mode 100644 arc-firefox-theme/chrome/global/media/muteButton.png
create mode 100644 arc-firefox-theme/chrome/global/media/noAudio.png
create mode 100644 arc-firefox-theme/chrome/global/media/pauseButton.png
create mode 100644 arc-firefox-theme/chrome/global/media/playButton.png
create mode 100644 arc-firefox-theme/chrome/global/media/scrubberThumb.png
create mode 100644 arc-firefox-theme/chrome/global/media/scrubberThumbWide.png
create mode 100644 arc-firefox-theme/chrome/global/media/stalled.png
create mode 100644 arc-firefox-theme/chrome/global/media/throbber.png
create mode 100644 arc-firefox-theme/chrome/global/media/unmuteButton.png
create mode 100644 arc-firefox-theme/chrome/global/media/videoClickToPlayButton.svg
create mode 100644 arc-firefox-theme/chrome/global/media/videocontrols.css
create mode 100644 arc-firefox-theme/chrome/global/media/volume-empty.png
create mode 100644 arc-firefox-theme/chrome/global/media/volume-full.png
(limited to 'arc-firefox-theme/chrome/global/media')
diff --git a/arc-firefox-theme/chrome/global/media/TopLevelImageDocument.css b/arc-firefox-theme/chrome/global/media/TopLevelImageDocument.css
new file mode 100644
index 0000000..5242175
--- /dev/null
+++ b/arc-firefox-theme/chrome/global/media/TopLevelImageDocument.css
@@ -0,0 +1,17 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+@media not print {
+ /* N.B.: Remember to update ImageDocument.css in the tree or reftests may fail! */
+
+ body {
+ color: #eee;
+ background-image: url("chrome://global/skin/media/imagedoc-darknoise.png");
+ }
+
+ img.transparent {
+ background: hsl(0,0%,90%) url("chrome://global/skin/media/imagedoc-lightnoise.png");
+ color: #222;
+ }
+}
diff --git a/arc-firefox-theme/chrome/global/media/TopLevelVideoDocument.css b/arc-firefox-theme/chrome/global/media/TopLevelVideoDocument.css
new file mode 100644
index 0000000..3060bf8
--- /dev/null
+++ b/arc-firefox-theme/chrome/global/media/TopLevelVideoDocument.css
@@ -0,0 +1,11 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+body {
+ background-image: url("chrome://global/skin/media/imagedoc-darknoise.png");
+}
+
+video {
+ box-shadow: 0 0 15px #000;
+}
diff --git a/arc-firefox-theme/chrome/global/media/clicktoplay-bgtexture.png b/arc-firefox-theme/chrome/global/media/clicktoplay-bgtexture.png
new file mode 100644
index 0000000..0d3cacd
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/clicktoplay-bgtexture.png differ
diff --git a/arc-firefox-theme/chrome/global/media/error.png b/arc-firefox-theme/chrome/global/media/error.png
new file mode 100644
index 0000000..58e3728
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/error.png differ
diff --git a/arc-firefox-theme/chrome/global/media/fullscreenButton.png b/arc-firefox-theme/chrome/global/media/fullscreenButton.png
new file mode 100644
index 0000000..ffbc3d5
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/fullscreenButton.png differ
diff --git a/arc-firefox-theme/chrome/global/media/imagedoc-darknoise.png b/arc-firefox-theme/chrome/global/media/imagedoc-darknoise.png
new file mode 100644
index 0000000..5c33e24
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/imagedoc-darknoise.png differ
diff --git a/arc-firefox-theme/chrome/global/media/imagedoc-lightnoise.png b/arc-firefox-theme/chrome/global/media/imagedoc-lightnoise.png
new file mode 100644
index 0000000..3467cf4
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/imagedoc-lightnoise.png differ
diff --git a/arc-firefox-theme/chrome/global/media/muteButton.png b/arc-firefox-theme/chrome/global/media/muteButton.png
new file mode 100644
index 0000000..8944807
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/muteButton.png differ
diff --git a/arc-firefox-theme/chrome/global/media/noAudio.png b/arc-firefox-theme/chrome/global/media/noAudio.png
new file mode 100644
index 0000000..3db8c97
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/noAudio.png differ
diff --git a/arc-firefox-theme/chrome/global/media/pauseButton.png b/arc-firefox-theme/chrome/global/media/pauseButton.png
new file mode 100644
index 0000000..944098c
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/pauseButton.png differ
diff --git a/arc-firefox-theme/chrome/global/media/playButton.png b/arc-firefox-theme/chrome/global/media/playButton.png
new file mode 100644
index 0000000..11e2731
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/playButton.png differ
diff --git a/arc-firefox-theme/chrome/global/media/scrubberThumb.png b/arc-firefox-theme/chrome/global/media/scrubberThumb.png
new file mode 100644
index 0000000..f159627
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/scrubberThumb.png differ
diff --git a/arc-firefox-theme/chrome/global/media/scrubberThumbWide.png b/arc-firefox-theme/chrome/global/media/scrubberThumbWide.png
new file mode 100644
index 0000000..96d2ed7
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/scrubberThumbWide.png differ
diff --git a/arc-firefox-theme/chrome/global/media/stalled.png b/arc-firefox-theme/chrome/global/media/stalled.png
new file mode 100644
index 0000000..5253758
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/stalled.png differ
diff --git a/arc-firefox-theme/chrome/global/media/throbber.png b/arc-firefox-theme/chrome/global/media/throbber.png
new file mode 100644
index 0000000..8e49fe5
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/throbber.png differ
diff --git a/arc-firefox-theme/chrome/global/media/unmuteButton.png b/arc-firefox-theme/chrome/global/media/unmuteButton.png
new file mode 100644
index 0000000..5b76e2f
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/unmuteButton.png differ
diff --git a/arc-firefox-theme/chrome/global/media/videoClickToPlayButton.svg b/arc-firefox-theme/chrome/global/media/videoClickToPlayButton.svg
new file mode 100644
index 0000000..f118afb
--- /dev/null
+++ b/arc-firefox-theme/chrome/global/media/videoClickToPlayButton.svg
@@ -0,0 +1,79 @@
+
+
+
diff --git a/arc-firefox-theme/chrome/global/media/videocontrols.css b/arc-firefox-theme/chrome/global/media/videocontrols.css
new file mode 100644
index 0000000..17101ad
--- /dev/null
+++ b/arc-firefox-theme/chrome/global/media/videocontrols.css
@@ -0,0 +1,319 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+@namespace html url("http://www.w3.org/1999/xhtml");
+
+.controlBar {
+ height: 28px;
+ background-color: rgba(35,31,32,.74);
+}
+
+.playButton,
+.muteButton,
+.fullscreenButton {
+ background-color: transparent;
+ background-repeat: no-repeat;
+ background-position: center;
+ -moz-appearance: none; /* Remove the native button appearance and styling */
+ margin: 0;
+ padding: 0;
+ min-height: 28px;
+ min-width: 28px;
+ border: none;
+ opacity: 0.7;
+}
+
+.playButton:hover,
+.muteButton:hover,
+.fullscreenButton:hover {
+ opacity: 1;
+}
+
+.playButton:hover:active,
+.muteButton:hover:active,
+.fullscreenButton:hover:active {
+ opacity: 0.4;
+}
+
+.playButton {
+ background-image: url(chrome://global/skin/media/pauseButton.png);
+ margin-right: -22px; /* 1/2 of scrubber thumb width, for overhang. */
+ position: relative; /* Trick to work around negative margin interfering with clicking on the button. */
+}
+
+.playButton[paused] {
+ background-image: url(chrome://global/skin/media/playButton.png);
+}
+
+.muteButton {
+ background-image: url(chrome://global/skin/media/muteButton.png);
+ min-width: 33px;
+}
+.muteButton[muted] {
+ background-image: url(chrome://global/skin/media/unmuteButton.png);
+}
+
+.muteButton[noAudio] {
+ background-image: url(chrome://global/skin/media/noAudio.png);
+}
+
+.muteButton[noAudio] + .volumeStack {
+ display: none;
+}
+
+.fullscreenButton {
+ background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 16, 16, 0);
+}
+
+.fullscreenButton[fullscreened] {
+ background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 32, 16, 16);
+}
+
+.volumeControl {
+ width: 32px;
+ opacity: 0;
+}
+
+.volumeBackground,
+.volumeForeground {
+ background-repeat: no-repeat;
+ background-position: center;
+ width: 32px;
+}
+
+.volumeBackground {
+ background-image: url(chrome://global/skin/media/volume-empty.png);
+}
+
+.volumeForeground {
+ background-image: url(chrome://global/skin/media/volume-full.png);
+ background-clip: content-box;
+}
+
+.controlBar[fullscreen-unavailable] > .volumeStack {
+ /* This value is duplicated in the videocontrols.xml adjustControlSize function. */
+ -moz-margin-end: 8px;
+}
+
+.volumeControl .scale-thumb {
+ min-width: 0;
+ opacity: 0;
+}
+
+.durationBox {
+ -moz-box-pack: center;
+}
+
+.durationLabel {
+ margin-left: -22px; /* 1/2 of scrubber thumb width, for overhang. */
+ padding-left: 8px; /* don't bump into the scrubber bar */
+ padding-top: 0; /* center vertically with scrubber bar */
+ color: rgba(255,255,255,.75);
+ font-size: 11px;
+ font-family: Arial, sans-serif;
+}
+
+.positionLabel {
+ display: none;
+}
+
+.backgroundBar {
+ /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
+ /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
+ margin: 10px 22px;
+ background-color: rgba(255,255,255,.5);
+ border-radius: 2.5px;
+}
+
+.bufferBar,
+.progressBar {
+ /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
+ /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
+ margin: 10px 22px;
+ -moz-appearance: none;
+ border: none;
+ background-color: transparent;
+ min-width: 0;
+ min-height: 0;
+}
+
+/* .progress-bar is an element inside the implementation. */
+.bufferBar .progress-bar {
+ /*
+ * Note that this is drawn on top of the .backgroundBar. So although this
+ * has the same background-color specified, the semitransparent
+ * compositing gives it a different visual appearance.
+ */
+ background-color: rgba(255,255,255,.5);
+ border-radius: 2.5px;
+ -moz-appearance: none;
+}
+
+.progressBar .progress-bar {
+ background-color: white;
+ border-radius: 2.5px;
+ -moz-appearance: none;
+}
+
+/* .scale-slider is an element inside the implementation. */
+.scrubber .scale-slider,
+.volumeControl .scale-slider {
+ /* Hide the default horizontal bar. */
+ -moz-appearance: none;
+ background: none;
+ margin: 0;
+}
+
+.scrubber .scale-slider {
+ /* abs(margin-top) + margin-bottom + bar height == timeThumb height */
+ margin-top: -10px;
+ margin-bottom: 10px;
+}
+
+/* .scale-thumb is an element inside the implementation. */
+.scrubber .scale-thumb,
+.volumeControl .scale-thumb {
+ /* Override the default thumb appearance with a custom image. */
+ -moz-appearance: none;
+ background: transparent;
+ border: none;
+}
+
+.timeThumb {
+ background: url(chrome://global/skin/media/scrubberThumb.png) no-repeat center;
+ min-width: 45px;
+ min-height: 28px;
+ -moz-box-pack: center;
+}
+
+.timeThumb[showhours="true"] {
+ background-image: url(chrome://global/skin/media/scrubberThumbWide.png);
+}
+
+.timeLabel {
+ color: rgba(255,255,255,.75);
+ font-size: 10px;
+ font-family: Arial, sans-serif;
+ text-shadow: rgba(0,0,0,.3) 0 1px;
+ padding-top: 5px;
+}
+
+.statusOverlay {
+ -moz-box-align: center;
+ -moz-box-pack: center;
+ background-color: rgba(0,0,0,.55);
+}
+
+.statusIcon {
+ margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */
+ width: 36px;
+ height: 36px;
+}
+
+.statusIcon[type="throbber"] {
+ background: url(chrome://global/skin/media/throbber.png) no-repeat center;
+}
+
+.statusIcon[type="throbber"][stalled] {
+ background: url(chrome://global/skin/media/stalled.png) no-repeat center;
+}
+
+.statusIcon[type="error"] {
+ background: url(chrome://global/skin/media/error.png) no-repeat center;
+}
+
+/* Overlay Play button */
+.clickToPlay {
+ width: 64px;
+ height: 64px;
+ -moz-box-pack: center;
+ -moz-box-align: center;
+ opacity: 0.7;
+ background-image: url(chrome://global/skin/media/clicktoplay-bgtexture.png),
+ url(chrome://global/skin/media/videoClickToPlayButton.svg);
+ background-repeat: repeat, no-repeat;
+ background-position: center, center;
+ background-size: auto, 64px 64px;
+ background-color: hsla(0,0%,10%,.5);
+}
+.clickToPlay:hover {
+ opacity: 1;
+}
+
+/* Statistics formatting */
+html|*.statsDiv {
+ position: relative;
+}
+html|td {
+ height: 1em;
+ max-height: 1em;
+ padding: 0 2px;
+}
+html|table {
+ font-family: Helvetica, Arial, sans-serif;
+ font-size: 11px;
+ color: white;
+ text-shadow:
+ -1px -1px 0 #000,
+ 1px -1px 0 #000,
+ -1px 1px 0 #000,
+ 1px 1px 0 #000;
+ min-width: 100%;
+ background: rgba(68,68,68,.7);
+ table-layout: fixed;
+ border-collapse: collapse;
+ position: absolute;
+}
+
+/* CSS Transitions */
+.clickToPlay {
+ transition-property: opacity, background-size;
+ transition-duration: 400ms, 400ms;
+}
+.clickToPlay[fadeout] {
+ background-size: auto, 192px 192px;
+ opacity: 0;
+}
+.clickToPlay[fadeout][immediate] {
+ transition-property: opacity, background-size;
+ transition-duration: 0s, 0s;
+}
+.controlBar:not([immediate]) {
+ transition-property: opacity;
+ transition-duration: 200ms;
+}
+.controlBar[fadeout] {
+ opacity: 0;
+}
+.volumeStack:not([immediate]) {
+ transition-property: opacity, margin-top;
+ transition-duration: 200ms, 200ms;
+}
+.volumeStack[fadeout] {
+ opacity: 0;
+ margin-top: 0;
+}
+.statusOverlay:not([immediate]) {
+ transition-property: opacity;
+ transition-duration: 300ms;
+ transition-delay: 750ms;
+}
+.statusOverlay[fadeout] {
+ opacity: 0;
+}
+
+/* Error description formatting */
+.errorLabel {
+ font-family: Helvetica, Arial, sans-serif;
+ font-size: 11px;
+ color: #bbb;
+ text-shadow:
+ -1px -1px 0 #000,
+ 1px -1px 0 #000,
+ -1px 1px 0 #000,
+ 1px 1px 0 #000;
+ padding: 0 10px;
+ text-align: center;
+}
diff --git a/arc-firefox-theme/chrome/global/media/volume-empty.png b/arc-firefox-theme/chrome/global/media/volume-empty.png
new file mode 100644
index 0000000..589abfb
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/volume-empty.png differ
diff --git a/arc-firefox-theme/chrome/global/media/volume-full.png b/arc-firefox-theme/chrome/global/media/volume-full.png
new file mode 100644
index 0000000..4398a56
Binary files /dev/null and b/arc-firefox-theme/chrome/global/media/volume-full.png differ
--
cgit v1.2.3