Skip to content

Commit

Permalink
fix: record button now has a default position and is draggable (#79)
Browse files Browse the repository at this point in the history
* fix: record button now has a default position and is draggable

* fix: hiding cropper and record button from capturing

* feat: hide cropper and record button from capturing for mac

* refactor: extract affinity-based hiding to dedicated func

* refactor: extract transparency and levels to dedicated func mac

* feat: revamp record button (#86)

* feat: changes record button width and background

* fix: sizing of drag handle

* feat: move escape key handling to vanilla js

* feat: show record window from get go and don't hide when selecting

* feat: reset-crop -> reset-area

* feat: clean up toggle cropper func

* refactor: mac transparency function

* feat: more minimal drag handle

* chore: shorten event

* feat: move all cropper hiding logic to rust side (#85)

* chore: move exclusive windows dep

* chore: reduce text size and remove redundant drag handles

* temp: disable windows exclusion until blackness fix is done

---------

Co-authored-by: Pranav2612000 <[email protected]>
Co-authored-by: clearlysid <[email protected]>
  • Loading branch information
3 people authored May 15, 2024
1 parent 7e79f7c commit dc4361b
Show file tree
Hide file tree
Showing 9 changed files with 233 additions and 253 deletions.
78 changes: 25 additions & 53 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 10 additions & 7 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ tauri = { version = "2.0.0-beta", features = [
"tray-icon",
"image-png",
] }
tauri-plugin-shell = "2.0.0-beta"
scap = { git = "https://github.com/helmerapp/scap/", branch = "main" }
henx = { git = "https://github.com/helmerapp/henx/", branch = "main" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tauri-utils = "2.0.0-beta"
tauri-plugin-shell = "2.0.0-beta"
tauri-plugin-store = "2.0.0-beta"
tauri-plugin-dialog = "2.0.0-beta"
tauri-plugin-updater = "2.0.0-beta"
tauri-plugin-global-shortcut = "2.0.0-beta"
tauri-plugin-single-instance = "2.0.0-beta"
tauri-plugin-updater = "2.0.0-beta"
tauri-plugin-dialog = "2.0.0-beta"
tauri-plugin-store = "2.0.0-beta"
tauri-plugin-decorum = { git = "https://github.com/clearlysid/tauri-plugin-decorum", branch = "main" }
scap = { git = "https://github.com/helmerapp/scap/", branch = "main" }
henx = { git = "https://github.com/helmerapp/henx/", branch = "main" }
tokio = { version = "1", features = ["full"] }
window-shadows = "0.2.1"
os_info = { version = "3", default-features = false }
opener = "0.6.1"
gifski = { version = "1.12.2", default-features = false, features = [
Expand All @@ -46,6 +46,9 @@ tempfile = "3.10.0"
chrono = "0.4.33"
anyhow = "1.0"

[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.56", features = ["Win32_Foundation", "Win32_UI_WindowsAndMessaging"] }

[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.25.0"
objc = "0.2.7"
Loading

0 comments on commit dc4361b

Please sign in to comment.