fix: Fixed context menu SVGs not having the correct color, b=no-bug, c=folders, workspaces

This commit is contained in:
Mr. M
2025-08-26 10:01:06 +02:00
parent d2a6e18452
commit c61891fe2b
4 changed files with 11 additions and 2 deletions

View File

@@ -3,12 +3,13 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
<panel id="zen-folder-tabs-popup" type="arrow" orient="vertical">
<hbox class="tabs-list-header">
<hbox class="tabs-list-header" flex="1">
<image class="zen-folder-tabs-list-search-icon" src="chrome://global/skin/icons/search-glass.svg"/>
<html:input id="zen-folder-tabs-list-search"
data-l10n-id="zen-folders-search-placeholder"
data-l10n-args="{&quot;folder-name&quot;:&quot;&quot;}"
type="search" />
type="search"
flex="1" />
</hbox>
<scrollbox class="zen-folder-tabs-list-scrollbox" flex="1">
<vbox id="zen-folder-tabs-list"></vbox>

View File

@@ -802,3 +802,9 @@
background: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
}
}
.zen-workspace-context-icon image {
-moz-context-properties: fill;
fill: currentColor;
scale: 1.6;
}

View File

@@ -105,6 +105,7 @@
item.setAttribute('label', name);
if (iconIsSvg) {
item.setAttribute('image', workspace.icon);
item.classList.add('zen-workspace-context-icon');
}
item.addEventListener('command', (event) => {
if (!this.#lastFolderContextMenu) return;

View File

@@ -1237,6 +1237,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
item.setAttribute('label', name);
if (iconIsSvg) {
item.setAttribute('image', workspace.icon);
item.classList.add('zen-workspace-context-icon');
}
item.addEventListener('command', (e) => {
this.changeWorkspaceWithID(e.target.closest('menuitem').getAttribute('zen-workspace-id'));