Commit Graph

1917 Commits

Author SHA1 Message Date
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ć
9df773dde2 Add pin icon for replace pinned url with current context item 2024-10-08 15:00:10 +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 🤙
593a9244a4 Merge pull request #1958 from SoongVilda/patch-1
Installation of Zen on CachyOS
2024-10-08 07:40:58 +02:00
Soong-Vilda
165ee8a3f8 Installation of Zen on CachyOS
I’ve added both variants of `zen-browser-bin` and `zen-browser-avx2-bin`. CachyOS has Zen available in the repository.
2024-10-08 01:05:22 +02:00
mauro-balades
66fc824bb5 Merge branch 'main' of https://github.com/zen-browser/desktop 2024-10-07 20:55:06 +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 🤙
d248880890 Merge pull request #1933 from n7itro/main
fix performance
2024-10-07 19:26:35 +02:00
mauro-balades
c9a8177351 Fix display issues on some keyboard layouts and settings after restart 2024-10-07 19:18:10 +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
cf3f788218 Might had fixed macos keyboard shortcuts 2024-10-07 18:09:34 +02:00
mauro 🤙
31f939ba96 Merge pull request #1944 from BrhmDev/fix/splitview-overlay-missaligned-when-tabs-not-expanded
Fix splitview overlay becoming misaligned when tabs not expanded.
2024-10-07 07:45:23 +02:00
brahim
b707aabee4 Fix splitview overlay becoming misaligned when tabs not expanded. 2024-10-07 02:39:19 +02:00
nitro
b3e3fdbad7 fix performance 2024-10-06 20:32:44 +02:00
mauro-balades
41897f06ed Update subproject commits in l10n and zen-components 2024-10-06 19:31:29 +02:00
mauro-balades
4758656211 Add build time to Twilight build title 2024-10-06 18:46:28 +02:00
mauro-balades
5e1a5fc498 Added toast notification when enabling split view rearanging 2024-10-06 18:15:28 +02:00
mauro-balades
174fafcb45 Fixed height for pinned tabs 2024-10-06 17:12:12 +02:00
mauro-balades
19fff2bd89 Update subproject commits in l10n and zen-components 2024-10-06 17:09:44 +02:00
mauro-balades
4b1ef1222b Update subproject commits in l10n and zen-components 2024-10-06 15:22:21 +02:00
mauro 🤙
46cca21a72 Merge pull request #1914 from BrhmDev/feature/rearrange-split-view
Fully customizable splitview using drag and drop
2024-10-06 15:21:12 +02:00
brahim
81c2f08e62 Add pref for rearrange-edge-hover-size 2024-10-06 14:46:47 +02:00
mauro-balades
2a764eaf7a Added preloaded scripts that load before the window is created 2024-10-06 14:03:35 +02:00
mauro 🤙
a1cccb1ca4 Merge pull request #1928 from gunir/patch-4
Fix buffering issues: Youtube, Archive bugzilla.mozilla.org/show_bug.…
2024-10-06 13:44:52 +02:00
Gunir
d7bff00046 Fix buffering issues: Youtube, Archive bugzilla.mozilla.org/show_bug.cgi?id=1854077
Fix buffering issues: Youtube, Archive bugzilla.mozilla.org/show_bug.cgi?id=1854077
2024-10-06 18:41:32 +07:00
brahim
22ef403bd4 Make it impossible to drop splitview tab on itself, lower opacity of tab being dragged. Fix splitters not being cleared after browser drop. 2024-10-06 13:38:29 +02:00
mauro-balades
e466fb95b5 Fix extension buttons remaining when switching to compact mode (closes https://github.com/zen-browser/desktop/issues/1925) 2024-10-06 11:32:26 +02:00
mauro-balades
c5ab69f38d Refactor build workflow to use 'marvinpinto/action-automatic-releases' for updating twilight tag 2024-10-06 10:59:05 +02:00
mauro 🤙
09f673d94c Merge pull request #1883 from Donnnno/temp-icons
Temporary logo color change
2024-10-05 23:30:40 +02:00
mauro-balades
b323a92dbf Added zen workspaces for syncing 2024-10-05 23:27:25 +02:00
mauro 🤙
57f697975e Merge pull request #1899 from kristijanribaric/feature(workspace-sync)-load-workspace-sync-script
Feature: Add Zen Workspaces synchronization
2024-10-05 22:53:49 +02:00
Kristijan Ribarić
9a9171055c feat(sync): Removed patch files, placed the logic in zen files 2024-10-05 22:53:13 +02:00
mauro-balades
90683aa637 Refactor build workflow to disable version update 2024-10-05 19:00:40 +02:00
mauro-balades
480bcccbf4 Refactor build workflow to remove debug inputs 2024-10-05 18:57:36 +02:00
mauro-balades
015c27ecad Refactor build workflow to fix debug inputs 2024-10-05 18:56:01 +02:00
mauro-balades
1ec4c2ba9d Refactor build workflow to include debug inputs 2024-10-05 18:55:24 +02:00
mauro-balades
69653bb402 Refactor build workflow to include debug inputs 2024-10-05 18:53:20 +02:00
mauro-balades
988d5a2535 Refactor release workflow conditionals 2024-10-05 18:46:39 +02:00
mauro-balades
8de8f190ff Fixed internal keyboard shortcuts for macos (https://github.com/zen-browser/desktop/issues/1629) and bookmarks sidebar separation 2024-10-05 18:42:27 +02:00
brahim
ac58a0da0e Merge remote-tracking branch 'origin/main' into feature/rearrange-split-view 2024-10-05 17:54:09 +02:00
mauro-balades
eb19d2a1c4 Fixed themes page crashing if the theme didnt exist 2024-10-05 16:37:49 +02:00
brahim
36656fd0f4 Add splitview drag and drop functionality 2024-10-05 15:24:35 +02:00
Donno
eb5d10c24a ico & mac 2024-10-05 15:18:15 +02:00
Donno
da6101a355 revert color for alpha 2024-10-05 15:11:31 +02:00