Commit Graph

78 Commits

Author SHA1 Message Date
mr. M
5f512db55f New welcome page and logo 2024-12-07 21:12:01 +01:00
mr. M
4266cfdad6 fix: refine navbar visibility logic for compact mode and window button placement 2024-12-06 02:26:31 +01:00
mr. M
f6cbe1c4bc Prevent using single toolbar in popup windows and fixed one-offs UI 2024-12-05 18:35:38 +01:00
mr. M
fad68a1bf0 Fixed "nulls" appearing for macos users 2024-12-03 23:27:18 +01:00
mr. M
97c18ef67c refactor: streamline preference handling and update event management in ZenUIManager 2024-12-03 20:28:41 +01:00
mr. M
139ab630e0 refactor: enhance CSS styles for zen components and improve layout handling 2024-12-02 23:55:05 +01:00
mr. M
c993563185 refactor: update toolbar and sidebar styles for improved layout and consistency 2024-12-02 12:57:03 +01:00
mr. M
0fde081db5 Add experimental preference for left window controls and update vertical tab button styling logic 2024-11-30 19:03:27 +01:00
mr. M
c8e44703d5 Update watermark preference based on build type and enhance URL bar positioning 2024-11-30 18:59:47 +01:00
mr. M
0b42ee83bb Refactor vertical tab styles and improve toolbar layout for better usability 2024-11-29 00:33:32 +01:00
mr. M
be92638cf2 Refactor vertical tab management and adjust CSS for improved layout and styling 2024-11-29 00:19:14 +01:00
mr. m
a02ae261cf Merge branch 'dev' into formatting
Signed-off-by: mr. m  <91018726+mr-cheff@users.noreply.github.com>
2024-11-28 18:52:43 +01:00
mr. M
63a2ccf3da Enhance Zen Browser UI with layout adjustments, z-index updates, and color changes 2024-11-28 16:32:04 +01:00
mr. M
66254e79d3 Added back collapsed toolbar mode! 2024-11-28 11:38:31 +01:00
Vijay A
92de4022cb Remove trailing spaces 2024-11-28 07:34:29 +05:30
mr. M
fb2241339d Add zen-expand-sidebar-button and adjust window button positioning; update transition properties and margin styles for improved layout 2024-11-28 02:04:14 +01:00
mr. M
99b2babad4 Refactor window button handling for consistency and update z-index in compact mode styles 2024-11-28 01:43:52 +01:00
mr. M
16080cf46d Enhance window button handling for macOS and update event listener references 2024-11-28 01:22:22 +01:00
mr. M
c146fea519 Add compact mode condition to navbar visibility logic 2024-11-27 21:41:23 +01:00
mr. M
f49fdbe886 Refactor toolbar settings and enhance UI animations for improved user experience 2024-11-26 17:08:23 +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
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
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
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
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
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
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
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
66b215b44b feat: add zen-cool-toolbar styles and adjust layout for sidebar and workspace indicators 2024-11-16 10:27:46 +01:00
mr. M
86a3ad4b1f fix: Improve event target checking for popup tracking elements 2024-11-08 18:17:40 +01:00
mr. M
e433c5160a Update subproject commit in zen-components 2024-10-31 22:18:30 +01:00
mr. M
440b7171b0 Fixed compact mode sidebar breaking when open a link from the other subpanels (https://github.com/zen-browser/desktop/issues/2218) 2024-10-31 16:08:15 +01:00
mr. M
1a906b746e Update firefox version to 132.0 2024-10-29 18:08:56 +01:00
mr. M
5b51aa2b78 Fixed compact mode not toggleing since last PR 2024-10-25 15:16:48 +02:00
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