Skip to content

Commit

Permalink
Fix: Icons - Context Properties
Browse files Browse the repository at this point in the history
- Panel's Zoom buttons work with storke!
  • Loading branch information
black7375 committed Nov 4, 2022
1 parent b3ff0ad commit 32ddd53
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 17 deletions.
13 changes: 6 additions & 7 deletions css/leptonChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -8688,7 +8688,7 @@
#forward-button,
#clearDownloadsButton {
fill: currentColor !important;
-moz-context-properties: fill !important;
-moz-context-properties: fill, fill-opacity, stroke !important;
}

/* Add */
Expand Down Expand Up @@ -8826,13 +8826,12 @@
.subviewbutton:not(#appMenu-proton-update-banner) > image {
fill: currentColor !important;
fill-opacity: var(--toolbarbutton-icon-fill-opacity) !important;
-moz-context-properties: fill !important;
-moz-context-properties: fill, fill-opacity, stroke !important;
}

#appMenu-zoomReduce-button2 > .toolbarbutton-icon,
#appMenu-zoomEnlarge-button2 > .toolbarbutton-icon {
stroke: var(--zoom-controls-bgcolor, var(--button-bgcolor, ButtonFace)) !important;
-moz-context-properties: fill, stroke !important;
}

#appMenu-zoomReduce-button2:not([disabled], [open], :active):is(:hover) > .toolbarbutton-icon,
Expand Down Expand Up @@ -9040,7 +9039,7 @@
/* Color */
fill: currentColor;
fill-opacity: var(--toolbarbutton-icon-fill-opacity);
-moz-context-properties: fill;
-moz-context-properties: fill, fill-opacity, stroke;
background-size: 16px;
background-repeat: no-repeat;
background-position: left center;
Expand Down Expand Up @@ -9308,7 +9307,7 @@
/*= protections-popup ========================================================*/
#protections-popup-settings-button > .protections-popup-settings-icon,
#protections-popup-show-report-button > .protections-popup-show-report-icon {
-moz-context-properties: fill;
-moz-context-properties: fill, fill-opacity, stroke;
fill: currentColor;
margin-inline-end: 1em;
}
Expand Down Expand Up @@ -9402,7 +9401,7 @@
#BMB_viewBookmarksToolbar,
#context_openANewTab.tabmix-newtab-menu-icon {
/* Color */
-moz-context-properties: fill, fill-opacity !important;
-moz-context-properties: fill, fill-opacity, stroke !important;
fill: currentColor !important;
/* Layout */
background-size: 16px !important;
Expand All @@ -9411,7 +9410,7 @@
}

#tabContextMenu > .tabmix-newtab-menu-icon {
-moz-context-properties: fill, fill-opacity !important;
-moz-context-properties: fill, fill-opacity, stroke !important;
fill: currentColor !important;
}

Expand Down
6 changes: 3 additions & 3 deletions css/leptonContent.css
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@

.context-menu-list .context-menu-item button span {
/* Color */
-moz-context-properties: fill, fill-opacity !important;
-moz-context-properties: fill, fill-opacity, stroke !important;
fill: currentColor !important;
/* Layout */
background-size: 16px !important;
Expand Down Expand Up @@ -2362,7 +2362,7 @@
#forward-button,
#clearDownloadsButton {
fill: currentColor !important;
-moz-context-properties: fill !important;
-moz-context-properties: fill, fill-opacity, stroke !important;
}

/* Add */
Expand Down Expand Up @@ -3037,7 +3037,7 @@
> menuitem:not(.menuitem-iconic, .bookmark-item, .in-menulist, [checked="true"]),
menupopup:is(#viewMenuPopup, #maintenanceButtonPopup) > menu:not(.menu-iconic, .in-menulist, [checked="true"]) {
/* Color */
-moz-context-properties: fill, fill-opacity !important;
-moz-context-properties: fill, fill-opacity, stroke !important;
fill: currentColor !important;
/* Layout */
background-size: 16px !important;
Expand Down
4 changes: 2 additions & 2 deletions src/icons/_panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
/* Color */
fill: currentColor;
fill-opacity: var(--toolbarbutton-icon-fill-opacity);
-moz-context-properties: fill;
-moz-context-properties: fill, fill-opacity, stroke;

background-size: 16px;
background-repeat: no-repeat;
Expand Down Expand Up @@ -416,7 +416,7 @@ panelMenuBookmarkThisPage[starred] {
/*= protections-popup ========================================================*/
#protections-popup-settings-button > .protections-popup-settings-icon,
#protections-popup-show-report-button > .protections-popup-show-report-icon {
-moz-context-properties: fill;
-moz-context-properties: fill, fill-opacity, stroke;
fill: currentColor;
margin-inline-end: 1em;
}
Expand Down
2 changes: 1 addition & 1 deletion src/icons/layout/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ $_layoutCommonMenus: (
@include _layout_icon_menus;
}
#tabContextMenu > .tabmix-newtab-menu-icon {
-moz-context-properties: fill, fill-opacity !important;
-moz-context-properties: fill, fill-opacity, stroke !important;
fill: currentColor !important;
}

Expand Down
2 changes: 1 addition & 1 deletion src/icons/layout/_menu_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $_initialMenus: selector.append(
// Icon
@mixin _layout_icon_menus() {
/* Color */
-moz-context-properties: fill, fill-opacity !important;
-moz-context-properties: fill, fill-opacity, stroke !important;
fill: currentColor !important;

/* Layout */
Expand Down
3 changes: 1 addition & 2 deletions src/icons/layout/_panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,11 @@
.subviewbutton:not(#appMenu-proton-update-banner) > image {
fill: currentColor !important;
fill-opacity: var(--toolbarbutton-icon-fill-opacity) !important;
-moz-context-properties: fill !important;
-moz-context-properties: fill, fill-opacity, stroke !important;
}
#appMenu-zoomReduce-button2 > .toolbarbutton-icon,
#appMenu-zoomEnlarge-button2 > .toolbarbutton-icon {
stroke: var(--zoom-controls-bgcolor, var(--button-bgcolor, ButtonFace)) !important;
-moz-context-properties: fill, stroke !important;
}
#appMenu-zoomReduce-button2:not([disabled], [open], :active):is(:hover) > .toolbarbutton-icon,
#appMenu-zoomEnlarge-button2:not([disabled], [open], :active):is(:hover) > .toolbarbutton-icon {
Expand Down
2 changes: 1 addition & 1 deletion src/library/_menubar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#forward-button,
#clearDownloadsButton {
fill: currentColor !important;
-moz-context-properties: fill !important;
-moz-context-properties: fill, fill-opacity, stroke !important;
}

/* Add */
Expand Down

0 comments on commit 32ddd53

Please sign in to comment.