Commit Graph

1300 Commits

Author SHA1 Message Date
mr. M
cf431e1e4b Add media query for dark mode outline in zen-urlbar styles 2025-02-18 00:30:37 +01:00
mr. m
13694d711d Make sure the onboarding window isn't draggable
Signed-off-by: mr. m  <91018726+mauro-balades@users.noreply.github.com>
2025-02-18 00:10:13 +01:00
mr. M
973d6f64e2 Compact mode toolbar now also gets affected by the texture variable 2025-02-17 23:54:33 +01:00
mr. M
84bbb4ba63 Removed pilled button preference as it's no longer useful 2025-02-17 21:46:16 +01:00
mr. M
15a056b466 Fixed fully expanding glance when having reduced motion enabled (closes https://github.com/zen-browser/desktop/issues/5117) 2025-02-17 19:30:44 +01:00
mr. M
a66afafe31 Fix: Ensure welcome page preference is set when displayed 2025-02-17 19:18:10 +01:00
mr. m
657cb4c4cd Merge pull request #5474 from kristijanribaric/add-tab-rename-persistance
Fix: Update pinned tab title in storage on rename
2025-02-17 19:16:41 +01:00
mr. M
c81cf324b8 Refactor CSS styles for ZenWelcome and vertical tabs, improving layout and animations 2025-02-17 19:12:49 +01:00
Kristijan Ribarić
57a33beb81 Fix: Properly update pinned tab titles after edit
This commit addresses an issue where edited pinned tab titles were not consistently updated across all windows and in storage.

The following changes were made:

- **ZenUIManager.mjs:** Removed redundant `pinId` variable and directly checked `zen-pin-id` attribute.
- **ZenPinnedTabsStorage.mjs:** Added `edited_title` column to the `zen_pins` table to track if a pin's title has been manually edited.  Also, the `updatePinTitle` function now accepts an `isEdited` flag (defaults to true) and updates the `edited_title` column accordingly.
- **ZenPinnedTabManager.mjs:**  The `updatePinTitle` function was added to handle the update of pin titles.  It updates the title in storage using `ZenPinnedTabsStorage.updatePinTitle`, refreshes the pinned tabs, and then iterates through all browser windows to update the labels of corresponding pinned tabs.  Also, a check was added to `_initializePinnedTabs` to set the `zen-has-static-label` attribute on tabs with `editedTitle` set to `true`.
- **ZenWorkspaces.mjs:** Added a null check for `activeWorkspaceStrip` to avoid errors when it's not available.

These changes ensure that when a pinned tab title is edited, the updated title is correctly persisted in storage and reflected across all open windows. The `edited_title` flag allows distinguishing between default titles and custom ones.
2025-02-17 17:22:44 +01:00
Kristijan Ribarić
a6e446e5cf Fix: Update pinned tab title in storage on rename
This commit addresses an issue where renaming a pinned tab wouldn't update the title stored in `ZenPinnedTabsStorage`.

The following changes were made:

- Modified `ZenUIManager.mjs` to asynchronously call `ZenPinnedTabsStorage.updatePinTitle` when a tab is renamed via the keyboard. This ensures the stored title is synchronized with the displayed title.
- Added the `updatePinTitle` function to `ZenPinnedTabsStorage.mjs`. This function updates the title of a zen pin within the database.

This ensures consistency between the tab title displayed in the UI and the title stored for pinned tabs.
2025-02-17 15:56:57 +01:00
mr. M
68a3096683 Enhance ZenWelcome styling and functionality
- Add nowrap to welcome text for better layout
- Change button attribute to class for primary styling
- Update window centering logic to improve user experience
2025-02-17 13:19:54 +01:00
mr. m
c857541666 Merge branch 'dev' into new-onboarding 2025-02-17 12:27:34 +01:00
mr. M
cbbae1e26a Fix CSS syntax and improve force calculation for workspace swiping 2025-02-17 12:25:12 +01:00
mr. M
a6a7f1ab4c Update CSS for PersonalToolbar to ensure visibility when not collapsed 2025-02-17 11:40:01 +01:00
mr. M
690ae8641e Update MacOS icon resources and adjust CSS styles for improved layout 2025-02-17 11:30:35 +01:00
mr. M
2835104029 Add new SVG icons and update CSS for bookmarks toolbar 2025-02-17 01:08:08 +01:00
mr. M
0f6bd9c806 Increase animation duration for app wrapper and transition reactivation timing 2025-02-16 21:58:48 +01:00
mr. M
415031230c Refactor CSS styles for URL bar, popups, and compact mode; add grainy background effect and adjust toast animation timing 2025-02-16 21:33:09 +01:00
mr. m
0579c7affa Changed panel UI animation speend and transition function 2025-02-16 19:45:02 +01:00
mr. m
06e9a93d5e Glance will now open on any pinned tab, not just essentials 2025-02-16 19:44:08 +01:00
mr. m
c708d0ccf2 Worked more on the welcome screen 2025-02-16 18:02:45 +01:00
mr. m
d67b0d3f57 Merge branch 'dev' into new-onboarding 2025-02-16 17:06:55 +01:00
mr. m
eddc804a92 Formatted the project 2025-02-16 13:39:09 +01:00
mr. m
4bc5e41c35 Trim more the urlbar on single toolbar, fixed pinned tabs issues and removed security indicator on the urlbar unless it's hovered 2025-02-16 13:17:36 +01:00
mr. m
7b6b69356c FIxed uploading twilight assets 2025-02-16 12:28:48 +01:00
mr. m
cad5703185 Fixed previous merges 2025-02-15 20:24:34 +01:00
mr. m
91e97143c9 Merge branch 'dev' of https://github.com/zen-browser/desktop into dev 2025-02-15 19:08:06 +00:00
mr. m
6ffe5fd249 Fixed havhing monochrome titlebar buttons not being disabled 2025-02-15 19:02:20 +00:00
mr. m
3da54549ea Added support for macos monochrome titlebar buttons, on by default 2025-02-15 19:02:20 +00:00
mr. M
a6ec05da49 Refactor CSS variables for button backgrounds and text colors to enhance theme consistency and improve hover effects 2025-02-15 19:02:20 +00:00
mr. M
47cb4e488f Add hover effect to toolbar elements in zen-workspaces.css for improved UI interaction 2025-02-15 19:02:20 +00:00
mr. M
3649d7f111 Implement toast notifications for user actions and enhance UI feedback 2025-02-15 19:02:20 +00:00
mr. M
8372671b70 Refactor animation code for tab editing to improve readability and maintainability 2025-02-15 19:02:20 +00:00
mr. M
945eec6931 Refactor tab renaming logic to ensure consistent label handling and add animation effect; update CSS for vertical tabs to improve styling 2025-02-15 19:02:20 +00:00
jso8910
2c92c61015 Deactivated listener in collapsed sidebar mode, refactored code 2025-02-15 19:02:20 +00:00
jso8910
d56f4962bf Added preference to disable tab renaming, refactored inline styles to css files, changed listener to blur, refactored code 2025-02-15 19:02:18 +00:00
jso8910
34355d8e00 Changed listener to tabContainer.addEventListener 2025-02-15 19:00:14 +00:00
jso8910
27dc41dd9e Added zen-has-static-label to session store, temporarily removed label persist functionality, rewrote tab reset to use DOM 2025-02-15 19:00:11 +00:00
jso8910
8080e2fe47 Added persisting in tab label renaming, added tab label resetting 2025-02-15 18:57:45 +00:00
jso8910
a716c99152 Fixed bug where new pinned tabs can't be renamed 2025-02-15 18:57:45 +00:00
jso8910
df30fcf37b Fixed code formatting for linter 2025-02-15 18:57:45 +00:00
jso8910
71d2bfab38 Moved rename to gZenVerticalTabsManager, changed to double click on pinned tabs 2025-02-15 18:57:41 +00:00
jso8910
62a7e70ebe Rudimentary tab renaming. Does not persist on page name change or restart 2025-02-15 18:56:51 +00:00
mr. M
8e6b4515ed Refactor vertical-tabs.css to enhance tab background styling and improve layout consistency 2025-02-15 18:56:51 +00:00
mr. m
894d237841 Fixed havhing monochrome titlebar buttons not being disabled 2025-02-15 18:48:31 +01:00
mr. m
123128bfc7 Added support for macos monochrome titlebar buttons, on by default 2025-02-15 18:37:13 +01:00
mr. M
59c559de14 Refactor welcome screen preferences and animations for improved user experience 2025-02-15 16:44:13 +01:00
mr. M
852d928860 Add heart animation to ZenWelcome component and refine fade-in effects 2025-02-15 16:28:29 +01:00
mr. M
6abd7ea690 Merge branch 'new-onboarding' of https://github.com/zen-browser/desktop into new-onboarding 2025-02-15 13:01:55 +01:00
mr. m
6bbf42c000 Merge branch 'dev' into new-onboarding 2025-02-15 13:01:46 +01:00