Commit Graph

40 Commits

Author SHA1 Message Date
ricky
2214ab3a17 Refactor sidebar expanded on-hover functionality and fix sidebar expand/collapse behavior
- **Preferences**:
  - Added a new preference `zen.view.sidebar-expanded.on-hover.paused-for-expand` to manage the paused state of the sidebar hover functionality.
  - Updated `zen.view.sidebar-expanded.on-hover` preference handling to ensure proper behavior when toggling the sidebar.

- **ZenUIManager.mjs**:
  - Updated `_updateOnHoverVerticalTabs` method to handle the expanded state and remove hover attributes when the sidebar is expanded.
  - Refactored `_updateEvent` method to check and handle the expanded state of the sidebar, and to open or close the sidebar accordingly.
  - Added `openSidebar` and `closeSidebar` methods to manage the sidebar's expanded state and related attributes.
  - Refactored `toggleExpand` method to handle the new `paused-for-expand` preference and ensure proper toggling of the sidebar's expanded state.

- **zen-settings.js**:
  - Updated `setCompactModeStyle` method to handle the new `paused-for-expand` preference.
  - Ensured that the `paused-for-expand` preference is reset when the sidebar expand strategy is changed.

- **zen-browser.js**:
  - Added the new preference `zen.view.sidebar-expanded.on-hover.paused-for-expand` with a default value of `false`.

- **Submodule Updates**:
  - Updated `l10n` submodule to the latest commit `dd93803b84f398834049a3f650536fbdbd14cbca`.
  - Updated `zen-components` submodule to the latest commit `d853fa8de4167dfd4d1289f4f15792a698c738c3-dirty`.

- **Miscellaneous**:
  - Fixed indentation issues in `ZenUIManager.mjs`.
  - Removed commented-out code in `ZenUIManager.mjs`.
  - Ensured proper formatting and alignment of code blocks.

ISSUE: #2156
2024-10-22 22:01:05 -04:00
HarryHeres
c9a923bb34 Fixing moving tab bar to right 2024-10-16 00:21:16 +03:00
mr. M
590ff474c7 Refactor ZenStartup.mjs: Add lazy preference getter for content element separation
Refactor ZenUIManager.mjs: Add observer for ZenCompactModeManager
2024-10-15 12:07:23 +02:00
mauro-balades
e2792eecb5 Made the code look cleaner 2024-10-04 18:21:41 +02:00
mauro-balades
88fb4d5e04 feat: Enable opening new tab on middle click in tab bar
This commit adds the functionality to open a new tab on middle click in the tab bar. The code changes include adding the preference 'zen.tabs.newtab-on-middle-click' and defining the lazy preference getter 'canOpenTabOnMiddleClick' in the ZenUIManager. The 'openNewTabOnTabsMiddleClick' function now checks if the middle click event occurred on the tab bar and if the preference is enabled before opening a new tab.

Refs: #1887
2024-10-03 20:59:36 +02:00
Kristijan Ribarić
f5863391fe feat: Open new tab on middle click in tab bar
This commit adds the ability to open a new tab by middle-clicking the tab bar.

The functionality is implemented by adding an event listener for the "mouseup" event on the tab bar and checking if the middle mouse button was clicked. If so, it calls the `BrowserCommands.openTab()` function to open a new tab and prevents the default behavior of the event.
2024-10-03 20:09:25 +02:00
mauro-balades
a4edeb5b49 Refactor ZenUIManager to add event listener for gZenCompactModeManager 2024-09-21 16:58:22 +02:00
mauro-balades
aef6c2ac48 Refactor ZenCompactModeManager and add ZenCompactMode.mjs 2024-09-21 13:24:06 +02:00
brahim
b06edc0dd9 Add removePopupTrackingAttribute method, refactor onPopupHidden. 2024-09-21 11:50:35 +02:00
brahim
863d087ae8 Add general gZenUIManager.addPopupTracking method to detect open popups on any element.
Add popup tracking to navbar container.
2024-09-21 11:50:35 +02:00
brahim
3ebf3fdb67 Remove hardcoded popup ids from keepSidebarVisibleOnContextMenu 2024-09-20 20:42:30 +02:00
mauro-balades
e7110d3dbe Refactor ZenUIManager to improve sidebar buttons customization and handle sidebar visibility and expansion based on user preferences. 2024-09-19 23:18:18 +02:00
brahim
4d4c2fd676 Merge branch 'main' into fix/keep-sidebar-visable-on-right-click
# Conflicts:
#	src/browser/base/content/zen-styles/zen-compact-mode.css
2024-09-19 00:40:24 +02:00
mauro-balades
787ea8c20d Update ZenUIManager and zen-urlbar.css 2024-09-18 23:02:03 +02:00
brahim
2d8f8be70b Fix sidebar still hiding because of tab-preview-panel close event 2024-09-18 19:38:03 +02:00
brahim
afb22905f9 Refactor: remove unnecessary sidebar contains check 2024-09-18 17:48:48 +02:00
brahim
2912e7c833 Refactor gZenCompactModeManager.keepSidebarVisibleOnContextMenu 2024-09-18 17:48:48 +02:00
brahim
4f88923d10 Fix: keep sidebar visible on right click in compact mode 2024-09-18 17:04:32 +02:00
mauro-balades
b9d343962f Update @zen-browser/surfer to version 1.4.12
Refactor build/winsign/sign.ps1 to download windows-x64-obj-generic
Update subproject commit reference
Fix sidebar flashing issue when in split view mode
2024-09-15 09:40:57 +02:00
mauro-balades
65b178e594 Refactor ZenStartup and ZenUIManager to improve UI layout and remove console logs 2024-09-13 20:12:07 +02:00
mauro-balades
019c676182 Started rewriting vertical tabs 2024-09-13 16:58:40 +02:00
mauro-balades
80136189b1 Formatted the entire project 2024-09-09 19:36:14 +02:00
mauro-balades
6b601a7be6 chore: Update toolbar flash popup duration in compact mode 2024-09-07 16:41:51 +02:00
brahim
1f6e24c192 Flash sidebar on tab select in compact mode. 2024-09-07 14:10:59 +02:00
Mauro Balades
47ba86f211 Fixed workspaces (closes #439) 2024-08-23 19:53:35 +02:00
Mauro Balades
ae723290d7 chore: Update ZenUIManager to set sidebar-expanded.on-hover to false when compact mode is enabled 2024-08-19 19:17:43 +02:00
Mauro Balades
cba262e090 feat: Add expand on hover functionality for tabs 2024-08-19 19:10:44 +02:00
Mauro Balades
1b5881c0fb Added expand on hover for tabs! 2024-08-19 17:25:00 +02:00
Mauro Balades
c77110efec chore: Update Zen browser components submodule commit reference and improve compact mode 2024-08-10 10:52:57 +02:00
Mauro Balades
fc5bd615f4 Allow sidebar to be aligned to the right 2024-08-07 21:04:36 +02:00
Mauro Balades
2d72365dbd chore: Update ZenUIManager and Zen browser theme 2024-08-05 01:06:01 +02:00
Mauro Balades
6862e6cbc6 chore: Update sidebar-expanded max-width preference and UI styling 2024-08-02 17:05:43 +02:00
Mauro Balades
0f97a1cb4d refactor: Improved pinned tabs! 2024-07-26 12:10:00 +02:00
Mauro Balades
b44d4b4f41 chore: Update Zen Browser styles for dark mode compatibility 2024-07-19 23:11:15 +02:00
Mauro Balades
628a0bf269 chore: Update Zen Browser preferences and styles for vertical tabs layout 2024-07-19 19:15:01 +02:00
Mauro Balades
40b652869d feat: Add toggleBookmarksSidebar function to ZenUIManager 2024-07-19 16:44:54 +02:00
Mauro Balades
9a816fe73a Refactor ZenWorkspaces to use _createNewTabForWorkspace method for preparing new workspace 2024-07-13 21:32:07 +02:00
Mauro Balades
c63cfebd4f Started working on workspaces 2024-07-13 17:53:22 +02:00
Mauro Balades
2783fa64d8 chore: Refactor ZenSidebarManager and ZenUIManager to improve tab handling 2024-07-11 09:43:48 +02:00
Mauro Balades
da89b77e75 chore: Add ZenUIManager script to improve browser functionality 2024-07-08 08:02:33 +02:00