Lea Anthony
c477100374
Add BackgroundColour
and deprecate RGBA
( #1475 )
2022-06-21 19:47:05 +10:00
stffabi
22d3f93b52
[v2, darwin] Initialize native variables on stack to prevent segfault ( #1362 )
2022-04-30 06:11:19 +10:00
stffabi
524411964f
[v2] WindowReloadApp should use the startURL of the frontend to support reloading when a frontend dev server is used ( #1347 )
2022-04-23 07:09:53 +10:00
Lea Anthony
f6257d3d31
Add Environment
and WindowReloadApp
calls to runtime. Updated default templates.
2022-04-20 20:28:41 +10:00
stffabi
6d09a45a30
[v2] Add support for AssetsHandler ( #1325 )
...
* [website] Fix devserver default value doc
* [v2] Add support for AssetsHandler
AssetsHandler is a http.Handler delegate, which gets called
as a fallback for all Non-GET requests and for GET requests
for which the Assets didn’t find the file.
Known Limitations on Linux:
- All requests are GET requests
- No request headers
- No request body
- No response status code, only StatusOK will be returned
- No response headers
Known Limitations on Windows:
- Request body is leaking memory. Seems to be a bug in
WebView2, investigation angoing.
Most of these limitations on Linux will be fixed in the future with
adding support for Webkit2Gtk 2.36.0+.
* [v2, linux] Add response streaming support
The complete response won’t be held anymore in memory and will
be streamed to WebKit2.
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-04-12 20:18:27 +10:00
Sebastian Bauer
7dd3f96915
[Feature/1149] Dark mode: functions for manually switching theme ( #1291 )
...
* [Feature/1149] Dark mode: functions for manually switching theme
2022-04-01 08:21:37 +11:00
stffabi
65fb42d9e7
[v2] Add support for external frontend dev servers ( #1290 )
...
* [v2] Consolidate AssetServers
* [v2] Support starturl for webview on linux and darwin
* [v2] Add support for frontend DevServer
* [v2] Activate frontend DevServer in svelte template
* [website] Add bleeding edge guide for PRs
* DoNotMerge: Bump Version for testing
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-03-31 00:40:44 +11:00
Lea Anthony
55f2a24a94
[Mac] Close window immediately on quit
2022-03-26 19:48:34 +11:00
Lea Anthony
97b24a51a1
Show extension by default ( #1228 )
2022-03-14 22:05:33 +11:00
Lea Anthony
3d12935e2e
Fix memory leak in ExecJS for Mac ( #1230 )
2022-03-11 23:43:51 +11:00
Lea Anthony
1048782eb4
Initial commit ( #1241 )
2022-03-10 21:20:41 +11:00
stffabi
c63b1f1981
[v2] Consolidate processRequest, improve logging and error handling ( #1158 )
2022-02-28 19:14:03 +11:00
Lea Anthony
93491eb2eb
Feature/align api ( #1161 )
...
* Fix WindowSetRGBA API
* Change WindowUnFullscreen -> WindowUnfullscreen for consistency
RGBA bugfix
2022-02-19 20:29:55 +11:00
Lea Anthony
f059c35d9e
Feature: WindowToggleMaximise ( #1159 )
...
* [windows] Add WindowToggleMaximise
* Add mac support
* Update docs
* [linux] Toggle Maximise
2022-02-18 20:28:16 +11:00
Lea Anthony
0971857e7e
Fix position runtime ( #1123 )
...
* [linux] Move SetTitle and startDrag to main thread
* [linux] Move SetPosition, Center, Fullscreen and UnFullscreen to main thread
* Fix runtime Window Get/Set Position signatures
* Fix vanilla template keyboard handling
2022-02-03 21:42:14 +11:00
Lea Anthony
e2f3a11a33
[mac] Fix for cancelling Dialogs. Fixes #1047
2021-12-28 20:04:30 +11:00
Lea Anthony
448cf731bb
[mac] Fix for Save Dialog
2021-12-27 20:09:03 +11:00
Lea Anthony
c0f283335a
[mac] Fix for submenu titles. Fixes #1026 .
2021-12-24 08:00:37 +11:00
Lea Anthony
30e12d681c
[mac] Fix for save dialog
2021-12-15 19:16:43 +11:00
Lea Anthony
008a5c70b9
[mac] Fix linking issue. Removed warnings.
2021-12-11 20:06:42 +11:00
Lea\Anthony
62adcab722
[mac] try dynamically linking UTIFramework during cgo build
2021-12-11 19:36:17 +11:00
Lea Anthony
e12b630dfb
[mac] Attempt to fix 10.14 compilation issue
2021-12-11 07:29:47 +11:00
Lea Anthony
efdcfe9985
[v2] Remove AllowFiles
& AllowDirectories
2021-12-09 08:16:45 +11:00
ironpark
92b63d9fad
window delegate modify for onBeforeClose hook
2021-12-04 07:52:34 +09:00
ironpark
fda3323386
basic implement
2021-12-04 04:55:36 +09:00
stffabi
d827aafe89
[v2] Improve processRequest: Handle errors and behave more like a webserver
...
This also fixes that requests remain in "pending" state on
darwin if e.g. a file is not found or an error occurs during
loading of the file.
2021-12-03 16:41:51 +01:00
Lea Anthony
97be694d2a
Merge pull request #996 from stffabi/feature/improved-translate-uri
...
[v2] Improve translation of URI to file to be loaded
2021-12-02 05:38:04 -08:00
stffabi
8107a8bd1e
[v2] Improve translation of URI to file to be loaded
2021-12-02 11:53:32 +01:00
stffabi
0295f8dee2
[v2] Fix memory leak in processRequest for windows and darwin
2021-12-02 11:04:24 +01:00
stffabi
155f1fde49
[v2] Do not block during processing of messages
...
On windows blocking here results in a blocked main thread
and a blocked webview.
2021-12-01 13:24:19 +01:00
stffabi
21ce7709ab
[macOS] Fix background color
2021-11-23 11:18:00 +01:00
Lea Anthony
c9c6edeb84
[mac] Fix fullscreen / start fullscreen
2021-11-23 20:06:56 +11:00
Lea Anthony
9ad2665ad8
[mac] Conditionally import UTType header
2021-11-17 21:13:25 +11:00
Lea Anthony
28894868e3
[mac] Fix for file filters MacOS 11+. Some memory leak fixes.
2021-11-17 21:03:40 +11:00
Lea Anthony
a8fcd994c9
Merge branch '930_-_default_window_state'
2021-11-16 18:23:43 +11:00
Lea Anthony
c678ab7d01
[mac] Potential file dialog fix. Fix for starthidden. Partial WindowStartState
2021-11-16 18:20:41 +11:00
Lea Anthony
9073caf287
Add build flag
2021-11-13 16:31:57 -08:00
Lea Anthony
1bed8234c9
[v2] Fix OnShutdown for production build
2021-11-11 06:05:50 +11:00
Lea Anthony
c90bfc310a
[mac] Fix lifecycle hooks
2021-11-06 10:40:02 +11:00
Lea Anthony
3c87d13b21
[mac] Fix fullscreen
2021-11-03 19:23:23 +11:00
Lea Anthony
bd7b436631
[mac] Add fallback for app name
2021-11-02 22:05:42 +11:00
Lea Anthony
c136df48b9
[mac] Fix App Name in app menu
2021-11-02 22:04:06 +11:00
Lea Anthony
43cc55cb0a
[mac] Small tweaks
2021-11-02 20:06:59 +11:00
Lea Anthony
cf3a868e3a
[mac] Support MenuUpdateApplicationMenu
2021-10-31 15:09:50 +11:00
Lea Anthony
7ef445f526
[mac] Improve string/memory handling, dialog icon -> []byte
2021-10-31 08:50:14 +11:00
Lea Anthony
2dc126bf19
[mac] Fix ExecJS
2021-10-30 19:28:25 +11:00
Lea Anthony
86cbcdc089
[mac] Move ops to main thread
2021-10-30 17:19:58 +11:00
Lea Anthony
1dd957f461
[mac] Fix SetPosition
2021-10-30 16:31:06 +11:00
Lea Anthony
4be4946756
[mac] Fix SetMaxSize
2021-10-30 11:07:07 +11:00
Lea Anthony
a88b3553ba
[mac] Support min/max
2021-10-30 10:34:55 +11:00