Falco Gerritsjans
0dc7b3c549
More control over menus ( #4031 )
...
* Add prepend and clear method to menus
* Document appending and clearing menus
* Add `Destroy()`
Add notes to documentation.
* Remove menu item from map when destroying
* Remove menu items from map when clearing
* Update v3/pkg/application/menu.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Minor updates
* Fix build error
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-02-16 12:08:08 +11:00
Lea Anthony
e668c81806
Improved panic handling. Added guide.
2025-01-16 22:08:18 +11:00
Lea Anthony
9569d487a2
Ensure some menuitem methods are run on the main thread.
Build + Test v3 alpha / Test Templates (1.23, macos-latest, svelte-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, lit) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, lit-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, preact) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vanilla) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vanilla-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue-ts) (push) Has been cancelled
2025-01-12 15:05:39 +11:00
Atterpac
e0c5de6e10
[V3/Linux] Fix Min/Max window options ( #3979 )
...
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vue-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue-ts) (push) Blocked by required conditions
/ publish (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions
Deploy to GitHub Pages / build (push) Waiting to run
fix min/max options for linux
changelog.md
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-01-11 10:32:27 +11:00
Lea Anthony
2a6e3da30a
Ensure key callbacks in window run() are called on the main thread
2024-12-07 20:54:22 +11:00
Michael
0466bc6936
[v3 alpha] Fix deadlock of linux dialog for multiple selections
2024-12-03 05:54:17 -08:00
Atterpac
f16d1be955
[V3 Linux] Fix Keybind remit ( #3797 )
...
debounce linux keypress events remits if held past a certain value
2024-10-02 08:21:14 +10:00
Mohamed Gharib
efe0c8d534
[v3-Windows] New DIP system for Enhanced High DPI Monitor Support ( #3665 )
...
* [v3-Windows] New DIP system for Enhanced High DPI Monitor Support
* Update changelog
* Remove asset middleware
* Remove SetThreadDpiAwarenessContext()
* Fix macOS build.
* Fill missing screens fields (linux, darwin)
* Skip DPI transformation on unsupported platforms
* Simplify distanceFromRectSquared()
* Update v3/pkg/application/screenmanager.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-09-22 08:38:30 +10:00
Lea Anthony
cfdd612c8d
Fix linux build
2024-09-18 21:43:22 +10:00
Lea Anthony
40076c6246
Fix linux build
2024-09-18 06:23:53 +10:00
Lea O'Anthony
2c55110776
Improved menus.
...
Fixed warning on windows quit.
2024-09-17 21:19:00 +10:00
Atterpac
5004aac259
[V3] Refactor linux ignore mouse events ( #3721 )
...
refactor linux ignore mouse events
changelog.md
2024-09-06 08:10:05 +10:00
Lea Anthony
f94ecaba84
Fix random crash on linux
2024-07-20 08:40:52 +10:00
Atterpac
f0cec1cf37
[V3-Linux] fix resize and update @wailsio runtime ( #3617 )
2024-07-16 15:44:46 -05:00
Mohamed Gharib
d5e289880f
[v3] Rename AbsolutePosition()
to Position()
( #3611 )
2024-07-15 19:27:21 +10:00
Travis McLane
cfe2424f4d
WindowDidMove / WindowDidResize events for Linux and Windows
...
* [linux] emit system specific event for theme change
Code was incorrectly emitting the `events.Common.ThemeChanged` event
instead of the OS Specific `events.Linux.SystemThemeChanged` event.
It is the reponsibility of the code in events_common_linux.go to map
it to the common variety.
* [linux] implement WindowDidMove
* [linux] implement debounce for WindowDidMove
* [example] listen for events.Common.WindowDidMove
* [windows] move WindowDidMove mapper outside of DnD guard
* WindowDidResize implementation
* windows: WindowDidResize
* chore: changelog update
* events.Common.WindowDidMove and events.Common.WindowDidResize
2024-06-30 16:11:45 -05:00
Atterpac
71b2edc0fe
[V3-Linux] Upgrade to Webkitgtk4.1 ( #3461 )
...
* webkitgtk4.0->webkitgtk4.1
changelog
* Update mkdocs-website/docs/en/changelog.md
* Update deps in pipeline
* Update deps in pipeline
* Install 4.1 only when v3
* Install 4.1 only when v3
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-05-08 18:08:14 +10:00
Travis McLane
7ea0601fc6
remove Println
...
unknown key codes shouldn't print out to stdout
2024-05-02 11:02:21 -05:00
abichinger
9ca1b30da1
[v3 alpha] Fix drag-n-drop on some linux distros ( #3346 )
...
* Fix drag and drop on linux
- Move C code
* Use GTK_DEST_DEFAULT_DROP
* Update changelog
* Move C code back into `linux_cgo.go`
2024-04-15 10:05:23 -05:00
abichinger
7c921d6a81
[v3 alpha] implement setIcon
on linux ( #3354 )
...
* implement `linuxApp.setIcon`
* Move code into `linux_cgo.go`
2024-04-09 11:04:54 -05:00
atterpac
6f75b00463
Proper syncing and canceling of dialogs
...
s
s
s
2024-04-08 11:17:05 -05:00
Travis McLane
105d9f0d3a
allow directory selection
2024-04-07 16:42:33 -05:00
atterpac
38f6b1297d
Call linux dialog on main thread
2024-04-07 16:42:33 -05:00
abichinger
db5553ec75
[linux] fix closing of custom context menu #3329 ( #3330 )
...
* [linux] fix closing of custom context menu
* Update changelog
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-03-24 16:51:45 +11:00
Lea Anthony
98aff7778e
Support ProgramName on linux
2024-03-17 21:09:20 +11:00
Lea Anthony
4ab6352504
Set default size for linux windows
2024-03-17 20:57:46 +11:00
Travis McLane
4b2189ba51
allow keypress propagation
...
- this allows the webkit to add values to the `input` when typed
FIXME: does this need to be configurable?
2024-03-07 09:03:47 -06:00
Travis McLane
fb46cce963
simplify key handling logic
2024-03-07 09:03:32 -06:00
Travis McLane
eedd5eb7d2
reuse the 'wv' variable
2024-03-07 09:02:39 -06:00
Travis McLane
716f4af808
[linux] add missing implementations
2024-03-06 17:10:41 -06:00
Travis McLane
c21784037d
wip: fixing rebase issue
2024-03-06 16:59:13 -06:00
Travis McLane
6d90c1678c
move install_signal_handlers to proper location
2024-03-06 16:59:13 -06:00
Lea Anthony
a7fb568aff
Fix signal handlers
2024-03-06 16:59:13 -06:00
Lea Anthony
430736a4f2
Remove need for javascriptcore
2024-03-06 16:59:13 -06:00
Lea Anthony
161444107a
Support linux systrays, of sorts...
2024-03-06 16:59:13 -06:00
Lea Anthony
12e2e2101a
fix screens
2024-03-06 16:59:13 -06:00
Lea Anthony
be7c723c47
Fix window close issues
...
Update docs
Make uri scheme registration thread safe
2024-03-06 16:59:13 -06:00
Lea Anthony
a60b198b03
Fix window close issues
2024-03-06 16:59:13 -06:00
Lea Anthony
e06df85f02
WindowID now correctly processed by postMessage calls.
2024-03-06 16:59:13 -06:00
Lea Anthony
288a4757f8
WindowID now correctly passed with webview request.
2024-03-06 16:59:13 -06:00
Lea Anthony
29363fc07f
ToggleDevTools -> OpenDevTools
...
More refactor CGO methods.
2024-03-06 16:59:13 -06:00
Lea Anthony
02a1b540ce
[WIP] refactor CGO methods
2024-03-06 15:43:50 -06:00
Lea Anthony
6b0daf3da9
Update windowSetupSignalHandlers & linux events
2024-03-06 11:44:55 -06:00
Lea Anthony
b6c5d90c9d
Window Flash for Linux
...
Set Min/Max window buttons
2024-03-06 11:43:16 -06:00
Lea Anthony
a34ccbff33
ToggleDevTools -> OpenDevTools
...
More refactor CGO methods.
2024-03-06 11:43:12 -06:00
Lea Anthony
4cd4b46772
[WIP] refactor CGO methods
2024-03-06 11:42:19 -06:00
Lea Anthony
3d93c83920
Added menu cloning.
...
Introduced the ability to clone a menu, along with its submenus, in Linux-based web applications to create a full deep copy. This fixes reusing the application menu for window menus.
2024-03-06 11:42:19 -06:00
Lea Anthony
4c7b643295
Add webview GPU policy and update Linux options
...
The commit introduces a set of webview GPU policies to control hardware acceleration. These policies define when hardware acceleration is enabled on the webview. An option for this has been added to the LinuxWindow struct for Linux specific windows. Additional code modification was carried out to use this new GPU policy option when calling `windowNew` function. Finally, the sequence of the GPU Policies in the const declaration has been updated for better readability.
2024-03-06 11:42:19 -06:00
Lea Anthony
05b16f1d63
Improve Linux application events and refactor app method receivers
...
This commit includes the addition of common events for the Linux platform. Refactored and standardized the method receivers for the application from 'm' to 'l'. Also, the application startup events in the window example have been updated according to the new naming scheme.
2024-03-06 11:42:19 -06:00
Lea Anthony
bfa53dfd6c
Update windowSetupSignalHandlers & linux events
2024-03-06 11:42:19 -06:00