Commit Graph

869 Commits

Author SHA1 Message Date
mr. M
f49fdbe886 Refactor toolbar settings and enhance UI animations for improved user experience 2024-11-26 17:08:23 +01:00
mr. M
0d460e32de Merge branch 'dev' of https://github.com/zen-browser/desktop into dev 2024-11-25 21:01:25 +01:00
mr. M
2ee8b3c111 Fixed right sidebar compact mode margin and worked more on the rewrite 2024-11-25 21:01:14 +01:00
Kristijan Ribarić
83e40daec1 Add z-index to prevent tabs being visible in url search dropdown. 2024-11-25 09:25:43 +01:00
Kristijan Ribarić
dd612bbc91 Hidden container label when URL bar is narrow. 2024-11-25 09:11:26 +01:00
mr. M
3f58521db2 Enhance ZenUIManager for improved toolbar handling and compact mode layout 2024-11-24 21:12:33 +01:00
mr. M
cfe354a35b Refactor ZenUIManager and update CSS for compact mode layout adjustments 2024-11-24 11:59:57 +01:00
mr. M
ecdd92f08e Refactor URL bar styles for improved notification popup appearance 2024-11-23 23:26:55 +01:00
mr. M
e56cd8f3bd Update dependencies and enhance UI styles for improved user experience 2024-11-23 23:14:32 +01:00
mr. M
113a349b56 Remove unused lazy loading of modules in ZenUIManager 2024-11-22 01:19:15 +01:00
mr. m
aba6cf50e1 Merge pull request #3121 from kristijanribaric/workspace-change-refactoring
Workspace change refactoring
2024-11-22 00:58:44 +01:00
mr. m
e04486564d Merge branch 'dev' into new-layout
Signed-off-by: mr. m  <91018726+mr-cheff@users.noreply.github.com>
2024-11-22 00:58:01 +01:00
mr. M
0554dceed7 First works on horizontal tabs 2024-11-21 23:32:57 +01:00
mr. M
86c4ce6d9f feat: implement single toolbar functionality in Zen UI manager; enhance customizable UI integration and manage button attributes 2024-11-21 22:43:24 +01:00
mr. M
0fba5dc75c feat: enhance Zen UI manager with new preferences for compact mode and single toolbar; update styles for better layout 2024-11-21 21:44:57 +01:00
mr. M
c39253454a fix: add condition to listen for color scheme changes only in main browser window 2024-11-21 19:27:54 +01:00
mr. M
10b9f03410 feat: add top buttons separator in Zen UI manager; update icon references and clean up styles 2024-11-21 00:30:55 +01:00
Kristijan Ribarić
01c8032f20 Fix: Handle essential tabs and container-specific essentials
Refactor workspace switching logic to correctly handle
essential tabs and introduce container-specific essentials.

This change addresses issues with essential tabs not being
handled correctly during workspace switches.

The `changeWorkspace` function is refactored to improve
clarity and maintainability.  The logic for showing and
hiding tabs is streamlined, and tab selection is handled
more robustly.  A new `_shouldShowTab` function is
introduced to centralize the logic for determining tab
visibility based on workspace and container settings.  The
logic also handles pinned essential tabs in the different workspace types.

The pinned tab manager is updated to support container-
specific essentials and to refresh pinned tabs on workspace
changes.  The `_shouldShowPin` function is introduced to
manage visibility of pinned tabs in different workspaces
considering essential tabs, pinned tabs and containers.

This change also fixes a bug where the selected tab would
sometimes be changed unexpectedly when switching
workspaces.
2024-11-20 10:05:07 +01:00
mr. M
f3cf51f7ac fix: add unified extensions button to top buttons in Zen UI manager; clean up vertical tabs CSS 2024-11-19 22:19:48 +01:00
mr. m 🤙
2f79e110c4 Merge pull request #3113 from kristijanribaric/fix-pinned-tabs-showing-in-wrong-workspace
(feat) Hide pinned tabs not in active workspace
2024-11-19 22:06:59 +01:00
Kristijan Ribarić
38e09d84fd (feat) Hide pinned tabs not in active workspace
When a new pinned tab is opened and it does not belong to the
currently active workspace and is not marked as essential, it
will now be hidden.  This prevents pinned tabs from cluttering
the tab bar when switching between workspaces.

The global variable for the pinned tab manager has also been
renamed from `gZenPinnedTabManager` to
`_initializePinnedTabs`.
2024-11-19 22:06:23 +01:00
mr. M
37848357b3 style: adjust padding and margin for vertical tabs; enforce width and padding with !important for consistency 2024-11-19 22:00:14 +01:00
mr. M
de81eeb2b2 fix: update default placements for toolbar buttons and enhance tab styles with important flags 2024-11-19 21:49:26 +01:00
mr. M
b094d8322a refactor: update styling and structure of Zen UI components; remove deprecated toolbar styles and adjust margins for better layout 2024-11-19 20:51:48 +01:00
mr. M
721a8cf6e3 style: enhance workspace deactivation styles with grayscale filter for better visibility 2024-11-19 19:33:26 +01:00
mr. M
1049277e17 fix: correct usage of matchMedia in ZenCustomizableUI for better compatibility 2024-11-19 17:51:52 +01:00
mr. m 🤙
44a4ce44d4 Merge pull request #3108 from zen-browser/toolbar-redesign
Toolbar redesign
2024-11-19 17:49:00 +01:00
mr. M
7e9f900f35 feat: enhance ZenThemeMarketplace functionality by injecting marketplace API and refining theme installation process 2024-11-19 00:52:47 +01:00
mr. M
ec681b841e refactor: move sidebar height throttle and content element separation to ZenUIManager; streamline tab toolbar updates 2024-11-19 00:10:30 +01:00
mr. M
a4002a49cc refactor: remove unused animations and simplify workspace button styles 2024-11-18 23:18:50 +01:00
mr. M
032954be2b feat: enhance zen styles for toolbar, sidebar, and tabs; adjust layout and padding 2024-11-18 23:14:50 +01:00
mr. m 🤙
95ff7afa98 Merge pull request #2924 from programORdie2/dev
Style: make the URL bar more rounded
2024-11-16 11:41:11 +01:00
mr. m 🤙
da30d196da Merge pull request #3033 from kristijanribaric/fix/restore-pinned-tabs-to-base-url-on-startup-when-setting-is-checked
Fix: Restore pinned tabs to their pinned URLs on startup if the option is checked
2024-11-16 11:40:54 +01:00
mr. M
1b9ada13a2 feat: update zen-cool-toolbar styles to enhance background and navbar appearance 2024-11-16 11:29:19 +01:00
mr. M
66b215b44b feat: add zen-cool-toolbar styles and adjust layout for sidebar and workspace indicators 2024-11-16 10:27:46 +01:00
pc-v2
597f7dbeb8 Add _moveWindowButtons support for -moz-gtk-csd-reversed-placement
I add 'or' operator to set window buttons if  -moz-gtk-csd-reversed-placement is true

Signed-off-by: pc-v2 <58063311+pc-v2@users.noreply.github.com>
2024-11-16 10:11:26 +07:00
Kristijan Ribarić
62d5684435 Fix: Restore pinned tabs to their pinned URLs on startup if the option is checked
This change modifies the pinned tab initialization logic to restore
pinned tabs to their original pinned URLs when the browser starts.
Previously, pinned tabs would open to their last visited URL, even if the option for restoring them to the pinned URL was checked.
2024-11-15 13:35:10 +01:00
mr. M
057d258660 Fixed workspace indicator appearing when workspaces are disabled 2024-11-13 23:35:43 +01:00
mr. M
ec433fa852 fix: correct typo in essential tab attribute to prevent changing selected tab 2024-11-13 23:33:58 +01:00
mr. M
6185f421b8 fix: prevent changing selected tab for essential tabs and update version to 132.0.2 2024-11-13 23:23:49 +01:00
mr. m 🤙
ab7ae3f89a Merge pull request #2879 from kristijanribaric/fix/change-order-of-tab-context-menu-items
Display Add to Essentials tab context menu item before Pin Tab
2024-11-13 23:12:41 +01:00
mr. m 🤙
693963b072 Merge pull request #2947 from kristijanribaric/feature/add-option-to-make-essentials-container-specific
Feature: container specific Essentials
2024-11-13 23:07:56 +01:00
Kristijan Ribarić
bc45092e03 Added a pref to make essentials container specific, i.e. if a workspace has a container assigned to it, on that workspace only essentials opened in that container will be visible. 2024-11-12 10:44:12 +01:00
mr. M
4b6068e13b Hide reset button in vertical tabs and adjust CSS for better styling 2024-11-11 22:59:52 +01:00
mr. m 🤙
9d328b3aff Merge pull request #2904 from kristijanribaric/feature/add-reset-to-base-url-button-to-pinned-tabs
Feature: Add reset to pinned URL button to pinned tabs
2024-11-11 22:06:04 +01:00
Tanay Kar
14211536d8 Added zen-profile selector active style (#2908)
Provides a change in background colour for the profile selector items on click (active) , similar to the main menu styles

Signed-off-by: Tanay Kar <93914273+Tanay-Kar@users.noreply.github.com>
2024-11-11 22:05:32 +01:00
Jai A P
9a7351b1f9 Fix inconsistent cursor when resizing P2 (#2916)
* Update ZenViewSplitter.mjs

Signed-off-by: Jai A P <jai.jap.318@gmail.com>

* Update ZenSidebarManager.mjs

Signed-off-by: Jai A P <jai.jap.318@gmail.com>

---------

Signed-off-by: Jai A P <jai.jap.318@gmail.com>
2024-11-11 20:55:45 +01:00
kristijanribaric
b323333bd1 Prevent pins deletion from database on non explicit tab closes (window closing) (#2903)
Previously, if you had multiple windows opened and you closed one, it could trigger TabClose event and delete the pins from zen_pins table. With this change the pins are deleted only on explicit tab closing from tab context menu.
2024-11-11 20:51:46 +01:00
kristijanribaric
8724d6f836 Fix pinned tab state and favicon handling (#2853)
Fixes several issues related to pinned tab restoration and
favicon display:

- Ensures pinned tabs are not loaded in private windows.
- Improves favicon caching and setting for pinned tabs.
- Fixes an issue where the tab state was not properly
  restored, leading to incorrect icons and titles.
- Uses base64 encoded favicon data to prevent issues with
  favicon loading and updates the favicon loading logic to
  be more robust.
- Adds a call to `gBrowser._updateTabBarForPinnedTabs` to
  ensure the tab bar is updated correctly after restoring
  pinned tabs, which fixes a UI issue where the tab bar
  wouldn't refresh properly until interacted with.
- Improves tab initialization by explicitly calling
  `newTab.initialize()` after restoring a pinned tab. This
  fixes an issue with tabs not rendering
  icon and label after being restored.

The changes improve the reliability of pinned tab
restoration and ensure that favicons are displayed
correctly.
2024-11-11 20:48:27 +01:00
programORdie
18ddbf986c Style: make the URL bar more rounded 2024-11-11 20:37:35 +01:00