Commit graph

503 commits

Author SHA1 Message Date
mr. M
b8d9d79ccc
Refactor ZenGlanceManager.mjs to destroy current browser when closing glance 2024-10-31 14:26:21 +01:00
mr. M
5e791df74c
Refactor ZenGlanceManager.mjs to prevent default behavior and stop event propagation when Escape key is pressed and there is a current browser 2024-10-30 20:50:43 +01:00
mr. M
6db4adf0f6
Refactor ZenGlanceManager.mjs to close glance only when Escape key is pressed and there is a current browser 2024-10-30 20:49:29 +01:00
mr. M
43be9a44c5
Added escape key for glance 2024-10-30 20:49:01 +01:00
mr. M
078e617cc8
Refactor ZenWorkspaces.mjs to remove unnecessary attribute in workspace creation 2024-10-30 18:18:45 +01:00
mr. M
5d631354e5
Refactor ZenGlanceManager.mjs to remove unnecessary attribute and improve animation handling 2024-10-30 17:16:24 +01:00
mr. M
5daa3ffa53
Refactor ZenGlanceManager.mjs to prevent opening multiple glances when animation is in progress or there is no current browser
Refactor ZenWorkspaces.mjs to update the save dialog with a randomly selected icon
2024-10-30 13:44:29 +01:00
mr. M
5eb4fb0d0d
Refactor ZenGlanceManager.mjs to prevent opening multiple glances 2024-10-30 13:23:59 +01:00
mr. M
16fc60e1f0
Refactor ZenGlanceManager.mjs to improve animation handling and visibility toggling 2024-10-30 13:18:25 +01:00
mr. M
b1b3cb8555
Added expand to fullscreen for glance 2024-10-30 12:45:20 +01:00
mr. M
99003f3cb5
Refactor ZenGradientGenerator.mjs to adjust color handling based on dark mode and improve workspace integration 2024-10-29 23:42:04 +01:00
mr. M
8ecd316c18
Refactor ZenGradientGenerator.mjs to improve color handling and workspace integration 2024-10-29 20:45:35 +01:00
mr. M
41f178e840
Fixed duplicate actors manager and glance can be disabled now 2024-10-29 18:08:50 +01:00
mr. M
fb33d61d41
Added support for meta key for glance 2024-10-29 10:50:32 +01:00
mr. M
ed7ce7c8d3
Refactor ZenGlanceManager.mjs to open new tabs in the background and skip loading, and append the new tab to the glance tabs container. Increase the delay for removing the current tab to 500ms. 2024-10-29 10:21:39 +01:00
mr. M
893eead718
Refactor ZenGlanceChild.sys.mjs to use 'mantain' as the activation method instead of 'hover' 2024-10-29 09:51:35 +01:00
mr. M
8cfb95a3ac
Added browser loading for glance 2024-10-29 00:38:04 +01:00
mr. M
416369c981
Refactor openGlance method to accept target element and send relevant data 2024-10-28 16:59:34 +01:00
mr. M
a942043645
Added glance overlay and functionality 2024-10-28 15:25:54 +01:00
mr. M
01905fa4e4
Refactor ZenGlanceManager and ZenThemesImporter classes 2024-10-28 14:44:32 +01:00
mr. m 🤙
e782d724cd
Merge pull request #68 from zen-browser/feature/zen-glance
Add ZenGlanceManager, ZenGlanceChild.sys, and ZenGlanceParent.sys files
2024-10-28 14:17:44 +03:00
mr. M
dd2065575c
Add ZenGlanceManager, ZenGlanceChild.sys, and ZenGlanceParent.sys files 2024-10-28 12:17:19 +01:00
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