Zámbó, Levente
e72e4aa179
add new programName option to linux options ( #2817 )
...
* add new programName option to linux options
* modify changelog
* free program name string
2023-08-10 07:48:09 +10:00
Ethan Reesor
22cfcbd5a1
Override error formatting ( #2717 )
2023-07-13 20:40:22 +10:00
Mohamed Gharib
4162f097f1
[v2, options] Add EnableDefaultContextMenu option ( #2733 )
...
* [v2, options] Add EnableDefaultContextMenu option
* Update changelog & docs
* go mod tidy (./v2)
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-06-20 06:31:47 +10:00
stffabi
3853d2d1bf
[v2, windows] Handle webview2 process crashes and add DisableWebViewRendererCodeIntegrity flag ( #2627 )
...
* Add flag to disable webview RendererCodeIntegrity checks
* Handle webview2 process crashes
2023-04-27 23:03:26 +02:00
stffabi
0bf41090b0
[v2, darwin] Add some missing default shortcuts ( #2586 )
...
* [v2, darwin] Add "Hide, Hide Others, Show All“ to appmenu
This also includes shortcuts support for those commands.
Arrange the menu items in the well known MacOS order.
* [v2, darwin] Add Window menu with well known shortcuts Minimize, Full-Screen and Zoom.
2023-04-20 12:38:32 +02:00
stffabi
d7a8406640
[options] Mergo doesn't play well with reference types ( #2452 )
...
Remove mergo and just use a simple hardcoded defaults approach.
2023-03-07 07:04:37 +01:00
stffabi
284e20a290
Add EnableFraudulentWebsiteDetection to options ( #2269 )
...
This allows to explicitly opt-in to scan services for fraudulent
content, such as malware or phishing attempts.
2023-01-06 00:06:26 +11:00
Zámbó, Levente
ef5f547d27
Support GPU acceleration settings on Windows & Linux ( #2266 )
...
* support GPU acceleration settings Window & Linux
* fix linux empty option crash
* fix change linux gpu policy switch case
* add PR to changelog
2023-01-02 09:38:53 +11:00
Lea Anthony
b84a2e5255
Windows tray menus ( #2181 )
...
* Add example
* Add windows systray
* Add gitkeep
* use windows.GUID
2022-12-06 20:55:56 +11:00
stffabi
5418b879c4
[linux] Add support for WebKit2GTK 2.36+ features ( #2151 )
2022-11-30 11:04:12 +01:00
stffabi
993f87af97
[assetserver] Add support for serving the index.html file when requesting a directory ( #2110 )
...
* [assets] Improve error message if no `index.html` could be found in the assets
* [assetoptions] Valide options that at least one property has been set
* [assetserver] Move defaultHTML handling for 404 from assethandler to assetserver
* [assetserver] Add support for serving the index.html file when requesting a directory
* [docs] Update changelog
2022-11-29 09:29:08 +01:00
stffabi
f6e46ac1c3
[debug] Introducing debug options for debug builds to allow opening the inspector on startup ( #2080 )
2022-11-12 19:51:54 +11:00
stffabi
638caf72f0
[assetserver] Introduce middleware and extract options ( #2016 )
...
* [assetserver] Add support for HTTP Middlewares
* [dev] Disable frontend DevServer if no Assets has been defined and inform user
* [dev] Consistent WebSocket behaviour in dev and prod mode for assets handler and middleware
In prod mode we can't support WebSockets so make sure the
assets handler and middleware never see WebSockets in dev mode.
* [templates] Migrate to new AssetServer option
* [docs] Add assetserver.Options to the reference
2022-10-29 23:15:15 +02:00
Pierre Joye
f4adff1cb3
#1057 expose ZoomFactor get/set and add the respective windows only options ( #1463 )
...
* #1057 expose ZoomFactor get/set and add the respective windows only options
* Remove debug log, use IsZoomControlEnabled as well
* use math.float to/from 64bits functions instead
* Add new windows options ZoomFactor and IsZoomControlEnabled doc
* Grammar
* Update options.mdx
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-10-14 08:46:14 +11:00
Zámbó, Levente
2690250378
Add window transparency for linux ( #1926 )
2022-10-01 15:44:38 +10:00
Lea Anthony
b2069c871d
Refactor app ( #1909 )
...
* Application refactor
* [windows] refactor out main loop. Create new application struct. Refactor assethandler/assetserver signatures.
* Refactor darwin app
* Refactor app for linux
* Update v2/internal/frontend/assetserver/assethandler.go
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
* Update v2/internal/frontend/assetserver/assethandler.go
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
* Update v2/internal/frontend/assetserver/assetserver.go
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
* Update v2/internal/frontend/assetserver/assetserver.go
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-09-29 18:43:35 +10:00
Lea Anthony
74133c9ae3
v2.0.0
2022-09-22 11:00:57 +10:00
Lea Anthony
d23108a49e
Make draggable CSS property customisable ( #1828 )
...
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-09-10 14:33:35 +10:00
Lea Anthony
f2568f1899
Experimental support for CSS Drag detection ( #1750 )
...
* Support CSS Drag
* Support CSS Drag as experimental option
2022-08-18 20:39:05 +10:00
Lea Anthony
7ea6f6d28e
Fix BackgroundColour documentation. Update changelog. Move contributors into website. Create changelog link.
2022-07-25 20:11:04 +10:00
Lea Anthony
f068c33dcf
Add support for production log levels ( #1555 )
2022-07-14 21:45:13 +10:00
Nan0
2065600096
Feature: set browser path ( #1448 )
...
* Added option to specify webview2 path
* Added `manual` webview strategy
* Update documentation
* Fixed build with manual tag
* Check for browser directory existence
* Added version check for manually specified webview, removed fallback for installed webview in manual strategy
* Update WebviewBrowserPath documentation
* Replaced deprecated StringToUTF16Ptr
* Return on error
* Removed manual strategy, return error in wv2installer for fixed runtime
* Removed manual strategy from CLI
2022-06-25 07:49:00 +10:00
Lea Anthony
381909696b
[Windows] Add Suspend/Resume callback support ( #1474 )
...
* Add Suspend/Resume callback support
* Fix comment
2022-06-22 06:37:18 +10:00
Lea Anthony
c477100374
Add BackgroundColour
and deprecate RGBA
( #1475 )
2022-06-21 19:47:05 +10:00
Lea Anthony
cb169611b1
Set Window Background colour if provided + debounce redraw option ( #1466 )
...
* Set Window Background colour if provided. Added debounce option for Webview2 redraw on resize
* [windows] Workaround resize flickering in frameless mode
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-06-20 17:47:13 +10:00
Lea Anthony
953bc09343
Merge pull request #1400 from wailsapp/feature/native-translucency
...
Initial support for new native translucency in Windows Preview
2022-05-18 18:52:45 +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
Lea Anthony
dce5fd442f
fix: i18n messages/bug + docs bug.
2022-04-05 21:41:49 +10:00
Lea Anthony
8e8b88ef48
Translations refactor
2022-04-03 17:22:37 +10:00
Lea Anthony
4a20655b29
Translations + Tidy Up
2022-04-03 17:18:36 +10:00
bearsh
d8bcf7ac70
v2: linux: add icon to linux specific app option and load it during w… ( #1272 )
...
* v2: linux: add icon to linux specific app option and load it during window creation
Signed-off-by: Martin Gysel <me@bearsh.org>
* doc: linux specific option: icon
2022-03-30 18:15:58 +11:00
Lea Anthony
48254b73e5
[Feature/1149] Dark mode ( #1281 )
...
* Add Windows version helper
* Initial theme support
* Support custom themes
* Update docs
* Honour HighContrast theme. Remove import "C". Refactor
* Small refactor
* Support inactive theme
* Update Docs
2022-03-27 22:57:45 +11:00
stffabi
a750d2d507
[v2, windows] Invert the frameless border flag and rename it ( #1157 )
...
This is a breaking change for all users of the flag.
2022-02-16 20:28:46 +11:00
stffabi
b1c2065dfb
[v2, windows] Add WebviewUserDataPath to windows options
2022-01-25 21:42:01 +01:00
stffabi
6fcd4b7bd4
[v2] Support fs.FS for assets
...
Reloading changed asset files in dev mode will only work
if an embed.FS has been provided for the assets.
2021-12-06 08:50:39 +01:00
ironpark
fda3323386
basic implement
2021-12-04 04:55:36 +09:00
stffabi
47d783291d
[windows] Support drawing a frame for frameless to support hiding the titlebar
2021-12-02 11:16:13 +01:00
Lea Anthony
b036b8c547
[linux] Support Window start state. fixed warnings.
2021-11-28 08:40:10 +11:00
Lea Anthony
39ca977b18
[linux] basic windowing pt2
2021-11-27 20:36:48 +11:00
Lea Anthony
a8fcd994c9
Merge branch '930_-_default_window_state'
2021-11-16 18:23:43 +11:00
Lea Anthony
3a93c08813
[linux] basic windowing
2021-11-14 22:40:37 +11:00
Lea Anthony
56ef4ddd47
[v2] Add WindowStartState. Fix startHidden option. Only windows supported atm
2021-11-10 18:11:54 +11:00
Lea Anthony
aab67b416f
[mac] add default menu
2021-11-03 19:22:38 +11:00
Lea Anthony
489b9b358b
[mac] menu support
2021-10-30 09:51:46 +11:00
Lea Anthony
3edbda313e
[mac] add SetRGBA and basic hooks for asset serving
2021-10-17 21:50:15 +11:00
Lea Anthony
a1323ce5e9
[mac] experimental
2021-10-13 22:01:35 +11:00
Lea Anthony
e0e4c0ae11
[v2] Add "AlwaysOnTop" option
2021-10-13 08:02:35 +11:00
Lea Anthony
be87d73da8
[v2] go fmt + windowIsTranslucent
2021-09-15 20:30:14 +10:00
Lea Anthony
3c0da9fd15
[windows] support runtime.WindowSetRGBA
2021-09-12 16:32:43 +10:00
Lea Anthony
dacea399ab
[v2] Refactor assets type
2021-09-07 07:06:58 +10:00