Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 feature/windows toolwindow #3507

Open
wants to merge 2 commits into
base: release/v2.8.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion v2/internal/frontend/desktop/windows/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
package windows

import (
"github.com/wailsapp/go-webview2/pkg/edge"
"sync"
"unsafe"

"github.com/wailsapp/go-webview2/pkg/edge"

"github.com/wailsapp/wails/v2/internal/frontend/desktop/windows/win32"
"github.com/wailsapp/wails/v2/internal/system/operatingsystem"

Expand Down Expand Up @@ -63,6 +64,9 @@ func NewWindow(parent winc.Controller, appoptions *options.App, versionInfo *ope
if windowsOptions.WindowIsTranslucent {
exStyle |= w32.WS_EX_NOREDIRECTIONBITMAP
}
if windowsOptions.ToolWindow {
exStyle = w32.WS_EX_TOOLWINDOW | w32.WS_EX_NOREDIRECTIONBITMAP | w32.WS_EX_TOPMOST
}
}
if appoptions.AlwaysOnTop {
exStyle |= w32.WS_EX_TOPMOST
Expand Down
1 change: 1 addition & 0 deletions v2/pkg/options/windows/windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type ThemeSettings struct {

// Options are options specific to Windows
type Options struct {
ToolWindow bool
WebviewIsTransparent bool
WindowIsTranslucent bool
DisableWindowIcon bool
Expand Down