From 66cc7d91a44fd6789b80cd61ee7b84c63d402122 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Sat, 17 Nov 2018 10:25:16 +0800 Subject: Issue #638 - Part 7: Remove hover and active states for sound indicator --- application/palemoon/themes/linux/browser.css | 50 ++------- application/palemoon/themes/osx/browser.css | 50 ++------- .../themes/shared/tabbrowser/tab-audio-small.svg | 113 ++++++++------------- .../themes/shared/tabbrowser/tab-audio.svg | 88 ++-------------- application/palemoon/themes/windows/browser.css | 50 ++------- 5 files changed, 74 insertions(+), 277 deletions(-) diff --git a/application/palemoon/themes/linux/browser.css b/application/palemoon/themes/linux/browser.css index 3439bb3fb..1eed36741 100644 --- a/application/palemoon/themes/linux/browser.css +++ b/application/palemoon/themes/linux/browser.css @@ -1766,7 +1766,7 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action- padding: 0; } -.tab-icon-sound:not(:-moz-any([soundplaying],[muted])), +.tab-icon-sound:not(:-moz-any([soundplaying],[muted],[blocked])), .tab-icon-sound[pinned] { display: none; } @@ -1776,56 +1776,20 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action- list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio"); } -.tab-icon-sound[soundplaying]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-hover"); -} - -.tab-icon-sound[soundplaying]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-pressed"); -} - .alltabs-endimage[muted], -.alltabs-endimage[blocked], -.tab-icon-sound[muted], -.tab-icon-sound[blocked] { +.tab-icon-sound[muted] { list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted"); } -.tab-icon-sound[muted]:hover, -.tab-icon-sound[blocked]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-hover"); -} - -.tab-icon-sound[muted]:hover:active, -.tab-icon-sound[blocked]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-pressed"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[soundplaying] { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark-hover"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark-pressed"); +.alltabs-endimage[blocked], +.tab-icon-sound[blocked] { + list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-blocked"); } +#TabsToolbar[brighttext] .tab-icon-sound[soundplaying], #TabsToolbar[brighttext] .tab-icon-sound[blocked], #TabsToolbar[brighttext] .tab-icon-sound[muted] { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[blocked]:hover, -#TabsToolbar[brighttext] .tab-icon-sound[muted]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark-hover"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[blocked]:hover:active, -#TabsToolbar[brighttext] .tab-icon-sound[muted]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark-pressed"); + filter: invert(1); } .tab-icon-sound[soundplaying-scheduledremoval]:not([muted]):not(:hover), diff --git a/application/palemoon/themes/osx/browser.css b/application/palemoon/themes/osx/browser.css index 754740562..e402a3f0d 100644 --- a/application/palemoon/themes/osx/browser.css +++ b/application/palemoon/themes/osx/browser.css @@ -1829,7 +1829,7 @@ richlistitem[type~="action"][actiontype="switchtab"][selected="true"] > .ac-url- padding: 0; } -.tab-icon-sound:not(:-moz-any([soundplaying],[muted])), +.tab-icon-sound:not(:-moz-any([soundplaying],[muted],[blocked])), .tab-icon-sound[pinned] { display: none; } @@ -1839,56 +1839,20 @@ richlistitem[type~="action"][actiontype="switchtab"][selected="true"] > .ac-url- list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio"); } -.tab-icon-sound[soundplaying]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-hover"); -} - -.tab-icon-sound[soundplaying]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-pressed"); -} - .alltabs-endimage[muted], -.alltabs-endimage[blocked], -.tab-icon-sound[muted], -.tab-icon-sound[blocked] { +.tab-icon-sound[muted] { list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted"); } -.tab-icon-sound[muted]:hover, -.tab-icon-sound[blocked]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-hover"); -} - -.tab-icon-sound[muted]:hover:active, -.tab-icon-sound[blocked]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-pressed"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[soundplaying] { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark-hover"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark-pressed"); +.alltabs-endimage[blocked], +.tab-icon-sound[blocked] { + list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-blocked"); } +#TabsToolbar[brighttext] .tab-icon-sound[soundplaying], #TabsToolbar[brighttext] .tab-icon-sound[blocked], #TabsToolbar[brighttext] .tab-icon-sound[muted] { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[blocked]:hover, -#TabsToolbar[brighttext] .tab-icon-sound[muted]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark-hover"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[blocked]:hover:active, -#TabsToolbar[brighttext] .tab-icon-sound[muted]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark-pressed"); + filter: invert(1); } .tab-icon-sound[soundplaying-scheduledremoval]:not([muted]):not(:hover), diff --git a/application/palemoon/themes/shared/tabbrowser/tab-audio-small.svg b/application/palemoon/themes/shared/tabbrowser/tab-audio-small.svg index da4ad3ef9..abfe71268 100644 --- a/application/palemoon/themes/shared/tabbrowser/tab-audio-small.svg +++ b/application/palemoon/themes/shared/tabbrowser/tab-audio-small.svg @@ -4,82 +4,55 @@ - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/application/palemoon/themes/shared/tabbrowser/tab-audio.svg b/application/palemoon/themes/shared/tabbrowser/tab-audio.svg index 1949c0595..274e10c29 100644 --- a/application/palemoon/themes/shared/tabbrowser/tab-audio.svg +++ b/application/palemoon/themes/shared/tabbrowser/tab-audio.svg @@ -2,85 +2,17 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + diff --git a/application/palemoon/themes/windows/browser.css b/application/palemoon/themes/windows/browser.css index 26d096055..ca3d187c1 100644 --- a/application/palemoon/themes/windows/browser.css +++ b/application/palemoon/themes/windows/browser.css @@ -2026,7 +2026,7 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action- padding: 0; } -.tab-icon-sound:not(:-moz-any([soundplaying],[muted])), +.tab-icon-sound:not(:-moz-any([soundplaying],[muted],[blocked])), .tab-icon-sound[pinned] { display: none; } @@ -2036,56 +2036,20 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action- list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio"); } -.tab-icon-sound[soundplaying]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-hover"); -} - -.tab-icon-sound[soundplaying]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-pressed"); -} - .alltabs-endimage[muted], -.alltabs-endimage[blocked], -.tab-icon-sound[muted], -.tab-icon-sound[blocked] { +.tab-icon-sound[muted] { list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted"); } -.tab-icon-sound[muted]:hover, -.tab-icon-sound[blocked]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-hover"); -} - -.tab-icon-sound[muted]:hover:active, -.tab-icon-sound[blocked]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-pressed"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[soundplaying] { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark-hover"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark-pressed"); +.alltabs-endimage[blocked], +.tab-icon-sound[blocked] { + list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-blocked"); } +#TabsToolbar[brighttext] .tab-icon-sound[soundplaying], #TabsToolbar[brighttext] .tab-icon-sound[blocked], #TabsToolbar[brighttext] .tab-icon-sound[muted] { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[blocked]:hover, -#TabsToolbar[brighttext] .tab-icon-sound[muted]:hover { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark-hover"); -} - -#TabsToolbar[brighttext] .tab-icon-sound[blocked]:hover:active, -#TabsToolbar[brighttext] .tab-icon-sound[muted]:hover:active { - list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark-pressed"); + filter: invert(1); } .tab-icon-sound[soundplaying-scheduledremoval]:not([muted]):not(:hover) { -- cgit v1.2.3