Lea Anthony
11cbfb68f1
Merge branch 'master' into exp
...
# Conflicts:
# v2/internal/frontend/desktop/windows/win32/consts.go
2022-07-09 22:50:01 +10:00
Lea Anthony
39cebffa87
Fix: use correct json value for buildtype
2022-07-08 10:58:38 +10:00
Lea Anthony
4726b72708
feature: Add -windowsconsole flag
2022-07-04 22:52:50 +10:00
Lea Anthony
3e42d2da05
Rename WindowSetRGBA -> WindowSetBackgroundColour ( #1506 )
...
* Rename WindowSetRGBA -> WindowSetBackgroundColour
* Fix Typos
2022-06-29 22:31:49 +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
chenxiao
072929689c
feature: add runtime func WindowSetAlwaysOnTop ( #1442 )
...
* feature: add runtime func WindowSetAlwaysOnTop
* add runtime WindowSetUnalwaysOnTop
* add JavaScript runtime method , docs update
* WindowSetAlwaysOnTop(b bool)
* Add AlwaysOnTop for MacOS
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-06-22 20:55:02 +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
Zámbó, Levente
f6425a64a6
feature - add race detector to build & dev ( #1426 )
2022-05-27 19:07:39 -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
Lea Anthony
ee5ca1a84a
Add SetLabel, minor api updates
2022-05-07 20:39:08 +10:00
Lea Anthony
1947a9a17a
Hugely improved + darkmode bitmap support. Dynamic scaling factor support
2022-05-05 21:15:50 +10:00
Lea Anthony
13fb5352d8
Support sizing tray menu
2022-05-03 08:31:42 +10:00
Lea Anthony
58b6e4c335
Support retina images
2022-05-02 20:16:04 +10:00
Lea Anthony
ae0933c82a
Move TrayMenu from config to runtime
...
Support better tray menu API
Move object creation to main thread
2022-05-02 18:57:35 +10:00
Lea Anthony
1830c64c79
Better Checked implementation
2022-04-30 21:39:19 +10:00
Lea Anthony
ee50170374
Support activation policy
2022-04-30 17:51:11 +10:00
Lea Anthony
3f82ceabba
Initial Tray support for Mac
2022-04-30 12:00:00 +10:00
Lea Anthony
41f9c07c88
Fixes #1343
2022-04-27 21:29:54 +10:00
Lea Anthony
e7aa74905a
Initial commit ( #1352 )
2022-04-27 19:10:20 +10:00
Lea Anthony
f6257d3d31
Add Environment and WindowReloadApp calls to runtime. Updated default templates.
2022-04-20 20:28:41 +10:00
Lea Anthony
4e03c84fbb
Feature/default templates ( #1334 )
2022-04-15 20:30:10 +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
3fbe4f71c4
Ensure there's a default wailsJS dir
2022-04-12 20:13:05 +10:00
Lea Anthony
ebf4cf13f2
Feature: Add menu helpers
2022-04-09 20:36:48 +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
Lea Anthony
7af39e4819
Feature: Go logger "f" equivalents
2022-04-01 12:27:40 +11: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
Lea Anthony
2376062008
Update NSIS guide. Backport docs to .34. Fix references. Fix titles.
2022-03-31 12:23:28 +11: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
1da68cfc7c
Remove unused directories + tidy up
2022-03-29 21:47:26 +11:00
Lea Anthony
a5bf76b30f
Fix up dev. Pull in go-webview and winc
2022-03-29 21:45:16 +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
Lea Anthony
9c5600d8f3
Ensure default icon is generated regardless of icon.ico availability
2022-03-14 22:35:21 +11:00
fengweiqiang
f4d1d02ded
Build added win32 compatibility ( #1238 )
2022-03-12 17:29:25 +11:00
stffabi
c5c0617c89
[v2, nsis] Seems like / as path separator works only for some directives in a cross platform way ( #1227 )
...
Especially the File directive seems not to work with a `/` on
Windows. Whereas `\` works for all directives and on all platforms.
So the `\` in NSIS can be used also on Linux and MacOS.
2022-03-08 20:35:16 +11:00
stffabi
b02dbfaddf
[v2] NSIS installer support for Windows ( #1184 )
...
* [v2] Add support for post build hooks
Currently only supports build-level hooks
* [v2] Improve build assets handling and use single source for manifest generation
The manifest asset files are now a go template and data will be
resolved before they are included into the build output.
Breaking Change: Windows manifest file must be named
“wails.exe.manifest” and doesn’t depend on the project name
anymore.
* [v2, windows] NSIS installer generation
2022-03-02 19:44:31 +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
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
Valentin Trinqué
e6424dc8ab
Update icon.ico file mode ( #1154 )
...
* Add os.O_WRONLY to icon.ico to avoid bad file descriptor error
* Wrap errors coming from winres.LoadICO()
If the file exists but is empty, a blunt "Unexpected EOF" is returned, and propagated as is.
This is not super helpful when trying to pin point what's going on.
Wrapping the error helps to locate the problem.
2022-02-16 06:02:45 +11:00
Lea Anthony
f923a431f7
Try to provide help when old xcode tools installed. #1142
2022-02-12 21:12:17 +11:00
Lea Anthony
eb0f22b4ee
Fix appicon bug on Mac. Fixes #1143
2022-02-12 20:48:43 +11:00
Lea Anthony
771594519f
[mac] Better support for multi-builds
2022-02-10 21:41:40 +11:00
Lea Anthony
ec44ca58f1
Better output for build
2022-02-10 21:25:43 +11:00
Lea Anthony
28e31c46c6
Fix output filename for windows builds
2022-02-10 21:11:32 +11:00
Lea Anthony
c2fa4b6103
Support multiple targets for windows
2022-02-10 19:55:04 +11:00