Commit Graph

248 Commits

Author SHA1 Message Date
mr. M
b58f7a0c4d Update subproject commit in zen-components 2024-11-01 17:26:52 +01:00
mr. M
e433c5160a Update subproject commit in zen-components 2024-10-31 22:18:30 +01:00
mr. M
cfd2e57950 Allow glance meta key only for macos (https://github.com/zen-browser/desktop/issues/2429) 2024-10-31 15:55:12 +01:00
mr. M
a5d4855530 Fixed changing activation method not applied to tabs (https://github.com/zen-browser/desktop/issues/2429) 2024-10-31 15:52:29 +01:00
mr. M
04dd345ef4 Fixed unloaded tabs can't be opened (closes #2436) 2024-10-31 14:26:17 +01:00
mr. M
245c75ab2c Update subproject commit hash in l10n and zen-components 2024-10-30 17:16:29 +01:00
mr. M
ef0b6d947e Fixed moving multiple tabs causing glitches sometimes 2024-10-30 15:42:33 +01:00
mr. M
b0b73b5d97 Update zen view compact mode preferences 2024-10-30 15:13:36 +01:00
mr. M
a8d2773f5d Fix animation and layout issues in tabs.js 2024-10-30 13:48:08 +01:00
mr. M
d978d35533 Added expand to fullscreen for glance 2024-10-30 12:45:22 +01:00
mr. M
0552c2f245 [breaking] changed default layout of the customizable UI 2024-10-29 23:42:05 +01:00
mr. M
a08df8f9ef Added theme color deduction for workspace gradients and fixed macos titlebar buttons display 2024-10-29 20:45:38 +01:00
mr. M
1a906b746e Update firefox version to 132.0 2024-10-29 18:08:56 +01:00
mr. M
22df6d5638 Added support for meta key for glance 2024-10-29 10:50:37 +01:00
mr. M
4783f264df Fixed animations for glance 2024-10-29 10:21:47 +01:00
mr. M
9c105c988c Added settings page for zen glance 2024-10-29 09:51:36 +01:00
mr. M
3a517317a3 [breaking change]: Removed the hide expand sidebar button 2024-10-26 18:34:06 +02:00
mr. M
f019490989 Added newtab button option to stay under last tab and reworked gradient generator's layout 2024-10-26 15:38:45 +02:00
mr. M
c92924db15 Started working on the gradient generation 2024-10-24 23:53:09 +02:00
mr. M
45ce804ee9 Update subproject commit references in l10n and zen-components 2024-10-24 21:46:15 +02:00
mr. M
2e9c147c44 Added the old unread attribute for tabs 2024-10-24 21:09:57 +02:00
mr. m 🤙
24d09cc134 Merge pull request #2288 from Richard-Woessner/I2156
Refactor sidebar expanded on-hover functionality and fix sidebar expa…
2024-10-24 22:03:08 +03:00
ricky
94b32c38e4 #2156 Removed unused code 2024-10-22 22:20:39 -04: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
mr. m 🤙
a6cbda63b1 Merge pull request #2251 from kristijanribaric/fix/open-new-tab-when-last-unpinned-tab-is-closed-in-workspace-and-no-pinned-tabs-are-loaded
Fix: Open new tab when last unpinned tab is closed in workspace and no pinned tabs are loaded
2024-10-20 19:05:01 +03:00
Kristijan Ribarić
15ddd0f680 Fix: Open new tab when last unpinned tab is closed in workspace and no pinned tabs are loaded
Added a preference to keep default behavior or apply the new one.
2024-10-20 17:44:14 +02:00
mr. M
841261a36e Fixed malformed XUL for some themes 2024-10-20 17:40:21 +02:00
mr. M
bbdd6684fe Fixed tabs moving not closing expand on hover sometimes 2024-10-19 20:14:11 +02:00
mr. M
07cd774619 Fixed keyboard shortcuts for Shift + [N] 2024-10-19 19:10:57 +02:00
mr. M
2cca7a8308 Fix display issues for shortcuts in macos for certain keybinds (closes https://github.com/zen-browser/desktop/issues/2189) 2024-10-18 23:27:14 +02:00
mr. M
aa0d1c27c8 Remove web appearence bug 2024-10-18 18:12:54 +02:00
Bryan Galdámez
8744d1a9ec Added new disable all button 2024-10-18 17:49:34 +03:00
mr. M
d6c4c3c66a Changed light theme and added new split view icon 2024-10-17 19:19:28 +02:00
mr. M
6e7a2e4c9e Hide deactivated workspaces are now an option 2024-10-15 10:57:09 +02:00
kristijanribaric
8ecbbd0719 feat: Add preference to force container tabs to a workspace with that container set as default (#2095)
This commit introduces a new preference, "zen.workspaces.force-container-workspace", that allows users to control whether container tabs are automatically placed in a dedicated workspace. When enabled, this feature ensures that all tabs from a container are grouped together within a specific workspace.

The following files were modified:

- `src/browser/components/preferences/zen-settings.js`: Added the new preference definition.
- `src/browser/app/profile/zen-browser.js`: Set the default value for the new preference.
- `src/browser/components/preferences/zenTabsManagement.inc.xhtml`: Added a checkbox to control the new preference in the settings UI.
2024-10-14 17:24:14 +02:00
kristijanribaric
0150e6d689 Fix: Open external links in workspace's default container (#2081)
* Fix: Pass `fromExternal` to `ZenWorkspaces.getContextIdIfNeeded`

* Add allowInheritPrincipal to ZenWorkspaces.getContextIdIfNeeded
2024-10-13 23:48:39 +02:00
kristijanribaric
1628b4ca3e feat(sessionstore): Store zen pinned entry in tab state (#2058)
This commit adds the `zenPinnedEntry` property to the `TabState` object, which stores the full zen pinned entry data. This information will be used to restore the pinned entry when a tab is restored from the session.

The following changes were made:

- Added `zenPinnedEntry` to `TabState`
- Removed `zenPinnedUrl`, `zenPinnedTitle`, `zenPinnedIcon`, and `zenPinnedTriggeringPrincipal` as they are now included in `zenPinnedEntry`.
- Updated the `TabState` serialization and deserialization logic to handle the new `zenPinnedEntry` property.
2024-10-12 22:07:53 +02:00
kristijanribaric
71a2646c5b Store pinned tab triggering principal in sessionstore (#2055) 2024-10-12 19:08:38 +02:00
brahim
54706e51af Fix change on hover not changing right pref. 2024-10-12 12:07:29 +02:00
Kristijan Ribarić
8c04cda18b feat: Replace close shortcut options for pinned tabs with a single menulist
This commit replaces the four separate checkboxes for close shortcut options for pinned tabs with a single menulist. This makes the UI more streamlined and user-friendly, as users can now easily select from a list of available options instead of having to check or uncheck multiple boxes.

The new menulist offers the following options:

- reset-unload-switch: Resets the tab if it was changed, otherwise unloads it.
- unload-switch: Unloads the tab if it was changed, otherwise does nothing.
- reset-switch: Resets the tab if it was changed, otherwise switches to it.
- switch: Switches to the tab.
- reset: Resets the tab.
- close: Closes the tab.

This provides a more comprehensive and flexible set of options for managing pinned tabs, making the experience more intuitive and customizable.
2024-10-08 21:07:06 +02:00
Kristijan Ribarić
948cfc4034 feat: Add new settings for close shortcut behavior of pinned tabs
This commit introduces new settings for the behavior of closing pinned tabs using the close shortcut.

The following options are now available:

- **Reset pinned tab on close shortcut**: Reset the tab to the pinned URL.
- **Unload pinned tab on close shortcut**: Unload the tab.
- **Change pinned tab on close shortcut**: Change the pinned tab.
- **Close pinned tab on close shortcut**: Close the tab.

This provides more granular control over how pinned tabs are handled when the close shortcut is used, allowing users to customize the behavior to their specific needs.
2024-10-08 17:47:19 +02:00
Kristijan Ribarić
fdd99cb8d6 Fix: Refactor pinned tab management and remove unnecessary attribute checks
This commit refactors the pinned tab management code to improve clarity and reduce redundant checks.

The following changes were made:

- Moved pinned tab logic to a dedicated `gZenPinnedTabManager` class.
- Removed unnecessary attribute checks for `zen-pinned-url`, `zen-pinned-title`, and `zen-pinned-icon` as these are now handled by the `gZenPinnedTabManager` class.
- Simplified session restore logic for pinned tabs.
- Updated the pinned tab context menu logic to utilize the `gZenPinnedTabManager` class.
- Removed unnecessary code blocks related to pinned tabs.

These changes improve the overall readability and maintainability of the pinned tab management code.
2024-10-08 15:00:11 +02:00
Kristijan Ribarić
8c42614427 feat(pinned-tab-manager): Add restore pinned tabs to pinned url option
This commit introduces a new option to the pinned tab manager that allows users to restore pinned tabs to their pinned URL and title, even if the current tab has a different URL.

- Adds a new preference `zen.pinned-tab-manager.restore-pinned-tabs-to-pinned-url` to control this behavior.
- Updates the tab browser, tab state, and preferences code to support the new option.
- Adds a new UI element in the settings to allow users to enable/disable this feature.

This feature enhances the pinned tab manager by providing more control over how pinned tabs are restored when the browser is restarted.
2024-10-08 15:00:10 +02:00
Kristijan Ribarić
6dcff571d2 feat(zen-pinned-tab-manager): Add pinned tab management functionality
This commit introduces a new feature: pinned tab management. It allows users to pin tabs and define whether to reset pinned tabs on close.

- Adds a new `ZenPinnedTabManager` component to manage pinned tabs.
- Updates `zen-assets.inc.xhtml` and `zen-assets.jar.inc.mn` to include the new component.
- Modifies the `ZenStartup.mjs` file to initialize the new manager.
- Introduces a new preference `zen.pinned-tab-manager.reset-pinned-tab-on-close-shortcut` to control the behavior of pinned tabs on close.
- Updates the settings UI to reflect the new pinned tab management functionality.
- Refactors related preferences from `zen.tab-unloader.*` to `zen.pinned-tab-manager.*`.

This feature enhances Zen's tab management capabilities by providing users with more control over their pinned tabs.
2024-10-08 15:00:10 +02:00
Kristijan Ribarić
43834e57f0 feat(sessionstore): Add pinned url, and pinned title to tab state
Adds `zenPinnedUrl`, and `zenPinnedTitle` attributes to the tab state to persist pinned tab information. This allows users to restore their previous Zen pinned base url configuration upon restarting the browser.
2024-10-08 15:00:10 +02:00
Kristijan Ribarić
b185773daf feat(pinned-tab-url-reset): add option to reset pinned tab to originally pinned url
Adds a new setting to enable or disable pinned tab url resetting on pressing close tab shortcut.

Persists pinned tab url and label on browser closing.
2024-10-08 15:00:10 +02:00
mauro-balades
a556454ced Add ZenGradientGenerator to zen-assets.jar and zen-styles
This commit adds the ZenGradientGenerator module to the zen-assets.jar and zen-styles directories. The ZenGradientGenerator is responsible for generating gradients used in the Zen theme. This addition will enhance the visual appearance of the theme.
2024-10-07 20:54:53 +02:00
mauro-balades
5e85f1025a Fix display issues on keyboard shortcuts settings on some keyboard layouts 2024-10-07 18:42:17 +02:00
mauro-balades
eebcb0cb6e Fixed keyboard shortcuts not being displayed correctly on the settings after a restart 2024-10-07 18:28:33 +02:00
mauro-balades
b323a92dbf Added zen workspaces for syncing 2024-10-05 23:27:25 +02:00