Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,207 changes: 1,140 additions & 67 deletions apps/desktop/src-tauri/Cargo.lock

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,21 @@ tauri-plugin-dialog = "2"
tauri-plugin-updater = "2"
tauri-plugin-process = "2"
window-vibrancy = "0.5"
xcap = "0.9"
base64 = "0.22"
image = { version = "0.25", default-features = false, features = ["png"] }

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59", features = [
"Win32_Foundation",
"Win32_Graphics_Dwm",
"Win32_Media",
"Win32_UI_WindowsAndMessaging",
] }
windows = { version = "0.61", features = [
"Win32_Foundation",
"Win32_System_Com",
"Win32_UI_Accessibility",
"Win32_UI_WindowsAndMessaging",
] }

Expand Down
8 changes: 7 additions & 1 deletion apps/desktop/src-tauri/capabilities/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main, panel and checklist windows",
"windows": ["main", "panel", "checklist"],
"windows": ["main", "panel", "checklist", "capture-overlay"],
"permissions": [
"core:default",
"core:window:allow-start-dragging",
Expand Down Expand Up @@ -48,6 +48,12 @@
"allow-checklist-close",
"allow-checklist-is-open",
"allow-app-quit",
"allow-capture-list-sources",
"allow-capture-source",
"allow-capture-source-meta",
"allow-capture-overlay-open",
"allow-capture-overlay-close",
"allow-capture-element-at",
"core:event:allow-emit",
"core:event:allow-listen",
"core:event:allow-emit-to",
Expand Down
29 changes: 29 additions & 0 deletions apps/desktop/src-tauri/permissions/capture.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[[permission]]
identifier = "allow-capture-list-sources"
description = "Allows listing capture sources (windows and monitors)"
commands.allow = ["capture_list_sources"]

[[permission]]
identifier = "allow-capture-source"
description = "Allows capturing a window or monitor as PNG bytes"
commands.allow = ["capture_source"]

[[permission]]
identifier = "allow-capture-source-meta"
description = "Allows reading metadata for a capture source"
commands.allow = ["capture_source_meta"]

[[permission]]
identifier = "allow-capture-overlay-open"
description = "Allows opening the magnetic capture overlay"
commands.allow = ["capture_overlay_open"]

[[permission]]
identifier = "allow-capture-overlay-close"
description = "Allows closing the magnetic capture overlay"
commands.allow = ["capture_overlay_close"]

[[permission]]
identifier = "allow-capture-element-at"
description = "Allows resolving the UI element rectangle under a screen point"
commands.allow = ["capture_element_at"]
Loading
Loading