Commit graph

531 commits

Author SHA1 Message Date
mr. M
b035ca8b0f
Refactor ZenGradientGenerator class to use constructor instead of init method 2024-10-27 20:39:46 +01:00
mr. M
7ae2dee1b2
Refactor ZenGradientGenerator class to use constructor instead of init method 2024-10-27 20:32:20 +01:00
mr. M
87e0859cc8
Refactor ZenGradientGenerator class to use constructor instead of init method 2024-10-27 13:11:53 +01:00
mr. M
04183d8e13
Refactor ZenGradientGenerator class to use constructor instead of init method 2024-10-27 08:52:41 +01:00
mr. M
a179f92b67
Fixed split view resizing not showing (https://github.com/zen-browser/desktop/issues/2269) 2024-10-27 08:21:27 +01:00
mr. m 🤙
a6c815f039
Merge pull request #67 from kristijanribaric/fix/update-workspace-them-after-applying-sync-data
Fix: Notify theme picker when workspace has synced
2024-10-26 23:38:52 +03:00
Kristijan Ribarić
b869831705 fix(workspaces): Notify theme picker when workspace has synced
This commit updates the workspace sync logic to notify the theme picker when the active workspace changes.

This ensures that the theme picker can update its state and display the correct theme for the current workspace.
2024-10-26 22:31:03 +02:00
mr. M
89d29e664d
Refactor ZenGradientGenerator class to use constructor instead of init method 2024-10-26 22:19:50 +02:00
mr. M
9e7b399089
Refactor ZenThemePicker class to extend ZenMultiWindowFeature 2024-10-26 21:23:54 +02:00
mr. m 🤙
2657049e86
Merge pull request #66 from kristijanribaric/fix/update-gradient-generator-logic
Fix: Update gradient generator logic and add theme properties to sync engine
2024-10-26 20:34:34 +03:00
mr. m 🤙
c91530e784
Merge pull request #65 from gunir/patch-3
Frame and Video/Image Split View
2024-10-26 20:34:08 +03:00
Kristijan Ribarić
06d85541b1 feat(zen-workspaces): Add workspace theme sync support
This commit adds support for syncing workspace themes across devices.

The following changes were made:

- Added theme properties to the Zen workspace schema:
    - `theme_type` (string): Type of theme (e.g., "gradient", "solid").
    - `theme_colors` (JSON string): Array of gradient colors.
    - `theme_opacity` (number): Opacity of the theme.
    - `theme_rotation` (number): Rotation of the theme.
    - `theme_texture` (number): Texture of the theme.
- Updated the `ZenWorkspacesSync` class to handle theme data.
- Added validation for theme properties.
- Updated the `ZenWorkspacesStorage` class to save and load workspace themes.
- Bumped the `ZenWorkspacesEngine` version to 2.
2024-10-26 19:24:40 +02:00
Kristijan Ribarić
182f221373 feat(workspaces): Store workspace theme information
This commit adds the ability to store theme information for workspaces.

- Added `theme_type`, `theme_colors`, `theme_opacity`, `theme_rotation`, and `theme_texture` columns to the `zen_workspaces` table.
- Updated `saveWorkspace` to store the theme information when saving a workspace.
- Removed the unused `zen_workspace_themes` table.

This change allows users to save and restore the theme of their workspaces.
2024-10-26 19:13:16 +02:00
Kristijan Ribarić
4b3e8943f4 feat: Remove getWorkspaceTheme() method
The `getWorkspaceTheme()` method has been removed because it is no longer necessary. The theme information is now retrieved directly from the workspace data in `getWorkspaces()`. This change simplifies the code and improves efficiency.
2024-10-26 18:45:17 +02:00
Kristijan Ribarić
ceefcbecef feat(workspace): Add workspace theme persistence to zen_workspaces table and caching improvements
This commit introduces several improvements related to workspace themes:

- **Theme Persistence:** Workspaces now persist their themes in zen_workspaces table alongside other workspace data.
- **Theme Propagation:** The `_propagateWorkspaceData` function now includes an option to clear the workspace cache, preventing stale data from being used when propagating workspace data.
- **Theme Handling:** The `onWorkspaceChange` function now uses the theme from the workspace object or a passed theme, simplifying theme handling.
- **Theme Data Structure:** The `zen_workspaces` table has been updated to store theme data directly, eliminating the need for a separate `zen_workspace_themes` table.
- **Database Schema Changes:** This commit introduces new columns to the `zen_workspaces` table to store theme information, making the database schema more efficient and less redundant.
2024-10-26 18:42:12 +02:00
mr. M
b2f80fb7e1
Refactor ZenGradientGenerator to exclude workspaces without gradients 2024-10-26 18:05:00 +02:00
Kristijan Ribarić
8c3b9110b3 Update the color theme on panel close instead of on input. 2024-10-26 16:34:35 +02:00
mr. M
2572fb55f6
Refactor dot removal logic in ZenGradientGenerator 2024-10-26 14:18:56 +02:00
Gunir
83e581faf8
Frame and Video/Image Split View
Frame and Video/Image Split View
2024-10-26 18:07:36 +07:00
mr. M
aa13489798
Refactor animation timing in ZenGradientGenerator 2024-10-26 12:10:52 +02:00
mr. M
c0aae7a2ee
Refactor gradient changer location and add support for per workspace gradients and animations 2024-10-26 11:56:39 +02:00
mr. M
4a5809f950
Changed location of the gradient changer 2024-10-26 00:08:20 +02:00
mr. M
649b22bbe3
Added a working workspaces gradient chooser! 2024-10-25 21:50:11 +02:00
mr. M
5ce7d24842
Added per workspace support for gradients and animations 2024-10-25 15:11:32 +02:00
mr. M
23e6294c9a
Choosing colors from the gradient generator now works 2024-10-25 12:54:43 +02:00
mr. M
4c79e99adf
Made web panels limit customizeable 2024-10-25 11:36:26 +02:00
mr. M
6f05fb2acb
Started working on the gradient generation 2024-10-24 23:53:05 +02:00
mr. M
8db952694e
Merge branch 'main' of https://github.com/zen-browser/components 2024-10-24 21:46:12 +02:00
mr. M
a67faa2ea4
Refactor ZenThemePicker class to initialize context menu 2024-10-24 21:46:07 +02:00
mr. m 🤙
c7e1f293a6
Merge pull request #64 from Richard-Woessner/dev
Fix issue with workspace icon not updating on edit
2024-10-24 22:38:41 +03:00
ricky
213d507258 Fix issue with workspace icon not updating on edit 2024-10-24 15:23:36 -04:00
mr. m 🤙
dc1400f4db
Merge pull request #63 from kristijanribaric/fix/workspace-reordering-fixes
Fix: Add functionality to move workspace to the end and disable reorder mode on panel close
2024-10-24 21:45:44 +03:00
Kristijan Ribarić
2222d97a99 fix: Add functionality to move workspace to the end
This commit adds the ability to move a workspace to the end of the workspace list by dragging it to a designated drop target.

The changes include:

- Creation of a new "last position drop target" element that allows dragging a workspace to the end.
- Event listeners for dragover, dragenter, dragleave, and drop events on the drop target element.
- Implementation of `moveWorkspaceToEnd` function to update the workspace positions in storage when a workspace is moved to the end.
- Reorder mode is exited if the panel is closed.
- Updates to the workspace list to include the last position drop target.
2024-10-24 20:26:32 +02:00
mr. m 🤙
c5971af912
Merge pull request #61 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:04:50 +03:00
Kristijan Ribarić
b77d7ce110 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:38:21 +02:00
mr. M
e04d67db05
FIxed always rendering the split view overlay, pottentially fixing huge speed issue 2024-10-19 18:05:30 +02:00
mr. M
84f7be7948
Fixed 'cancel' button for workspaces creation 2024-10-19 12:48:04 +02:00
mr. M
c79de8b430
Allow reserved keyboard shortcuts to be changed 2024-10-18 23:10:27 +02:00
mr. m 🤙
7a8579c913
Merge pull request #60 from kristijanribaric/fix/create-new-tab-when-closing-last-unpinned-tab
Fix: Create new tab when closing last unpinned tab.
2024-10-18 23:33:59 +03:00
Kristijan Ribarić
410264c9c6 Fix: Create new tab when closing last unpinned tab. 2024-10-18 20:45:16 +02:00
mr. M
cfa0d1c8f4
Merge branch 'main' of https://github.com/zen-browser/components 2024-10-18 18:19:59 +02:00
mr. M
ed83f5952e
Refactor ZenKeyboardShortcuts.mjs to rebuild shortcuts if data is missing 2024-10-18 18:19:53 +02:00
mr. m 🤙
301fec9557
Merge pull request #59 from GunGunGun/patch-1
Recreate shortcuts file if not exist/deleted -  ZenKeyboardShortcuts.mjs
2024-10-18 19:19:32 +03:00
mr. M
d567e18216
Fixed shortcuts on startup 2024-10-18 17:30:50 +02:00
mr. M
e13fa2315e
Refactor workspace icon picker element IDs 2024-10-18 17:09:13 +02:00
mr. m 🤙
cb51987dc2
Merge pull request #58 from JosueGalRe/main
 Added disable all component handling
2024-10-18 17:49:21 +03:00
Gun
e6d144879c
Recreate shortcuts file if not exist/deleted - ZenKeyboardShortcuts.mjs
Recreate shortcuts file if not exist/deleted -  ZenKeyboardShortcuts.mjs
2024-10-18 19:59:41 +07:00
Bryan Galdámez
2f2881814e Added disable all component handling 2024-10-17 22:57:55 -06:00
mr. m 🤙
d853fa8de4
Merge pull request #57 from HarryHeres/fix/workspaces-icon-picker
Fixing workspaces icon picker
2024-10-18 01:40:31 +03:00
HarryHeres
6b4d3f54f3
Fixing workspaces icon picker 2024-10-18 00:27:56 +02:00