Lea Anthony
bf9e17a6c8
[WEP] Customise Window Titlebars ( #3508 )
...
* Add proposal.
Reference Mac implementation
* Add windows support. Update proposal.
* Update example
* Rename Active->Enable,Inactive->Disabled. Ensure window can get controls back after hiding close on windows. Added guide. Updated example.
* Add ExStyle option for setting titlebar style.
* Fix linux builds
* Tidy up
2024-06-08 13:42:27 +10:00
Atterpac
0dd73e249d
Revert "Remove OpenContextMenu" ( #3524 )
...
This reverts commit 54140e9adb
.
2024-06-02 06:30:17 +10:00
Lea Anthony
54140e9adb
Remove OpenContextMenu
2024-06-01 15:04:35 +10:00
Lea Anthony
2cee1edcb5
Add window.GetBorderSizes
2024-04-25 15:22:01 +10:00
Lea Anthony
8d234cc842
Update execjs signature
2024-03-14 08:57:10 +11:00
Lea Anthony
b6c5d90c9d
Window Flash for Linux
...
Set Min/Max window buttons
2024-03-06 11:43:16 -06:00
Lea Anthony
a34ccbff33
ToggleDevTools -> OpenDevTools
...
More refactor CGO methods.
2024-03-06 11:43:12 -06:00
Fabio Massaioli
0c3025d695
[v3] Fix ordering of if branches in WebviewWindow.Restore method ( #3279 )
...
* Add JS Window API example
* Fix ordering of if branches in Window.Restore method
* Add changelog entry
2024-03-02 16:04:02 +11:00
Fabio Massaioli
b8537d1c96
[v3] Restore ToggleMaximise method in Window interface ( #3281 )
...
* Add JS Window API example
* Add ToggleMaximise button to Window API example
* Restore ToggleMaximise method in Window interface
* Update docs and changelog
2024-02-29 08:42:57 +11:00
Lea Anthony
6e2bbe31ac
[windows] fix frameless resize
2024-02-01 06:47:49 +11:00
Lea Anthony
7674f8eb2b
Fixed dialogs on macOS. Update WML example to use compiled runtime.
2024-01-25 21:00:33 +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
stffabi
2f3eb70a4d
[windows] Use msWebView2BrowserHitTransparent for non working NC area clicks on unfocused window
...
Without this patch there's a really strange behaviour if there are
multiple windows.
Having two windows with a webview open with an input field.
Focusing the input field on one window, then focusing the input
field on the second one. Then clicking directly on the non client
area of the first one, e.g. to trigger a minimze, the minimize is
not executed until the mouse is getting moved. As long as the
mouse is not moved the event for the click is blocked and not
executed.
Using this new mode fixes that problem, but we need to handle
‘alt+f4’ on our own.
2023-12-30 23:34:54 +01:00
stffabi
b37d0f1cf4
[windows] Improved focus handling
...
Make sure the webview is focused on initial show if the window
is focused and make behaviour consistent with macOS
2023-12-30 23:34:53 +01:00
Lea Anthony
5b51e0fad3
@wailsio/runtime alpha.9 - Fix call responses.
2023-12-30 15:49:23 +11:00
Lea Anthony
b08126d745
Radical JS runtime overhaul. New @wailsio/runtime package
2023-12-28 19:18:26 +11:00
Lea Anthony
8463c01123
[windows] Drag-n-drop support
2023-10-21 11:21:10 +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
4c75b288bb
Add BrowserOpenURL and BrowserOpenFile to App.
...
Better WML assets for demo
Fix dialog responses.
Add `wml-openurl`
Rename: data-wml -> wml
Fix Alpha Feedback URL
2023-10-11 20:23:59 +11:00
Lea Anthony
3d88bf8795
Fix context menu issues.
...
Fix WindowID for requests on windows.
Add `Windows.ApplicationStarted` event
2023-10-10 21:48:47 +11:00
Lea Anthony
740b2b0979
Fix windows icon for about box.
...
Add NewRGBA and NewRGB methods.
Added README.md to all examples.
Add roadmap.md to docs
2023-10-09 20:56:19 +11:00
Lea Anthony
255690eee0
[darwin] Add webview preferences
2023-09-30 15:23:56 +10:00
Travis McLane
1c48d567e1
[v3] NewWebviewWindow* return *WebviewWindow
2023-09-28 13:30:47 -05:00
Travis McLane
c87489adf3
[v3] implement Window interface
2023-09-28 11:39:39 -05: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
793191a479
Initial key binding support
2023-09-17 20:48:30 +10:00
ALMAS
37b99b9cb8
Update webview_window.go ( #2912 )
2023-09-16 07:20:49 +10:00
Lea Anthony
bb3a0cc54f
Add WebviewWindow.IsFocused()
2023-09-13 08:57:20 +10:00
Travis McLane
2f7c6834d0
[v3 linux] use invokeSync
2023-09-11 17:12:57 -05:00
Lea Anthony
13be4a333f
Move to slog logger for application and log plugin
2023-08-10 22:04:13 +10:00
Lea Anthony
705239ad7d
[v3] Use WindowEvent
rather than WindowEventContext
2023-07-12 20:50:01 +10:00
Lea Anthony
dc865404a9
[v3] Initial hooks implementation
2023-07-12 20:31:13 +10:00
Lea Anthony
d6cfe4414d
[v3 Windows] Add WebviewWindow.Flash()
2023-07-11 20:10:18 +10:00
Lea Anthony
f0bf8cd827
[v3 windows] Refactor events + mappings. Fix app.Quit(). Make systray example work slightly better
2023-07-05 20:35:45 +10:00
Lea Anthony
5b6f6c1bff
[v3] Default context menu always shows in debug/dev
2023-06-28 18:47:39 +10:00
Lea Anthony
3fcac435b2
[v3] Support window events in JS. Fix ExecJS blocking issues.
2023-06-26 22:10:31 +10:00
Travis McLane
94e1ec91ad
Revert "Merge branch 'v3-alpha_linux' into v3-alpha"
...
This reverts commit b317efaf2c
, reversing
changes made to 29b9c5200f
.
2023-06-23 21:50:51 -05: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
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
4d2b4b4ee7
[v3] Update dev guide. Remove implLock.
2023-06-21 19:37:39 +10:00
Lea Anthony
ed27558011
[v3 windows] Add WebviewWindow.Print()
2023-06-18 17:13:07 +10:00
Lea Anthony
1537a002cc
[v3] Add ShouldClose
window method. Remove hideOnClose
flag.
2023-06-18 11:12:53 +10:00
Lea Anthony
01e2e46e0d
[v3 windows] Support frameless drag. Add /wails/flags
endpoint.
2023-06-15 19:08:08 +10:00
Lea Anthony
49e62aebe3
[v3 windows] Support frameless drag
2023-06-13 17:44:07 +10:00
Lea Anthony
6d786902eb
[v3] Add some common window events
2023-06-12 10:27:30 +10:00
Lea Anthony
6092730acc
[v3 windows] Support Close and take into account HideOnClose option
2023-06-03 15:23:10 +10:00
Lea Anthony
9b7626e59e
[v3 windows] Move icons to own package, systray dark mode icon, window.Focus()
,
2023-05-30 16:31:57 +08:00