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
stffabi
723dd976b4
[v3, assetServer] Use middlewares for runtime, caps and falgs instead of having the implementation in the assetserver
2024-02-16 07:38:28 +01:00
stffabi
65251cdafa
[v3, assetServer] Remove fs.FS from options and always use a http.Handler
2024-02-16 07:38:27 +01:00
Lea Anthony
471d626043
Add control to disable window buttons on Mac
...
Three new options have been introduced in the application options for MacOS to disable the minimize, maximize, and close buttons on the window. Corresponding functionality has been added in the webview window for darwin to handle these new options. These changes have been showcased in the window example main.go file.
2024-02-08 08:31:58 +11:00
Lea Anthony
0b82968c0f
Add option to disable min/max windows buttons
...
This commit introduces the functionality to disable the minimise and maximise buttons on windows. These options have been added to the `application.WebviewWindowOptions` and integrated in the Windows application logic. Effectively, developers can now control the availability of these buttons in their windows applications.
2024-02-07 10:06:07 +11:00
Lea Anthony
6e2bbe31ac
[windows] fix frameless resize
2024-02-01 06:47:49 +11:00
Lea Anthony
5670c1e655
Update compiled runtime
2024-01-31 21:39:46 +11:00
Lea Anthony
5115b294ee
Fixed runtime. cp tool.
2024-01-29 21:29:16 +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
b249f0d0ce
Bring linux up to date with dev changes
2024-01-21 21:24:30 +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
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
Thomas Sénéchal
23c1a7d1d8
[v3/Windows] Fix failing Windows build due to undefined options ( #3208 )
...
* Fix failing Windows build due to undefined options
* Update changelog
2024-01-18 05:33:51 +11:00
Thomas Sénéchal
44bbce125b
[V3/macos] Fix systray click handling when no attached window ( #3207 )
...
* Fix systray click handling
* Open Menu if no window is attached in defaultClickHandler()
* Remove systemTraySetMenu function
* Fix a crash in hide-window example
* Update changelog
2024-01-17 22:36:22 +11:00
Lea Anthony
dff47263d5
Set default extension for save dialog file filter
...
The code update sets the default extension to the first pattern in the save dialog file filter when options.Filters is populated. This improvement applies to Windows platform interface function for 'Save File Dialog' and provides a more intuitive user experience.
2024-01-17 22:35:58 +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
a6757c352f
Add shutdown tasks functionality to application
...
A new method OnShutdown was introduced to allow adding tasks to be run when the application shuts down. The shutdown tasks are run on the main thread and in the order they were added, with the application option `OnShutdown` being run first. This allows more controlled and managed shutdown of the application.
2024-01-14 08:17:17 +11:00
ALMAS
3cd26a2220
[v3] Improve OnShutdown ( #3190 )
...
* [v3] Improve OnShutdown
* add change log
2024-01-10 23:28:15 +11:00
Lea Anthony
6c3bd124ce
Added option to disable AssetServer logging.
...
An option to disable AssetServer logging has been introduced in the application options. This will suppress every request log from the AssetServer if set to true. This adjustment is useful for preventing log saturation in certain scenarios or environments.
2024-01-09 22:15:42 +11:00
Lea Anthony
68b12d4fff
Refactored application shutdown process to streamline app termination.
...
The application shutdown process has been significantly reworked to be more efficient and robust. The refactored code removes the event listener for the 'ApplicationTerminate' event. Instead, an in-process flag is added to the 'Quit' method to prevent recursive calls. Additionally, an optional 'OnShutdown' function variable is introduced to allow custom cleanup operations upon app termination.
2024-01-09 18:19:09 +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
68e779d64e
[darwin] add support for quitting app
2024-01-08 21:22:33 +11:00
Lea Anthony
34f7f24e7e
Support Vite 5 templates + @wailsio/runtime
module
2024-01-06 16:38:51 +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
Lea Anthony
c531c714d4
Update vanilla+js template and dependencies
...
The frontend interaction has been significantly updated, including improvements to the Greet function and the addition of an ongoing time display. Additionally, dependencies in package.json have been updated to their latest versions. Also, redundant print statement was removed from messageprocessor_call.go and changes were made to layout structure and styles in the main.go.tmpl and index.html files.
2023-12-30 21:11:38 +11:00
Lea Anthony
5b51e0fad3
@wailsio/runtime alpha.9 - Fix call responses.
2023-12-30 15:49:23 +11:00
Lea Anthony
9f567fe2bc
Application: increase message buffer sizes, process all messages in goroutine, Add IsDebug
to environment info.
2023-12-29 12:48:26 +11:00
Lea Anthony
b08126d745
Radical JS runtime overhaul. New @wailsio/runtime package
2023-12-28 19:18:26 +11:00
ALMAS
e0b8da86ed
[v3] export SetIcon
method ( #3147 )
...
* export `SetIcon` method
* add change log
2023-12-19 23:43:28 +11: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
2b3c96ab3d
Fix hex keys5 ( #3140 )
...
* [v3 darwin] change hex values for arrow keys pulled from "Key Codes" app
* Update changelog
---------
Co-authored-by: Josh <josh@nerdy.co.nz>
2023-12-18 08:54:55 +11:00
Lea Anthony
8242834fbd
[windows] improvements to dev
2023-11-27 21:24:58 +11:00
Lea Anthony
814e1ec059
[windows] initial wails dev support
2023-11-27 20:38:42 +11:00
Lea Anthony
1142e81348
[darwin] fix CATransaction errors. Update docs.
2023-11-12 17:06:11 +11:00
Lea Anthony
0b48c3456b
[linux] Add webkit version detection + capabilities
2023-11-12 08:21:31 +11:00
Lea Anthony
1f16655769
[linux] Allow devtools by default
2023-11-11 19:05:03 +11:00
Travis McLane
53ea6511fc
[v3 linux] correct bug in getScreenByIndex
2023-11-09 21:11:35 -06:00
Travis McLane
27c4c5e6f6
[v3 linux] bail early if bad dbus message
...
Need at least two elements to decide what theme it is and if it is
a theme message at all.
Addresses #3040
2023-11-08 22:41:35 -06:00
Travis McLane
6f197f67f1
[linux] remove deprecated version of webkit callback handling
2023-11-08 22:31:05 -06:00
Travis McLane
385b1dbfd4
[linux] implement 'script-message-received' handling
...
- use unsafe.Pointers for 'signal_connect'
- add handler for 'script-message-received::external'
need to update this to handle older versions of webkit2gtk better
currently removed the ifdef guards (since they don't work in Go code
directly) - need to reimplement using build tags if required.
2023-11-06 23:29:03 -06:00
Travis McLane
0a4c596ecb
[v3 darwin] typecast as ApplicationEventType
2023-11-06 12:20:10 -06:00
Travis McLane
d2e0e0ed81
[v3 windows] avoid casting ApplicationEvent as int
2023-11-06 12:14:18 -06:00
Travis McLane
f787cf4bc2
[v3 linux] show dev tools if OpenInspectorAtStartup=true
2023-11-06 12:04:20 -06:00
Travis McLane
ca21a3b79d
[v3 linux] initial pass at event generation
2023-11-06 10:49:14 -06:00
Travis McLane
a773da2651
[v3 linux] use dbus for monitoring theme changes
2023-11-06 10:49:14 -06:00
Travis McLane
9f6cd35155
[v3 linux] stop key-press event propagation
2023-11-06 10:49:14 -06:00
atterpac
f122db2e7b
Linux Keybinds
...
- Adds getKeyboardState into linux_cgo to parse keypress event and transfer it into
an accelerator for the handleKeyEvent using GDK keycodes
2023-11-06 10:49:11 -06:00
Travis McLane
0fc535f2f1
[v3 linux] contextMenus
2023-11-06 10:41:14 -06:00
Travis McLane
0cd64d1fbc
[v3 linux] noop: remove commented code
2023-11-06 10:41:14 -06:00
Travis McLane
46a0030387
[v3] noop: gofmt changes
2023-11-06 10:41:14 -06:00
Travis McLane
495da9b292
[v3 linux] implement logPlatformInfo
2023-11-06 10:41:14 -06:00
Travis McLane
8dbbdc4bf2
[v3 linux] sanitize appId more thoroughly
2023-11-06 10:41:14 -06:00
Travis McLane
144567410d
[v3 linux] disable noisy onKeyPressEvent handler
2023-10-31 17:22:36 -05:00
Travis McLane
c7c4cacc29
[v3 linux] auto-toggle devtools (if enabled)
2023-10-31 17:15:16 -05:00
Travis McLane
7e63355353
[v3 linux] correct type of window
2023-10-31 17:08:12 -05:00
Travis McLane
01652c7940
[v3 linux] update devtools behavior to match win/mac
2023-10-31 14:02:36 -05:00
Travis McLane
b379e3b0eb
Revert "Merge branch 'linux-keycodes' into v3-alpha"
...
This reverts commit a2fde7f2c3
, reversing
changes made to 985c5bf8e2
.
2023-10-31 11:09:11 -05:00
Michael Capretta
73384a562b
Add Linux Keycodes that match existing strings for keybinds
2023-10-30 10:27:21 -05:00
Lea Anthony
985c5bf8e2
[darwin] Support Ignore mouse events
...
[darwin] Support applicationSupportsSecureRestorableState
Update video example
2023-10-29 20:29:45 +11:00
Travis McLane
a81581129a
[v3 linux] menu bitmap update handling
2023-10-27 16:45:10 -05:00
Travis McLane
e95a91861a
[v3 linux] noop: cleanup
2023-10-27 16:45:10 -05:00
Travis McLane
fa5948f40e
use windowId to avoid miscompilation
2023-10-27 15:46:25 -05:00
Travis McLane
ad4c8aacfb
[v3 linux] keypress handling stubout
2023-10-27 14:41:22 -05:00
Travis McLane
afbc09f1e7
[v3 linux] menuItem.setBitmap support
2023-10-26 16:56:06 -05:00
Travis McLane
1a1e5b743a
[v3 linux] dbus menu icon support
2023-10-26 16:56:06 -05:00
Lea Anthony
24853a7e3b
Add events README.md
2023-10-25 20:17:41 +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
5aaee9
f8250fb0d8
darwin: add event ApplicationShouldHandleReopen ( #2991 )
...
* darwin: add ApplicationShouldHandleReopen
* docs: update changelog with mr id
* events: update id
* feat: always return true
* Merge v3-alpha and regenerate events
* darwin: allow pass nsdirectory to processApplicationEvent
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-10-22 21:12:12 +11:00
Lea Anthony
d1c3f8af7a
[darwin] Fix menu icon
2023-10-22 14:34:04 +11:00
Lea Anthony
36b4b3695b
Initial menu item bitmap support
2023-10-22 09:32:04 +11:00
Travis McLane
18746c7819
V3 alpha linux dbus ( #2996 )
...
* [v3 linux/systray] dbus generation
* [v3 linux] systemtray dbus implementation
* [v3] add 'id' for MenuSeparator
This is needed in order to have a unique value for all
menuItem(s) such that the Linux implementation doesn't have to
generate new identifiers.
Allowing the reuse keeps a 1-1 mapping in place without any extra effort.
* [v3 example/systray] add radio group to example
* [v3 linux] stub out ExportStatusNotifierItem callbacks
Can only seem to get the `SecondaryActivate` to fire when doing a
3-finger click! I was expecting a right-click interaction to trigger it.
2023-10-21 11:39:46 +11:00
Lea Anthony
8463c01123
[windows] Drag-n-drop support
2023-10-21 11:21:10 +11:00
Lea Anthony
8e0671306a
Mac examples + readme updated
2023-10-17 20:25:36 +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
5aaee9
a8641672cd
[v3] fix deadlock when quit ( #2982 )
...
* fix: dead lock when quit
* docs: update changelog
2023-10-14 20:34:00 +11:00
Lea Anthony
02713670c9
Custom icon shows app icon
2023-10-11 21:29:40 +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
Travis McLane
263e1b527a
[v3 linux] lower signal memory usage
...
- drop the gtkSignalHandlers map entirely (wasn't used)
- use 'uint' for mapping signal IDs to MenuItem
- store and retrieve the menuitem identifier to/from the menu item widget
2023-10-10 12:38:10 -05: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
83ed7fd2df
[windows] Fix production logger. Add alpha assets
2023-10-09 17:36:06 +11:00
Lea Anthony
f07e4093be
[windows] Don't show menu for frameless window
2023-10-09 17:35:28 +11:00
Lea Anthony
bf13afd895
[windows] Fix dialog icon
2023-10-09 17:34:56 +11:00
Lea Anthony
ebe91ba11d
[darwin] Disable listener caching. Run execJS
on main thread.
2023-10-07 20:08:22 +11:00
Lea Anthony
48aef46f57
[darwin] Quick event fix
2023-10-07 12:28:50 +11:00
Lea Anthony
c77c823c3c
Revert "[linux] Implement events"
...
This reverts commit 8ddd29d285
.
2023-10-07 12:21:49 +11:00
Travis McLane
a6163849c6
[v3 linux] match windows transparency logic
2023-10-06 14:38:38 -05:00
Travis McLane
130aab3598
[v3 linux] systray stubout
...
slim down the printouts and fix compilation
2023-10-05 17:25:45 -05:00
Travis McLane
78b85ce0cc
[v3 linux] systray not implemented
2023-10-05 14:04:13 -05:00
Travis McLane
dbcf65b2d6
Revert "Merge branch 'v3-alpha-linux-systray' into v3-alpha"
...
This reverts commit 92b26488da
, reversing
changes made to 1c48d567e1
.
2023-10-05 08:34:12 -05:00
Lea Anthony
ce6d587771
Fix multiple window weirdness. Update deps
2023-10-05 20:54:12 +11:00
Lea Anthony
a49350f300
[windows] Remove unused code.
2023-10-05 20:12:28 +11:00
Lea Anthony
9ac6359e56
Merge remote-tracking branch 'origin/v3-alpha' into v3-alpha
2023-10-05 19:19:26 +11:00
Lea Anthony
5958d9c646
[windows] Serve assets async
2023-10-05 19:18:32 +11:00
Lea Anthony
8ddd29d285
[linux] Implement events
2023-10-03 08:37:11 +11:00
Lea Anthony
dc8cbcf410
[darwin] Refactor events into mac specific files
2023-10-03 08:33:58 +11:00
Travis McLane
757a4383e6
[v3] send dialog results over channels
2023-10-02 11:07:12 -05:00
Travis McLane
7c98ee329a
[v3] move linux clipboard logic to linux_cgo
2023-10-02 11:07:12 -05:00
Lea Anthony
9d615463f4
[linux] support clipboard
2023-10-02 20:47:04 +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
Travis McLane
b757292211
[v3 darwin] use NativeWindowHandle
2023-09-29 12:13:51 -05:00
Travis McLane
af54419a0b
[v3] use concrete *WebviewWindow
2023-09-29 11:40:43 -05:00
Travis McLane
7b84b1c79c
[v3] Window fallout
2023-09-28 17:17:11 -05:00
Travis McLane
d047c22526
[v3] change window back to *WebviewWindow
2023-09-28 17:10:17 -05:00
Travis McLane
29859ceedf
[v3] correct return types for CurrentWindow
...
this shouldn't have been changed to Window
2023-09-28 16:46:19 -05:00
Travis McLane
8e2527ad35
[v3 linux] implement single_instance plugin
2023-09-28 15:53:28 -05:00
Travis McLane
efa67cb01c
[v3 linux] systray implementation
...
Linux requires a `gtk_menu_bar` for a gtk_window to display a menu.
For the `systray` a `gtk_menu` is needed instead.
This change creates the correct type of `impl` for the `Menu`
depending on how it is being used.
2023-09-28 14:50:38 -05:00
Travis McLane
71fc222059
[v3 linux] systray: cleanup + add basic menu
2023-09-28 13:31:09 -05:00
Travis McLane
fa6adad4ab
[v3 linux] wip: systray implementation
2023-09-28 13:31:09 -05:00
Travis McLane
1c48d567e1
[v3] NewWebviewWindow* return *WebviewWindow
2023-09-28 13:30:47 -05:00
Travis McLane
02d76835c9
[v3 linux] noop: remove spurious print
2023-09-28 11:48:46 -05:00
Travis McLane
dfe03f1347
[v3] WailsEvent expose ToJSON
2023-09-28 11:39:44 -05:00
Travis McLane
c87489adf3
[v3] implement Window interface
2023-09-28 11:39:39 -05:00
Travis McLane
a428a730d5
[v3] define Window interface
...
Define an interface that all Window(s) need to define.
Currently copies the WebviewWindow public api
2023-09-28 11:37:48 -05:00
Travis McLane
7f7c642339
[v3 linux] systray.openMenu
2023-09-28 10:02:44 -05:00
Travis McLane
03b79e9a67
[v3 linux] noop: handleKeyEvent skeleton
2023-09-27 16:31:59 -05:00
Travis McLane
56b0fcebba
[v3 linux] use ifdef for APPLICATION_DEFAULT_FLAGS
2023-09-27 09:53:53 -05:00
Lea Anthony
fb820bcdad
Add some more API docs. Small refactors.
2023-09-24 17:23:24 +10:00
Lea Anthony
7cdab16ba9
Add API docs. Do small refactors
2023-09-24 08:57:40 +10:00
Lea Anthony
05262134ca
[darwin] Add systray.OpenMenu
2023-09-21 19:24:30 +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
ALMAS
37b99b9cb8
Update webview_window.go ( #2912 )
2023-09-16 07:20:49 +10:00
Lea Anthony
86354e9fc0
Support IsDarkMode in application event context. Fix bug with event mapping.
2023-09-15 20:10:09 +10:00
Lea Anthony
b49f135e31
Add context to application/common events
2023-09-15 17:12:35 +10:00
Travis McLane
fff266f50d
[v3 linux] remove unused dialog callbacks
...
If it turns out these are needed in the future
we can add them back in then.
2023-09-13 13:12:22 -05:00
Travis McLane
7cfea7c22c
[v3 linux] file/directory dialogs
2023-09-13 13:12:22 -05:00
Travis McLane
6141e5a8ce
[linux v3] purego: updates
...
- file/directory chooser dialog logic
- add name + css so that menu isn't transparent
2023-09-13 13:12:22 -05:00
Lea Anthony
ed58949d24
try logging in goroutine
2023-09-13 16:47:14 +10:00
Lea Anthony
8d3324465e
Revert flags change
2023-09-13 16:11:23 +10:00
Lea Anthony
ea3509d2e7
Add LogLevel
application option. Update log plugin to have log levels.
2023-09-13 09:44:37 +10:00
Lea Anthony
bb3a0cc54f
Add WebviewWindow.IsFocused()
2023-09-13 08:57:20 +10:00
Travis McLane
a6cfdbb403
[v3 linux] const -> var
2023-09-11 17:26:59 -05:00
Travis McLane
2f7c6834d0
[v3 linux] use invokeSync
2023-09-11 17:12:57 -05:00
Lea Anthony
965f939967
Fix parser/generator tests
2023-09-08 12:03:55 +10:00
Lea Anthony
d390cac8db
Fix EnableFraudulentWebsiteWarnings for mac
2023-09-07 21:33:11 +10:00
Lea Anthony
08ec2beb7c
Move menu to Windows window options.
2023-09-05 22:27:47 +10:00
Lea Anthony
5833f0f109
More docs.
2023-09-05 18:26:10 +10:00
ALMAS
708aef53e4
[v3] completing missing build tags ( #2884 )
...
* Update image.go
* Update popupmenu.go
2023-09-04 22:43:28 +10:00
Lea Anthony
8eb62fb483
Update bindings example
2023-09-04 21:01:00 +10:00
Lea Anthony
21e47dcccf
Fix version in debug build
2023-09-04 19:51:48 +10:00
Travis McLane
54fcacfed1
[v3 linux] correct transparency setting
2023-09-01 15:57:13 -05:00
Lea Anthony
69ac5caa4b
Fix production build
2023-09-01 22:06:43 +10:00
Lea Anthony
8ca550cc9e
[v3] Add swipe gesture support
2023-08-30 20:57:12 +10:00
Lea Anthony
d44c8eba1c
[v3] Use system logger instead of println
2023-08-28 20:30:40 +10:00
Lea Anthony
6edd667bdf
[v3] Fix application runtime mappings
2023-08-28 20:29:25 +10:00
Vilsol
499ff50903
fix: use string formatting in gtk_message_dialog_new ( #2865 )
2023-08-28 19:34:24 +10:00
Lea Anthony
e5571defb7
[v3] Support bound methodID aliases. Support []any
for bindings generation. Use CallByID
in bindings.
2023-08-27 20:39:35 +10:00
Lea Anthony
21790dc3ee
[v3] Add CallByID
method to runtime.
2023-08-27 16:59:18 +10:00
Lea Anthony
cdf48e0589
[v3] Fix bindings
2023-08-27 15:54:01 +10:00
Lea Anthony
93335b3843
[v3] Support ANSI label on Mac. Update example.
2023-08-25 06:53:08 +10:00
Travis McLane
bd9f7deb98
[v3 linux] correct minimum zoom
2023-08-23 14:10:22 -05:00
Travis McLane
2171192934
[v3 linux] noop: remove println
2023-08-23 14:09:44 -05:00
Lea Anthony
3352ebef6e
[v3] Tidy up logging
2023-08-19 17:15:15 +10:00
Lea Anthony
2a51ddadfc
[v3] Tidy up plugin init
2023-08-19 17:09:38 +10:00
Lea Anthony
0745aea4d6
[v3] Move to integer call ids for bound methods.
2023-08-19 14:25:36 +10:00
Travis McLane
4804b34208
[v3 linux] api changes ( #2830 )
2023-08-19 06:12:34 +10:00
Lea Anthony
841289f1d1
[v3 windows] Support isDarkMode
. Add common application event mapping
2023-08-18 19:50:57 +10:00
Lea Anthony
c367ef461e
[v3 windows] Support isDarkMode
2023-08-18 19:45:59 +10:00
Lea Anthony
ffed41553a
[v3 mac] Add IsDarkMode
to application and JS runtime. Add Common.ThemeChanged
event
2023-08-18 17:36:14 +10:00
Lea Anthony
77ca8fe9e6
Move webview2 options to application. Improve logging.
2023-08-18 11:06:25 +10:00
Lea Anthony
8bde3d7522
[v3 mac] Improved operating system detection
2023-08-18 10:34:32 +10:00
Lea Anthony
946a4c56a0
[v3 mac] Better logging
2023-08-18 09:58:43 +10:00
Lea Anthony
763c7708f4
Fix HMR. Better logging.
2023-08-15 20:19:02 +10:00
Lea Anthony
5f2c1f4534
Remove optional prod options - use build tags instead
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
cc5c7d1d29
Log git hash if using replaced module
2023-08-14 08:28:25 +10:00
Lea Anthony
e79c1b7ea3
Merge remote-tracking branch 'origin/v3-alpha' into v3-alpha
2023-08-13 20:43:07 +10:00
Lea Anthony
6cbead5bfe
Improved logging++
2023-08-13 16:52:39 +10:00
Lea Anthony
429bb2bf17
Refactor application creation. Remove internal logger package.
2023-08-13 15:28:30 +10:00
Lea Anthony
ee29faecbf
Log if native Go webview loader is used
2023-08-12 16:36:08 +10:00
Lea Anthony
d1d0105276
Remove jsonBindings option. Only add ipc in debug mode.
2023-08-12 14:57:01 +10:00
Lea Anthony
15f602f867
Move v2 assetserver to v3
2023-08-12 14:16:53 +10:00
Lea Anthony
13be4a333f
Move to slog logger for application and log plugin
2023-08-10 22:04:13 +10:00
Lea Anthony
f0f5011484
Remove log from runtime (there's a plugin for that)
2023-08-10 21:29:42 +10:00
Lea Anthony
5671f3527b
Add ProductionOverrides
option so any option can be overridden in production builds
2023-08-10 20:42:25 +10:00
Lea Anthony
ecf970d6fe
[v3 mac] ANSI systray label [WIP]
2023-08-05 14:04:49 +10:00
stffabi
a6e279f0d3
[v3 panicHandler] Let the default go panic handler handle the panic if there's no panicHandler set in options
2023-07-15 23:57:19 +02:00
stffabi
842bc3733e
[v3 windows] Fix missing panic stacktraces during message loop
2023-07-15 23:56:26 +02:00
Lea Anthony
5e76a5e76a
[v3 mac] Fix event callback signatures
2023-07-12 21:29:01 +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
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
e7e5597c95
[v3 mac] Fix right click. Slight refactor.
2023-07-10 20:44:30 +10:00
Lea Anthony
7f0479d8b4
[v3 mac] Fix right click menu when window attached.
2023-07-10 20:21:19 +10:00
Lea Anthony
f3974deb88
[v3] Add Get
for application instance
2023-07-08 22:51:33 +10:00
Lea Anthony
1945616328
[v3 windows] Fix WindowClose defaults
2023-07-08 20:28:19 +10:00
Lea Anthony
7db6604227
[v3 windows] Add HideOnTaskbar
flag to WebviewWindow
2023-07-08 11:27:36 +10:00
Lea Anthony
12ce6c5ac3
[v3] Add systray.AttachWindow
2023-07-06 20:43:08 +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
16ce9e562f
[v3 mac] Window alignment to systray
2023-07-03 20:15:45 +10:00
Lea Anthony
90e66a7ad4
[v3] Add PanicHandler application option.
2023-07-03 19:52:50 +10:00
Lea Anthony
6b59216b32
[v3] Better panic support for methods run on mainthread
2023-07-01 21:56:21 +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
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
Lea Anthony
5737b3cc7b
[v3 mac] Fix merge issues
2023-06-25 10:13:20 +10:00
Lea Anthony
b898b79aaf
[v3 windows] Initial support for start_on_login plugin for windows
2023-06-24 21:12:24 +10:00
Lea Anthony
3827ca2d78
[v3] Move dialogs out of application
2023-06-24 13:57:51 +10:00
Lea Anthony
4de5e1b9f1
[v3] Add WindowUnFocus event
2023-06-24 13:23:50 +10:00
Travis McLane
1a7d105917
[v3 linux] GetAbsolutePosition
2023-06-23 21:50:51 -05:00
Travis McLane
de5cff799e
[v3 linux] setEnabled
2023-06-23 21:50:51 -05:00
Travis McLane
67cada78f6
[v3 linux] purego: windowGetRelativePosition
2023-06-23 21:50:51 -05:00
Travis McLane
5a40f25d03
[v3 linux] webview setAbsolutePosition
2023-06-23 21:50:51 -05:00
Travis McLane
1a09a8a4c8
[v3 linux/cgo] open/save file dialog stub
2023-06-23 21:50:51 -05:00
Travis McLane
daa0cf83d9
[v3 linux] noop: remove fmt.Println
2023-06-23 21:50:51 -05:00
Travis McLane
e92858f64d
[v3 linux/purego] initial file/directory dialogs impl
2023-06-23 21:50:51 -05:00
Travis McLane
d52c26e82f
[v3 linux] implement missing functions
2023-06-23 21:50:51 -05:00
Travis McLane
83900b03d4
[v3 linux] purego cleanup + dialog images
2023-06-23 21:50:51 -05:00
Travis McLane
c123430f22
[v3 linux] dialog fixes
2023-06-23 21:50:51 -05:00
Travis McLane
33e20cbc77
[v3 linux] allow menu setting on Linux
2023-06-23 21:50:51 -05:00
Travis McLane
e942312c4c
[v3 menuitem] bug: avoid setting if nil
2023-06-23 21:50:51 -05:00
Travis McLane
de2e78b507
[v3 linux] purego implementation
2023-06-23 21:50:51 -05:00
Travis McLane
bef454f950
[v3 linux] initial linux implementation
2023-06-23 21:50:51 -05: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
2e313005e0
[v3] Add window attachment for open/save dialogs. Fix filter bug.
2023-06-23 20:33:35 +10:00
Lea Anthony
722c3a653c
[v3] Allow message dialogs to be attached to windows. JS dialogs default attached. wml confirm dialog attached.
2023-06-23 20:19:29 +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
4d2b4b4ee7
[v3] Update dev guide. Remove implLock.
2023-06-21 19:37:39 +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
f278229179
Merge remote-tracking branch 'origin/v3-alpha' into v3-alpha
2023-06-20 08:12:42 +10:00
Lea Anthony
552390fb84
[v3 mac] Tidy up
2023-06-19 17:53:16 +10:00
Lea Anthony
68573cdc48
[v3 windows] Focus webview on Show/Restore/Maximise/FullScreen
2023-06-19 07:35:11 +10:00
Lea Anthony
cdf397aaa9
[v3 mac] Implement print()
2023-06-19 07:15:53 +10:00
Lea Anthony
ed27558011
[v3 windows] Add WebviewWindow.Print()
2023-06-18 17:13:07 +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