Andrey Pshenkin
1b6ed1bc00
Allow set window class name via options for Windows ( #3828 )
...
* Allow set window class name via options
* update changelog
2024-10-20 13:36:13 +11:00
Lea Anthony
f2ab205415
[chore] Use webview2 package ( #2687 )
...
* [v2 windows] Use external webview2 package
* Update CHANGELOG
2023-06-10 17:04:31 +10:00
stffabi
767bfcff89
[v2, windows] Make sure to open the CommonFileDialogs on the main thread ( #2606 )
...
Otherwise it might have some strange side-effects like blocking
the completion of Deferrals in WebView2 when using custom
IStreams.
2023-04-17 20:50:27 +10:00
stffabi
0a98efeea9
[runtime] Improve —wails-draggable
by starting a drag immediately but only for the first click in a series ( #2302 )
...
This removes the sometime lagging experience when
starting to drag on Windows. But it's still possible to use
double-click events for adding e.g. a WindowToggleMaximise.
2023-01-16 20:56:13 +11:00
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
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
0a1c05df16
[windows] Fix frameless maximizing in multi monitor setup ( #2043 )
2022-11-03 19:14:00 +11: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
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
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
a229e04e3e
Windows dialogs - Handle scenario when window is not visible yet. ( #1662 )
...
* Handle scenario when window is not visible yet.
* Handle scenario when window is not visible yet for all dialogs
2022-07-27 19:38:56 +10:00
stffabi
c61ce1e2de
[v2, windows] Make SetBackgroundColour compatible for windows/386 ( #1493 )
...
* [v2, windows] Remove duplicate SetBackgroundColour
* [v2, windows] Make SetBackgroundColour compatible for windows/386
2022-06-25 06:46:23 +10:00
Lea Anthony
1687906376
Improve theme change at runtime ( #1473 )
...
* Improve theme change at runtime
* Handle change to dark mode
* Refactor theme calculation
* Ensure theme is updated for WM_ACTIVATE and WM_SETTINGCHANGE events
2022-06-22 08:34:41 +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
a7f1ea21ef
Bugfix: Better support for showing window
2022-06-19 13:32:48 +10:00
Lea Anthony
e4f2bfe699
Bugfix: Windows start maximised
...
Fixes #1462
2022-06-18 16:21:32 +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
4e03c84fbb
Feature/default templates ( #1334 )
2022-04-15 20:30:10 +10:00
Lea Anthony
b94db409dd
Fixes #1315
2022-04-06 21:53:40 +10: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
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
stffabi
331e0268a3
[v2, windows] Do not show caption buttons if frameless and translucent+transparency ( #1152 )
2022-02-16 18:53:17 +11:00
Lea Anthony
876b845762
[Windows] Restore min/max after fullscreen
2022-02-10 19:55:04 +11:00
stffabi
7bc51725c0
[v2, windows] Apply suggested window size during DPI changed event ( #1131 )
...
* [v2, windows] Apply suggested window size during DPI changed event
This adjusts the window size if the window is moved from one
monitor to another with a different DPI scaling
* [v2, windows] Do not block processing of messages during frameless drag/resize
* [v2, windows] Bump winc
Improves the HiDPI handling by using newer APIs if available
* [v2, windows] Constrain frameless maximize to MaxWidth/MaxHeight
2022-02-08 07:56:01 +11:00
MikeSchaap
965187a8bb
Updated windows window/frontend to fix issue with html select positioning ( #1082 )
...
* Updated windows window/frontend to fix issue with html select positioning
* Moved notifyParentWindowPositionChanged to the Window struct and moved RegMsgHandler to Run
* Update v2/internal/frontend/desktop/windows/window.go
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
* Moved winc.RegMsgHandler back to old location
* fixed error with merge
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-01-26 18:48:39 +11:00
stffabi
46d3288a50
[v2] windows: Improve frameless window handling
...
The following features are now supported for framless windows
- Allow aero snap
- Minimize and maximize animations
- Allow minimizing/restoring by clicking onto the taskbar icon
- If EnableFramelessBorder is used, the default application border with glass effect is used
Change: If a menu is used, it won't be displayed anymore if the window is frameless.
2022-01-19 14:54:29 +01:00
stffabi
c4b14740d5
[v2] Only call EnableSizable for normal windows
...
Frameless windows are always not resizable per default and
the resizing for those will be initiated by the frontend see
processMessage.
If EnableSizable is enabled for frameless windows, a small white
titlebar will be shown.
Fix #1049
2022-01-17 10:23:20 +01:00
Lea Anthony
8b7d4393dc
Revert "WIP"
...
This reverts commit b07fd608b3
.
2022-01-12 20:34:37 +11:00
Lea Anthony
b07fd608b3
WIP
2022-01-12 20:29:20 +11:00
Pierre Joye
e9aba4795f
Allow window resizing regardless of frameless or other options
...
Fix bug on Windows where the disableResize option depends on the frameless option.
2021-12-30 16:55:47 +07:00
Lea Anthony
6d9a195830
Merge pull request #991 from stffabi/feature/windows-frameless-border
...
[windows] Support drawing a frame for frameless to support hiding the titlebar
2021-12-02 04:00:01 -08:00
stffabi
47d783291d
[windows] Support drawing a frame for frameless to support hiding the titlebar
2021-12-02 11:16:13 +01:00
stffabi
a353a653d1
[windows] Replace dispatch with invoke
2021-12-01 13:24:54 +01:00
stffabi
1d87a81f63
[v2] Use invoke to dispatch callbacks on windows
2021-11-24 13:05:31 +01:00
Lea Anthony
bad9ad3dd7
[v2] Refactor app options
2021-11-10 08:42:04 +11:00
Lea Anthony
a51d8bb47d
[v2] Move "AlwaysOnTop" option
2021-10-13 08:05:31 +11:00
Lea Anthony
e0e4c0ae11
[v2] Add "AlwaysOnTop" option
2021-10-13 08:02:35 +11:00
Lea Anthony
fe6dd4d18f
[windows] fix fullscreen at startup
2021-09-22 19:28:07 +10:00
Lea Anthony
9f235bf78d
[windows] Fix fullscreen + drag
2021-09-21 17:35:38 +10:00
Lea Anthony
5dfbd5f71b
[windows] Fix frameless
2021-09-21 07:58:27 +10:00
Lea Anthony
be87d73da8
[v2] go fmt + windowIsTranslucent
2021-09-15 20:30:14 +10:00
Lea Anthony
4468edc939
[windows] Disable icon fix pt 2 - The revenge of
2021-09-08 21:27:49 +10:00
Lea Anthony
d54834d501
[v2] Localise deps temporarily
2021-09-06 21:40:11 +10:00