Commit Graph

45 Commits

Author SHA1 Message Date
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
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
Kristijan Ribarić
38898ab45e (feat) Add reset to pinned URL button to pinned tabs
This commit introduces a "Reset" button to pinned tabs, allowing
users to quickly revert a tab to its stored base URL.  The button
is visible on hover for non-essential pinned tabs and hidden
for essentials.  Clicking the button triggers a
reset action managed by `gZenPinnedTabManager`.

The visual style of the button is defined using the "reload"
icon and follows the styling of other tab buttons.
2024-11-11 15:48:50 +01:00
mr. M
1c7c6b2a0f Enhance Zen animations and glance functionality with improved styles and closing behavior 2024-11-10 18:20:23 +01:00
Kristijan Ribarić
014602266b Correctly set the base pinned url and title for migrating from previous version. 2024-11-07 16:20:46 +01:00
mr. M
6d5dcbe89f Adjust tab height calculations and improve icon state handling in ZenStartup and ZenPinnedTabManager 2024-11-06 20:31:20 +01:00
mr. M
649d82425a Added zen essentials! 2024-11-04 19:34:32 +01:00
mr. M
aa74a68ca8 Refactor zen-components and zen-styles/zen-tabs/vertical-tabs.css 2024-11-03 13:44:33 +01:00
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
04dd345ef4 Fixed unloaded tabs can't be opened (closes #2436) 2024-10-31 14:26:17 +01:00
mr. M
ef0b6d947e Fixed moving multiple tabs causing glitches sometimes 2024-10-30 15:42:33 +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
1a906b746e Update firefox version to 132.0 2024-10-29 18:08:56 +01:00
mr. M
4783f264df Fixed animations for glance 2024-10-29 10:21:47 +01:00
mr. M
2e9c147c44 Added the old unread attribute for tabs 2024-10-24 21:09:57 +02: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
bbdd6684fe Fixed tabs moving not closing expand on hover sometimes 2024-10-19 20:14:11 +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
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ć
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
996c292916 Refactor tab width calculation in tabs.js 2024-09-25 21:37:39 +02:00
mauro-balades
22eb216a3d Refactor ZenCustomizableUI and update keyboard shortcuts preferences 2024-09-23 20:23:08 +02:00
mauro-balades
6c77a913ff Refactor ZenCustomizableUI and update keyboard shortcuts preferences 2024-09-23 18:15:22 +02:00
mauro-balades
630d1a89c8 Refactor SURFER_COMPAT handling in sign.ps1 2024-09-16 22:53:54 +02:00
mauro-balades
a546d053ae Allow pinned tabs to be for each individual workspace 2024-09-13 22:52:30 +02:00
mauro-balades
6d3b20062e Refactor Zen Workspaces preferences and hide default container indicator 2024-09-11 23:44:47 +02:00
mauro-balades
0d8bede377 Refactor subproject commits in l10n and zen-components 2024-09-11 20:59:03 +02:00
brahim
46fdd7dcc1 Add option in zenLooksAndFeel to enable toolbar-flash-popup 2024-09-07 15:18:56 +02:00
brahim
1f6e24c192 Flash sidebar on tab select in compact mode. 2024-09-07 14:10:59 +02:00
brahim
d9313efa3e Ensure tab becomes visible when selected in sidebar. 2024-09-06 21:19:18 +02:00
mauro-balades
7ef180fe7e HUGE CHANGES (updated to firefox 130 and new UI) 2024-09-03 18:21:57 +02:00
Mauro Balades
26a9e255c1 Added paltform specific preferences for themes 2024-08-19 19:43:33 +02:00
Mauro Balades
af75d67b30 chore: Refactor Zen theme modifier, fix notification deck placement, and update tab styling 2024-08-12 10:18:00 +02:00
Mauro Balades
c57db962f8 chore: Update Zen browser components submodule commit reference and improve flatpak configuration and fixed tabs not fully closing 2024-08-11 13:37:46 +02:00
Mauro Balades
de19bdf2b4 Update Zen browser components submodule commit reference 2024-08-07 00:06:45 +02:00
Mauro Balades
a513d95aad chore: Add lazy loading for UI elements in split view 2024-08-06 12:04:59 +02:00
Mauro Balades
0f97a1cb4d refactor: Improved pinned tabs! 2024-07-26 12:10:00 +02:00
Mauro Balades
577c57ba87 Refactor tab styling and layout for pinned tabs 2024-07-14 16:37:57 +02:00
Mauro Balades
0a34fb4fb0 chore: Add onLocationChange method to ZenWorkspaces 2024-07-13 20:53:46 +02:00
Mauro Balades
aa812d1fea feat: Enable Zen Workspaces functionality 2024-07-13 20:39:44 +02:00
Mauro Balades
c76492571b chore: Update zen-browser-shared.css to hide tab icon overlay 2024-07-13 13:43:40 +02:00
Mauro Balades
9fca7074ee chore: Update Firefox version to 128.0! 2024-07-10 18:27:52 +02:00