stffabi
d15e673a19
[windows] Some improvements to fullscreen ( #2299 )
2023-01-15 06:14:15 +01:00
stffabi
aaf039bcff
[windows] Disable frameless decorations during fullscreen ( #2288 )
...
Otherwise this leads to thin transparent lines on the window borders on older Windows versions.
2023-01-11 15:22:48 +01:00
stffabi
8e4606d104
[windows] Improve fullscreen mode for frameless windows ( #2279 )
...
* Improve fullscreen mode for frameless windows
* Set Window background color in addition to WebView2 background color
2023-01-09 12:15:43 +01:00
Lea Anthony
54ca6c7059
Refactor assetserver into pkg ( #2260 )
2023-01-08 11:25:21 +01:00
Zámbó, Levente
c3011813b0
linux separate window c and go file ( #2275 )
2023-01-07 16:20:11 +11: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
0a32c1124e
Add common text clipboard support ( #2228 )
2023-01-05 16:41:07 +11:00
stffabi
ebc653a584
[windows] Add support for AdditionalBrowserArgs to the legacy Webview2Loader ( #2267 )
2023-01-02 22:41:56 +01: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
d3b4105f75
Chore/refactor assetserver ( #2250 )
...
* Remove context from API calls
* Remove logger dependency
* Remove fs dependency
* Remove runtime dependency
* Update Windows/Linux calls to NewAssetServerMainPage
* Add missing imports
* fix runtime import clash
2022-12-31 10:36:07 +11:00
stffabi
a312c0ffcb
[darwin] Add support for Request/Response streaming ( #2219 )
2022-12-20 13:44:33 +01:00
stffabi
7d61971f86
[darwin] Add support for file input selection ( #2209 )
...
This will show a message on the console
"+[CATransaction synchronize] called within transaction"
but there's seem no way to mitigate that. Still everything
works as expected.
2022-12-15 11:18:13 +01:00
stffabi
006b0c65b4
[webview2loader] Add missing windows build constraint ( #2201 )
2022-12-13 13:51:01 +01:00
stffabi
4aab1e6b93
[webview2loader] Promote go loader from experimental to stable ( #2199 )
...
Default webview2loader is now the go loader
2022-12-13 23:27:50 +11:00
Lea Anthony
e57bfe002a
Fix right mouse button event ( #2190 )
2022-12-13 07:09:45 +11:00
Misite Bao
f70d9de366
fix: fix go test
errors ( #2169 )
...
* fix: fix go test errors
* Add flags to mac test
* Run on all branches
* Update PR workflow
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-12-06 06:45:06 +11:00
stffabi
5cc012d763
[darwin] Inspector tools should also be included into a debug build ( #2162 )
2022-12-01 09:20:18 +01:00
Lea Anthony
ea6aee91f1
Refactored build command ( #2123 )
...
* Refactored build command
* Update v2/cmd/wails/build.go
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
* WIP
* Refactor `wails doctor`
* Refactor `wails dev`
* Refactor `wails dev`
* Fix merge conflict
* Fix test
* Update build_and_test.yml
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-12-01 18:18:02 +11:00
stffabi
5418b879c4
[linux] Add support for WebKit2GTK 2.36+ features ( #2151 )
2022-11-30 11:04:12 +01:00
Lea Anthony
7f8952ebe5
Fix signal handler ( #2152 )
...
* Fix signal handler
* Update changelog
2022-11-30 20:37:55 +11:00
stffabi
72aef804ef
[windows] Prevent a thin white line at the bottom of a frameless window ( #2111 )
...
This seems to be only a problem on some Windows versions.
2022-11-22 20:37:45 +11:00
stffabi
0607777bec
[darwin, inspector] Fix build ( #2082 )
2022-11-12 21:02:53 +11: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
0a1c05df16
[windows] Fix frameless maximizing in multi monitor setup ( #2043 )
2022-11-03 19:14:00 +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
stffabi
0a20c8db96
[webview2loader] Add full featured go implementation ( #1974 )
...
* [webview2loader] Add full featured go implementation
The new go loader can be activated with the exp_gowebview2loader build tag.
* [build] Add information for using the new webvie2loader
2022-10-22 00:29:16 +11: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
Lea Anthony
eee6797907
Add WindowExecJS method ( #1927 )
...
* Add WindowExecJS
* [devserver] Embed the base frontend into the DevServer struct
* Update docs
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-10-05 08:44:23 +11:00
Zámbó, Levente
de49b1f125
fix gtk_window_begin_resize_drag's mouse button ( #1920 )
...
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-10-01 15:45:37 +10:00
Zámbó, Levente
2690250378
Add window transparency for linux ( #1926 )
2022-10-01 15:44:38 +10:00
Zámbó, Levente
13532e00a0
add missing resize for framless window on linux ( #1918 )
...
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-09-30 08:51:08 +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
fd32734382
Add support for default No button ( #1875 )
...
* Add support for default No button
* Fix tests
2022-09-23 10:50:54 +10:00
Lea Anthony
74133c9ae3
v2.0.0
2022-09-22 11:00:57 +10:00
Lea Anthony
b93cdcd942
Releasetest/release workflow ( #1869 )
...
* Test release workflow
* Update release.yml
* Update release.yml
* add linux deps
* Update release.yml
* Update release.yml
* Update release.yml
* Update release.yml
* Update release.yml
* Update release.yml
* Update release.yml
* Update release.yml
* Update release.yml
* Fix: Misc tests
* Fix: Misc tests + linux build tags
* Fix: Bindings tests + move templates to pkg. Add json schema for templates
* Fix: template tests
* Add tests to release workflow. Test for go 1.18 + go 1.19
Fix: ignore .m files for non darwin builds. Fix watcher test. Fix warning in clilogger.
* Fix release pipeline
* Matrix for tests
* Rename templates to make tests work
* Update template test
* Debug template test
* Debug template test
* Debug template test
* Fix gitignore
* Update release.yml
2022-09-18 08:55:21 +10:00
Lea Anthony
052b9222c1
Add garble support ( #1793 )
...
Co-authored-by: AlbinoDrought <sean@albinodrought.com>
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-09-13 10:05:37 +10:00
imgbot[bot]
eef99ee577
[ImgBot] Optimize images ( #1812 )
...
*Total -- 5,696.04kb -> 5,003.34kb (12.16%)
/v2/pkg/commands/build/internal/packager/icon32.png -- 7.95kb -> 2.95kb (62.83%)
/v2/internal/frontend/desktop/windows/winc/dock_topbottom.png -- 4.27kb -> 1.82kb (57.31%)
/assets/images/jetbrains-grayscale.png -- 102.85kb -> 52.29kb (49.16%)
/v2/internal/frontend/desktop/windows/winc/dock_topleft.png -- 3.47kb -> 1.88kb (45.81%)
/cmd/templates/svelte/frontend/public/favicon.png -- 3.05kb -> 1.91kb (37.45%)
/website/static/img/icon-windows-dark.svg -- 0.63kb -> 0.45kb (28.35%)
/v2/pkg/buildassets/build/appicon.png -- 174.74kb -> 129.52kb (25.88%)
/website/static/img/favicon.svg -- 0.99kb -> 0.76kb (23.37%)
/website/static/img/go_js.svg -- 4.49kb -> 3.45kb (23.14%)
/website/static/img/go_js_dark.svg -- 4.54kb -> 3.50kb (22.97%)
/cmd/templates/vuetify2-basic/frontend/src/assets/images/logo.png -- 300.95kb -> 234.35kb (22.13%)
/cmd/templates/vuetify-basic/frontend/src/assets/images/logo.png -- 300.95kb -> 234.35kb (22.13%)
/cmd/templates/create-react-app/frontend/src/logo.png -- 300.95kb -> 234.35kb (22.13%)
/cmd/templates/vuebasic/frontend/src/assets/images/logo.png -- 300.95kb -> 234.35kb (22.13%)
/cmd/templates/svelte/frontend/src/logo.png -- 300.95kb -> 234.35kb (22.13%)
/website/static/img/architecture.svg -- 3.83kb -> 3.04kb (20.6%)
/website/static/img/Terminal-icon-dark.svg -- 0.99kb -> 0.79kb (20.37%)
/website/static/img/Terminal-icon.svg -- 0.99kb -> 0.79kb (19.84%)
/website/static/img/wails-logo-textless.svg -- 4.11kb -> 3.40kb (17.31%)
/assets/images/pace.jpeg -- 3.06kb -> 2.55kb (16.57%)
/website/static/img/icon-apple-dark.svg -- 1.10kb -> 0.92kb (16.33%)
/website/static/img/Go_Logo_Blue.svg -- 2.20kb -> 1.86kb (15.21%)
/website/static/img/logo-dark.svg -- 7.19kb -> 6.18kb (14.12%)
/website/static/img/wails-logo-horizontal-dark.svg -- 6.29kb -> 5.41kb (14.02%)
/website/static/img/logo-light.svg -- 7.12kb -> 6.13kb (14%)
/website/static/img/wails-logo-horizontal.svg -- 6.22kb -> 5.36kb (13.87%)
/website/static/img/icon-windows.svg -- 0.42kb -> 0.39kb (8.14%)
/v2/cmd/wails/internal/commands/generate/template/base/frontend/dist/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/vue-ts/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/plain/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/lit/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/react-ts/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/common/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/lit-ts/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte-ts/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/lit/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/preact/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/preact/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/generate/plain/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/react/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/vue/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/react/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla-ts/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/vue/frontend/src/assets/images/logo-universal.png -- 146.83kb -> 136.42kb (7.09%)
/cmd/templates/vue3-js/frontend/src/assets/logo.png -- 6.69kb -> 6.33kb (5.4%)
/v2/cmd/wails/internal/commands/initialise/templates/templates/preact/frontend/src/assets/preact.svg -- 1.57kb -> 1.49kb (4.99%)
/website/static/img/icon-apple.svg -- 0.76kb -> 0.72kb (4.52%)
/website/static/img/desktop-application-app-dark.svg -- 4.56kb -> 4.37kb (4.34%)
/website/static/img/desktop-application-app.svg -- 4.54kb -> 4.35kb (4.34%)
/website/static/img/logo.svg -- 6.55kb -> 6.29kb (4.05%)
/website/static/img/vitejs.svg -- 3.76kb -> 3.62kb (3.79%)
/cmd/templates/create-react-app/frontend/public/logo512.png -- 175.92kb -> 169.55kb (3.62%)
/v2/pkg/commands/build/internal/packager/icon128.png -- 16.10kb -> 15.52kb (3.58%)
/cmd/templates/vue3-full/frontend/src/assets/appicon.png -- 105.56kb -> 101.81kb (3.56%)
/cmd/packages/darwin/icon.png -- 105.56kb -> 101.81kb (3.56%)
/cmd/templates/vue3-js/frontend/src/assets/appicon.png -- 105.56kb -> 101.81kb (3.56%)
/cmd/packages/windows/icon.png -- 105.56kb -> 101.81kb (3.56%)
/cmd/templates/create-react-app/frontend/public/logo192.png -- 37.41kb -> 36.24kb (3.14%)
/cmd/templates/vuebasic/frontend/src/assets/fonts/roboto/roboto-v18-latin-regular.svg -- 47.83kb -> 46.81kb (2.13%)
/v2/pkg/commands/build/internal/packager/icon256.png -- 26.46kb -> 25.99kb (1.79%)
/website/static/img/icon-linux.svg -- 2.94kb -> 2.92kb (0.4%)
Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-09-12 21:57:07 +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
Sean
85b8c3025d
fix: remove duplicate defs in win32/window.go ( #1832 )
...
Introduced in 70c484f603
2022-09-07 05:43:47 +10:00
Kevin MacMartin
27f36a8edd
Only set GDK_BACKEND to "x11" if GDK_BACKEND is unset and XDG_SESSION_TYPE is not "wayland" ( #1811 )
...
* Only set GDK_BACKEND to "x11" if GDK_BACKEND is unset and XDG_SESSION_TYPE is not "wayland"
* GDK_BACKEND should only be set if XDG_SESSION_TYPE is unset, "unspecified" or "x11"
2022-08-31 17:31:52 +10:00
ZanderCodes
70c484f603
Add Some WindowState ( #1349 )
...
* Add Check for WindowState IsMaximised, IsMinimized, IsNormal and IsFullscreen
Solve conflicts
# Conflicts:
# v2/internal/frontend/desktop/darwin/WailsContext.m
# v2/internal/frontend/desktop/darwin/frontend.go
# v2/internal/frontend/desktop/linux/window.go
# v2/internal/frontend/desktop/windows/window.go
* Add Check for WindowState IsMaximised, IsMinimized, IsNormal and IsFullscreen
Solve conflict
# Conflicts:
# v2/pkg/runtime/window.go
* Forgot some function to use it
# Conflicts:
# v2/internal/frontend/desktop/darwin/WailsContext.h
# v2/internal/frontend/desktop/windows/win32/consts.go
# v2/internal/frontend/desktop/windows/win32/window.go
* Modify the instructions
# Conflicts:
# v2/internal/frontend/devserver/devserver.go
* Add Functions to DevServer
# Conflicts:
# v2/internal/frontend/dispatcher/systemcalls.go
# v2/internal/frontend/runtime/desktop/window.js
# v2/internal/frontend/runtime/package-lock.json
# v2/internal/frontend/runtime/runtime_prod_desktop.js
# v2/internal/frontend/runtime/wrapper/runtime.d.ts
# v2/internal/frontend/runtime/wrapper/runtime.js
* Add Callback and JavaScript Functions
# Conflicts:
# v2/cmd/wails/internal/commands/initialise/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.js
# v2/internal/frontend/runtime/package-lock.json
# v2/internal/frontend/runtime/runtime_dev_desktop.js
* Remove Merge lines
* Fix IsMaximised
* Add WindowState Docs
* Update docs
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-08-30 06:52:01 +10:00
stffabi
3632ef9dc8
[webviewloader] Use go implementation to retrieve the version of a fixed runtime ( #1790 )
...
* [webview2loader] Start porting of OpenWebView2Loader to go
* [webviewloader] Use go implementation to retrieve the version of a fixed runtime
This fixes a problem with the go-winloader and using GetAvailableCoreWebView2BrowserVersionString
Fixes #1569
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-08-27 09:29:09 +10:00
stffabi
7e030f3f2b
[webviewloader] Prevent env variables and registry overrides from changing behaviour ( #1771 )
2022-08-22 07:37:00 +02: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
add21f6411
fix: handling of default folder for windows dialogs
2022-08-13 16:52:35 +10:00
Lea Anthony
d86daaa211
Allow frameless window to be miniturisable ( #1705 )
2022-08-08 17:28:11 +10:00
Lea Anthony
b6dee773c5
Attempted fix for both drag and doubleclick ( #1704 )
...
* Attempted fix for both drag and doubleclick
* Shameful hack for windows doubleclick events
* Handle end of drag
* Remove dbClickInterval
2022-08-08 17:27:23 +10:00
Lea Anthony
baff28bb20
Bugfix/linux warnings ( #1656 )
...
* Use scaling when setting min/max window
* Fix compile issue. Add debug
* Fix scaling issue
* Fix window widget warnings & shutdown issue. Remove debug lines for linux
* Update dev build with shutdown fix
2022-08-03 21:17:38 +10:00
Lea Anthony
224f7c0c56
Move SetMin/Max calls to main thread ( #1684 )
...
* Move SetMin/MAx calls to main thread
* Move setsize back to original location
* Remove debug
2022-08-02 06:51:20 +10:00
stffabi
3d24a9b4c4
[v2, darwin] Assign a unique requestId to every WKWebView request ( #1681 )
...
This makes sure we always use the correct WKURLSchemeTask during
processURLResponse. Only using the URL is not unique enough and
might result in pending requests if two requests with the same URL
are getting processed.
2022-08-01 18:55:25 +10:00