Lea Anthony
7674f8eb2b
Fixed dialogs on macOS. Update WML example to use compiled runtime.
2024-01-25 21:00:33 +11:00
Lea Anthony
6522657893
Refactor menu functions and streamline devtools toggle across systems
...
This update adds implementation to several menu item functions, replacing their previous 'not implemented' state. This includes actions for close, reload, forcing reload, toggling of fullscreen, reset zoom, and others. The update also includes modifications for the handling of developer tools toggle under different build configurations. This refactoring is aimed to standardize devtools configuration across different operating systems.
2024-01-21 20:52:32 +11:00
Lea Anthony
861ddea1b2
Add option to prevent application shutdown
...
This update allows the application shutdown to be cancelled. It implements the shouldQuit function, which can prevent the application from quitting if it returns false. Additional checks have been added to ensure cleanup and quit processes are performed only if required. The darwin delegate and linux and windows applications were modified to include this new functionality.
2024-01-17 20:45:30 +11:00
Lea Anthony
1195464acb
Improve window teardown on termination
...
This commit adds a robust teardown process for windows on application shutdown. It introduces a field to track the destruction state of each window and checks such before performing window operations. Also, it enhances the destroy functions within application for thorough clean up. Finally, redundant event handlers related to application termination were removed while fixing file generating challenge in go tasks.
2024-01-09 07:45:56 +11:00
Lea Anthony
985c5bf8e2
[darwin] Support Ignore mouse events
...
[darwin] Support applicationSupportsSecureRestorableState
Update video example
2023-10-29 20:29:45 +11:00
Lea Anthony
7795a2a46f
Fix modifier processing on windows.
...
Move info logs to debug.
2023-10-15 13:53:31 +11:00
Lea Anthony
ebe91ba11d
[darwin] Disable listener caching. Run execJS
on main thread.
2023-10-07 20:08:22 +11:00
Lea Anthony
255690eee0
[darwin] Add webview preferences
2023-09-30 15:23:56 +10:00
Lea Anthony
86b6e10620
[darwin]AlwaysOnTop: NSStatusWindowLevel
-> NSFloatingWindowLevel
2023-09-30 14:27:48 +10:00
Lea Anthony
7cdab16ba9
Add API docs. Do small refactors
2023-09-24 08:57:40 +10:00
Lea Anthony
af8ee6703e
[darwin] Support keybindings
2023-09-20 21:34:50 +10:00
Lea Anthony
bb3a0cc54f
Add WebviewWindow.IsFocused()
2023-09-13 08:57:20 +10:00
Lea Anthony
d390cac8db
Fix EnableFraudulentWebsiteWarnings for mac
2023-09-07 21:33:11 +10:00
Lea Anthony
d44c8eba1c
[v3] Use system logger instead of println
2023-08-28 20:30:40 +10:00
Lea Anthony
946a4c56a0
[v3 mac] Better logging
2023-08-18 09:58:43 +10:00
Lea Anthony
5e76a5e76a
[v3 mac] Fix event callback signatures
2023-07-12 21:29:01 +10:00
Lea Anthony
d6cfe4414d
[v3 Windows] Add WebviewWindow.Flash()
2023-07-11 20:10:18 +10:00
Lea Anthony
3d323ab9d2
[v3] Fix systray example. PositionWindow now takes an offset. EventApplicationDidResignActive
-> EventApplicationDidResignActiveNotification
2023-07-04 19:26:00 +10:00
Lea Anthony
5737b3cc7b
[v3 mac] Fix merge issues
2023-06-25 10:13:20 +10:00
Lea Anthony
4de5e1b9f1
[v3] Add WindowUnFocus event
2023-06-24 13:23:50 +10:00
Lea Anthony
c96cccab2e
[v3] Add Window AbsolutePosition/SetAbsolutePosition
2023-06-23 21:14:26 +10:00
Lea Anthony
45cfbe917e
[v3] Position/GetPosition -> RelativePosition/GetRelativePosition
2023-06-23 20:49:27 +10:00
Lea Anthony
76672facfe
[v3] Add window Enabled
method. Fix dialog attachment
2023-06-23 19:48:04 +10:00
Lea Anthony
8f075b5d8d
[v3] Fix merge issues
2023-06-22 19:56:35 +10:00
Lea Anthony
b317efaf2c
Merge branch 'v3-alpha_linux' into v3-alpha
...
# Conflicts:
# v3/STATUS.md
# v3/examples/menu/main.go
# v3/go.mod
# v3/pkg/application/application.go
# v3/pkg/application/webview_window.go
2023-06-22 19:46:10 +10:00
Lea Anthony
3355d5f0af
[v3] Add EnableDevTools
option
2023-06-20 08:49:25 +10:00
Lea Anthony
552390fb84
[v3 mac] Tidy up
2023-06-19 17:53:16 +10:00
Lea Anthony
cdf397aaa9
[v3 mac] Implement print()
2023-06-19 07:15:53 +10:00
Lea Anthony
50387948df
[v3 mac] Refactor drag to use common code
2023-06-18 12:24:44 +10:00
Lea Anthony
86f2ac0e96
[v3 mac] Fix WindowShouldClose
bug
2023-06-18 11:25:38 +10:00
Lea Anthony
1537a002cc
[v3] Add ShouldClose
window method. Remove hideOnClose
flag.
2023-06-18 11:12:53 +10:00
Lea Anthony
72ec10b181
[v3 mac] Fix window close bug
2023-06-16 21:01:17 +10:00
Lea Anthony
eed4002a4a
[v3 mac] Fix GetPosition Y coordinate
2023-06-16 20:54:53 +10:00
Lea Anthony
155e34c7a8
[v3 mac] Better main thread calls
2023-06-16 20:48:57 +10:00
Lea Anthony
22cc649e81
[v3 mac] translate window position for SetPosition
2023-06-16 20:20:18 +10:00
Lea Anthony
49e62aebe3
[v3 windows] Support frameless drag
2023-06-13 17:44:07 +10:00
Lea Anthony
7e2d2a29a1
[v3 windows] Initial webview2 working
2023-05-30 16:33:34 +08:00
Lea Anthony
87737c23eb
[v3 mac] DisableWindowShadow -> DisableShadow
2023-05-30 16:33:33 +08:00
Lea Anthony
6a2343a1a0
[v3 mac] Add DisableWindowShadow
option
2023-05-30 16:32:01 +08:00
stffabi
527cff9ec3
[v3 darwin] Add darwin identifier to all C files of darwin
2023-05-30 16:32:00 +08:00
Lea Anthony
b526ebd679
[v3 mac] Update api. New template icon.
2023-05-30 16:31:58 +08:00
stffabi
4ad2475ed6
[v3] Add some missing methods for darwin and windows
2023-05-30 16:31:54 +08:00
Lea Anthony
7c63cee9e8
[windows] Support AlwaysOnTop, EnableResize at runtime. Added Solid/Transparent/Translucent options.
2023-05-30 16:31:47 +08:00
Travis McLane
5078e89a71
[darwin] implement isNormal
2023-05-10 09:10:03 -05:00
Lea Anthony
b91468b6f2
[v3 mac] Update api. New template icon.
2023-05-09 21:55:17 +10:00
stffabi
f4749db8b3
[v3] Add some missing methods for darwin and windows
2023-05-02 21:56:40 +02:00
Lea Anthony
7f3f51e36b
[windows] Support AlwaysOnTop, EnableResize at runtime. Added Solid/Transparent/Translucent options.
2023-04-28 21:11:49 +10:00
Travis McLane
fbe7d4de6b
Bugfix/remove miniaturize ( #2579 )
...
* remove duplicate 'minimize' from interface
already covered by 'minimise'
* [darwin] remove windowMiniaturize
duplicates the logic in windowMinimise
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-04-12 21:34:31 +10:00
stffabi
c8d203d4d6
[v3, darwin] Fix leaking WebKit processes on Window close ( #2574 )
...
* [v3, darwin] Fix leaking WebKit processes on Window close
* [v3] Remove window from window map if closed
[v3] Implement `HideOnClose` and ensure it isn't removed when closed
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-04-12 21:33:00 +10:00
stffabi
0e614b0194
[v3] Centralize the AssetServer and move it to the application
2023-03-16 06:49:45 +01:00