Lea Anthony
c82facd6ff
Move startURL calculation to assetserver
2024-01-20 11:50:20 +11:00
Lea Anthony
e5c14d24ae
Initial implementation of dev mode.
...
Huge thanks to @atterpac!
2024-01-19 21:34:49 +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
012eeab3aa
[windows] Fix #2359 by not redirecting the accelerators to wndproc
...
If someone wants to handle accelerators they could use the key
bindings in a cross-platform way.
2023-12-30 23:34:54 +01: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
ALMAS
51afac4f22
[v3/windows] Fix dpi scaling on start up ( #3145 )
...
* [v3/windows] Fix dpi scaling on start up
* add change log
2023-12-19 19:31:38 +11:00
Lea Anthony
814e1ec059
[windows] initial wails dev support
2023-11-27 20:38:42 +11:00
Lea Anthony
1ce83913bd
Fix permissions build issues
2023-10-25 20:06:53 +11:00
Lea Anthony
1650e26da7
[windows] dnd fixes
2023-10-25 20:04:00 +11:00
Travis McLane
bc01fd8ea3
[v3 windows] hide go-webview2 from non-windows
2023-10-24 15:40:58 -05:00
Lea Anthony
3422c40e19
[windows] ignore mouse events
2023-10-23 20:58:55 +11:00
Lea Anthony
e661052c89
[windows] support permissions
2023-10-23 20:50:25 +11:00
Lea Anthony
ff08a5ca2b
[windows] html fullscreen support
2023-10-23 20:49:21 +11:00
Lea Anthony
8463c01123
[windows] Drag-n-drop support
2023-10-21 11:21:10 +11:00
Lea Anthony
131a6da554
Fix resize on windows
2023-10-16 19:29:42 +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
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
f07e4093be
[windows] Don't show menu for frameless window
2023-10-09 17:35:28 +11:00
Lea Anthony
a49350f300
[windows] Remove unused code.
2023-10-05 20:12:28 +11:00
Lea Anthony
5958d9c646
[windows] Serve assets async
2023-10-05 19:18:32 +11:00
Lea Anthony
7cdab16ba9
Add API docs. Do small refactors
2023-09-24 08:57:40 +10:00
Lea Anthony
fe48b9d03d
[windows] Add systray.OpenMenu
2023-09-21 19:14:44 +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
Lea Anthony
bb3a0cc54f
Add WebviewWindow.IsFocused()
2023-09-13 08:57:20 +10:00
Lea Anthony
08ec2beb7c
Move menu to Windows window options.
2023-09-05 22:27:47 +10:00
Lea Anthony
8ca550cc9e
[v3] Add swipe gesture support
2023-08-30 20:57:12 +10:00
Lea Anthony
77ca8fe9e6
Move webview2 options to application. Improve logging.
2023-08-18 11:06:25 +10:00
Lea Anthony
763c7708f4
Fix HMR. Better logging.
2023-08-15 20:19:02 +10:00
Lea Anthony
e6c691a376
Support external asset server
2023-08-14 20:49:09 +10:00
Lea Anthony
db836b7a48
Move assetserver to internal
2023-08-14 08:31:55 +10:00
Lea Anthony
ec0731d5d8
Use slog.Logged in assethandler_external.go. Refactor runtime handler.
2023-08-14 08:28:31 +10:00
Lea Anthony
429bb2bf17
Refactor application creation. Remove internal logger package.
2023-08-13 15:28:30 +10:00
Lea Anthony
15f602f867
Move v2 assetserver to v3
2023-08-12 14:16:53 +10:00
Lea Anthony
dc865404a9
[v3] Initial hooks implementation
2023-07-12 20:31:13 +10:00
Lea Anthony
ba7ab2e607
[v3 windows] Fix translucency. Update example.
2023-07-11 23:04:22 +10:00
Lea Anthony
d6cfe4414d
[v3 Windows] Add WebviewWindow.Flash()
2023-07-11 20:10:18 +10:00
Lea Anthony
7db6604227
[v3 windows] Add HideOnTaskbar
flag to WebviewWindow
2023-07-08 11:27:36 +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
10144adf61
[v3 windows] Fix window lose focus events.
2023-07-04 20:43:21 +10:00
Lea Anthony
3efab5ba23
[v3 windows] Prevent window close events when the window was just opened
2023-07-04 20:01:06 +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
b62ce4440e
[v3 windows] Setup chromium sooner
2023-07-01 09:23:19 +10:00
Lea Anthony
3c81fb06e8
[v3 windows] Position window above systray
2023-06-30 21:17:50 +10:00
Lea Anthony
3fcac435b2
[v3] Support window events in JS. Fix ExecJS blocking issues.
2023-06-26 22:10:31 +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
9816960995
[v3] Support "--default-contextmenu" style. Fix URL handling in Windows.
2023-06-20 19:44:01 +10:00
Lea Anthony
3355d5f0af
[v3] Add EnableDevTools
option
2023-06-20 08:49:25 +10:00
Lea Anthony
68573cdc48
[v3 windows] Focus webview on Show/Restore/Maximise/FullScreen
2023-06-19 07:35:11 +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
367ca745c3
[v3 windows] Fix frameless window drag. Add better resize for corners.
2023-06-15 21:06:14 +10:00
Lea Anthony
01e2e46e0d
[v3 windows] Support frameless drag. Add /wails/flags
endpoint.
2023-06-15 19:08:08 +10:00
Lea Anthony
c03078ca16
[v3] Add capabilities, move to app-region
css for drag, support native drag on Windows
2023-06-14 18:12:37 +10:00
Lea Anthony
49e62aebe3
[v3 windows] Support frameless drag
2023-06-13 17:44:07 +10:00
Lea Anthony
dc4daaebac
[v3 windows] Support title bar button events
2023-06-13 17:42:14 +10:00
stffabi
f855b30c9f
[v3 windows] Consolidate WM_SIZE/WM_SIZING message handling
2023-06-12 08:26:09 +02:00
stffabi
b614e2b100
[v3 windows] An initially hidden window should show chromium when it is getting unhidden
2023-06-12 05:41:55 +02:00
stffabi
eafbbab233
[v3 windows] Do not Hide/Show chromium on every load of the frontend
2023-06-12 05:12:49 +02:00
Lea Anthony
9387d18e88
[v3 windows] Change how chromium redraw works
2023-06-12 10:44:33 +10:00
Lea Anthony
2b2defb7c0
[v3 windows] Fix chromium redraw bug
2023-06-12 10:28:35 +10:00
Lea Anthony
81a5380f67
[v3 windows] Handle null result from callbacks. Call results should respond on main thread.
2023-06-09 20:34:11 +10:00
Lea Anthony
bb28bdf565
[v3 windows] Fix resize bug when using setSize
2023-06-05 20:33:45 +10:00
Lea Anthony
1a12890556
[v3 windows] Add Webview2NavigationCompleted event. Support CSS + JS injection
2023-06-05 08:58:53 +10:00
Lea Anthony
3433b8ce8f
[v3 windows] Support context menus
2023-06-04 14:05:19 +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
ba4ffe4ecc
[v3 windows] Support devtools on startup
2023-06-03 15:19:38 +10:00
Lea Anthony
6b926ec463
[v3 windows] Support setURL, execJS, reload, zoomIn/Out/Reset, get/setZoom, setHTML,
2023-06-03 15:03:26 +10:00
Lea Anthony
9b686b5417
[v3 windows] Support Application Menu, hiding menu items
2023-06-01 22:52:04 +10:00
Lea Anthony
82ec56bc7d
[v3 windows] Support GetScreens and GetPrimaryScreen
2023-06-01 22:52:03 +10:00
Lea Anthony
798e51d4d3
[v3 windows] Fix window ID processing
2023-06-01 22:52:02 +10:00
Lea Anthony
19be7f61ac
[v3 windows] Fix resizing. Add resize debouncing
2023-05-30 16:36:00 +08:00
Lea Anthony
7e2d2a29a1
[v3 windows] Initial webview2 working
2023-05-30 16:33:34 +08:00
Lea Anthony
671dc2aa3a
[v3 windows] Implement start x/y + parent window for dialogs
2023-05-30 16:33:34 +08:00
stffabi
ba150eccae
[v3 windows] Add close handling: HideOnClose, QuitOnLastWindowClosed and DisableQuitOnLastWindowClosed
2023-05-30 16:32:00 +08: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
Lea Anthony
58138ac09b
[v3 windows] Initial systray support
2023-05-30 16:31:55 +08:00
Lea Anthony
f8f466ba7e
[v3 windows] Support irregular shaped windows. Centered option.
2023-05-30 16:31:54 +08:00
Lea Anthony
cb28de47f8
[v3 windows] Support irregular shaped windows
2023-05-30 16:31:54 +08:00
Lea Anthony
b6940d95a2
[v3 windows] Add frameless resize
2023-05-30 16:31:53 +08:00
stffabi
75f0457375
[v3 windows] Add HiDPI awareness
2023-05-30 16:31:52 +08:00
stffabi
ffe31b6265
[v3 windows] Add frameless support
2023-05-30 16:31:52 +08:00
Lea Anthony
8963610722
[v3 windows] Implement getScreen
2023-05-30 16:31:52 +08:00
Lea Anthony
66bfcf0e36
[v3] Ensure impl calls from WebvieWindow are on the main thread. Support size.
2023-05-30 16:31:52 +08:00
Lea Anthony
4c04991d4d
[v3] Change WebviewWindow
options to be a value, not a pointer. Support Un/Fullscreen. Remove main thread switching. Use parent options instead of local variables.
2023-05-30 16:31:51 +08:00
Lea Anthony
d56bb59b72
[v3 Windows] Support application hide/show. Add WebviewWindow.IsVisible()
.
2023-05-30 16:31:50 +08:00
Lea Anthony
6e92a4f71e
[v3 Windows] Support setMin/MaxSize, setPosition
2023-05-30 16:31:50 +08:00
Lea Anthony
1f6217c0d8
[v3 Windows] Add Support for SetTitle, Center, Un/Minimise/Maximise, IsMin/Maximised, IsNormal, Show/Hide
2023-05-30 16:31:50 +08:00
Lea Anthony
17204bebd0
[v3 Breaking Change] Add NativeWindowHandle
method to WebviewWindow
.
2023-05-30 16:31:49 +08:00
Lea Anthony
728e2019d8
[v3 windows] Moved w32
from internal
to pkg
so it may be used by applications
2023-05-30 16:31:49 +08:00
Lea Anthony
f08ae2fc62
[v3] Update application.On
and window.On
to return functions that unregister the listener. WebviewWindow.onApplicationEvent
is a helper which will manage the unregistering for you on window destroy.
2023-05-30 16:31:48 +08:00
Lea Anthony
178ea9c8c5
[windows] Split out wndProc. Generate windows events, support per-window themes
2023-05-30 16:31:48 +08:00
Lea Anthony
7c63cee9e8
[windows] Support AlwaysOnTop, EnableResize at runtime. Added Solid/Transparent/Translucent options.
2023-05-30 16:31:47 +08:00
stffabi
4a60dfc373
[v3, windows] Add MainThread dispatching and fixes the blocking window
2023-05-30 16:31:47 +08:00
Lea Anthony
829a829cb4
[windows] WIP
2023-05-30 16:31:47 +08:00