Refactor Zen components: update CSS variable for toolbar button fill, improve tab unloading logic, and enhance tab icon URLs

This commit is contained in:
mr. M
2025-03-06 12:55:34 +01:00
parent 10b6551ea3
commit ddb0a65957
4 changed files with 6 additions and 8 deletions

View File

@@ -79,7 +79,7 @@
--focus-outline-color: var(--button-bgcolor) !important; --focus-outline-color: var(--button-bgcolor) !important;
--toolbarbutton-icon-fill-attention: var(--zen-primary-color) !important; --toolbarbutton-icon-fill-attention: var(--zen-primary-color) !important;
--toolbarbutton-icon-fill: light-dark(rgba(57, 57, 58, .6), rgba(251, 251, 254, .6)) !important; --toolbarbutton-icon-fill: light-dark(rgba(57, 57, 58, 0.6), rgba(251, 251, 254, 0.6)) !important;
--button-primary-bgcolor: var(--in-content-primary-button-background) !important; --button-primary-bgcolor: var(--in-content-primary-button-background) !important;
--button-primary-hover-bgcolor: var(--in-content-primary-button-background-hover) !important; --button-primary-hover-bgcolor: var(--in-content-primary-button-background-hover) !important;

View File

@@ -274,8 +274,8 @@
(tab.pictureinpicture && !ignoreTimestamp) || (tab.pictureinpicture && !ignoreTimestamp) ||
(tab.soundPlaying && !ignoreTimestamp) || (tab.soundPlaying && !ignoreTimestamp) ||
(tab.zenIgnoreUnload && !ignoreTimestamp) || (tab.zenIgnoreUnload && !ignoreTimestamp) ||
(excludedUrls.some((url) => url.test(tab.linkedBrowser?.currentURI.spec)) (excludedUrls.some((url) => url.test(tab.linkedBrowser?.currentURI.spec)) &&
&& tab.linkedBrowser?.currentURI.spec !== 'about:blank') tab.linkedBrowser?.currentURI.spec !== 'about:blank')
) { ) {
return false; return false;
} }

View File

@@ -340,7 +340,7 @@
<html:div class="tab-background"></html:div> <html:div class="tab-background"></html:div>
</stack> </stack>
</html:div> </html:div>
<html:div class="tabbrowser-tab" fadein="" visuallyselected="" data-url="https://discord.com" style="--zen-tab-icon: url('http://www.google.com/s2/favicons?domain=discord.com');"> <html:div class="tabbrowser-tab" fadein="" visuallyselected="" data-url="https://discord.com" style="--zen-tab-icon: url('https://www.google.com/s2/favicons?domain=discord.com');">
<stack class="tab-stack"> <stack class="tab-stack">
<html:div class="tab-background"></html:div> <html:div class="tab-background"></html:div>
</stack> </stack>
@@ -370,12 +370,12 @@
<html:div class="tab-background"></html:div> <html:div class="tab-background"></html:div>
</stack> </stack>
</html:div> </html:div>
<html:div class="tabbrowser-tab" fadein="" data-url="https://calendar.google.com" style="--zen-tab-icon: url('https://calendar.google.com/googlecalendar/images/favicons_2020q4/calendar_6.ico');"> <html:div class="tabbrowser-tab" fadein="" visuallyselected="" data-url="https://calendar.google.com" style="--zen-tab-icon: url('https://calendar.google.com/googlecalendar/images/favicons_2020q4/calendar_6.ico');">
<stack class="tab-stack"> <stack class="tab-stack">
<html:div class="tab-background"></html:div> <html:div class="tab-background"></html:div>
</stack> </stack>
</html:div> </html:div>
<html:div class="tabbrowser-tab" fadein="" visuallyselected="" data-url="https://youtube.com" style="--zen-tab-icon: url('https://www.youtube.com/favicon.ico');"> <html:div class="tabbrowser-tab" fadein="" data-url="https://youtube.com" style="--zen-tab-icon: url('https://www.youtube.com/favicon.ico');">
<stack class="tab-stack"> <stack class="tab-stack">
<html:div class="tab-background"></html:div> <html:div class="tab-background"></html:div>
</stack> </stack>

View File

@@ -614,8 +614,6 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
if (currentTab.pinned) { if (currentTab.pinned) {
this.selectEmptyTab(); this.selectEmptyTab();
try { try {
console.log(currentTab)
console.log(currentTab.linkedBrowser?.currentURI.spec)
gZenTabUnloader.explicitUnloadTabs([currentTab]); gZenTabUnloader.explicitUnloadTabs([currentTab]);
} catch (e) { } catch (e) {
console.error('ZenWorkspaces: Error unloading tab', e); console.error('ZenWorkspaces: Error unloading tab', e);