Bunch of hotfixes

This commit is contained in:
mauro-balades
2024-09-03 23:33:29 +02:00
parent 7636a1f015
commit 7dab354bc1
4 changed files with 31 additions and 3 deletions

2
l10n

Submodule l10n updated: ce59592742...c4bb278c97

View File

@@ -71,6 +71,10 @@
-moz-window-dragging: no-drag; -moz-window-dragging: no-drag;
--zen-sidebar-action-button-width: 38px; --zen-sidebar-action-button-width: 38px;
padding-bottom: calc(5px + 5px); /* Taking into consideration the padding of the sidebar without being inlined */ padding-bottom: calc(5px + 5px); /* Taking into consideration the padding of the sidebar without being inlined */
:root[zen-sidebar-legacy="true"] & {
padding-top: 0 !important;
}
} }
#TabsToolbar-customization-target { #TabsToolbar-customization-target {
@@ -117,7 +121,7 @@
} }
.tabbrowser-tab { .tabbrowser-tab {
--zen-browser-tab-icon-size: 18px; --zen-browser-tab-icon-size: 16px;
--tab-min-width: 36px; --tab-min-width: 36px;
margin: 0 auto; margin: 0 auto;
border-radius: 8px; border-radius: 8px;

View File

@@ -1,6 +1,6 @@
#zen-workspaces-button { #zen-workspaces-button {
--zen-workspaces-button-vmargin: 0.35rem; --zen-workspaces-button-vmargin: 0.4rem;
border: 1px solid var(--zen-colors-border); border: 1px solid var(--zen-colors-border);
border-radius: 50px; border-radius: 50px;
width: calc(var(--zen-sidebar-action-button-width) - 5px) !important; width: calc(var(--zen-sidebar-action-button-width) - 5px) !important;
@@ -10,6 +10,10 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
display: flex; display: flex;
:root[zen-sidebar-legacy="true"] & {
margin-top: 0 !important;
}
} }
#zen-workspaces-button .zen-workspace-sidebar-name { #zen-workspaces-button .zen-workspace-sidebar-name {

View File

@@ -228,6 +228,26 @@ var gZenLooksAndFeel = {
this._initializeTabbarExpandForm(); this._initializeTabbarExpandForm();
gZenThemeBuilder.init(); gZenThemeBuilder.init();
gZenMarketplaceManager.init(); gZenMarketplaceManager.init();
var onLegacyToolbarChange = this.onLegacyToolbarChange.bind(this);
Services.prefs.addObserver("zen.themes.tabs.legacy-location", onLegacyToolbarChange);
window.addEventListener("unload", () => {
Services.prefs.removeObserver("zen.themes.tabs.legacy-location", onLegacyToolbarChange);
});
},
async onLegacyToolbarChange(event) {
let buttonIndex = await confirmRestartPrompt(
true,
1,
true,
false
);
if (buttonIndex == CONFIRM_RESTART_PROMPT_RESTART_NOW) {
Services.startup.quit(
Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestart
);
return;
}
}, },
_initializeTabbarExpandForm() { _initializeTabbarExpandForm() {