Skip to content

Commit

Permalink
Fix: Tab - Restore overlay icon shape #1011
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Nov 4, 2024
1 parent 00afdf1 commit ed98668
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
38 changes: 38 additions & 0 deletions css/leptonChrome.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions css/leptonChromeESR.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions src/tab/sound_tab/_show_with_favicons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,29 @@
width: 17px !important;
height: 17px !important;
}
.tab-icon-overlay:not([crashed]) {
// https://github.com/black7375/Firefox-UI-Fix/issues/1011
&:is([soundplaying], [muted], [activemedia-blocked]) {
-moz-context-properties: fill, fill-opacity, stroke !important;
fill: currentColor !important;
border: none !important;
}
&:is([pinned], [sharing]) {
stroke: var(--tab-icon-overlay-stroke, light-dark(white, black));
color: var(--tab-icon-overlay-fill, light-dark(black, white));
}

// There is a difference in size between background-image and list-style-image due to margins, etc.
&[soundplaying] {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-playing-small.svg");
}
&[muted] {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-muted-small.svg");
}
&[soundplaying] {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-blocked-small.svg");
}
}
.tab-icon-overlay:not([sharing], [crashed]):is([soundplaying], [muted], [activemedia-blocked]) {
/* Color */
color: currentColor !important;
Expand Down

0 comments on commit ed98668

Please sign in to comment.