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

CSS Transparency Effect Causes Ghosting #3474

Closed
TaterTotX opened this issue May 12, 2024 · 2 comments
Closed

CSS Transparency Effect Causes Ghosting #3474

TaterTotX opened this issue May 12, 2024 · 2 comments
Labels
Bug Something isn't working

Comments

@TaterTotX
Copy link

Description

WebviewIsTransparent: true,

html {
background-color: rgba(123, 140, 157, 0);
text-align: center;
}

I'm experiencing a ghosting effect in my built app that doesn't occur in the web display. When I apply a transparency effect to an element in CSS, such as a background or a border, a faint duplicate of the element appears to trail behind it as it moves. This issue is noticeable during animations or when the element has a moving background.

To Reproduce

Apply transparency to an element using CSS, e.g., background-color: rgba(0, 0, 0, 0.5);
Animate or move the element, such as changing its position or opacity.

Expected behaviour

The transparent element should move smoothly without any ghosting or trail effect, similar to the behavior in the web display.

Screenshots

image

Attempted Fixes

No response

System Details

macos 14.2 (23C64)

Additional context

No response

@TaterTotX TaterTotX added the Bug Something isn't working label May 12, 2024
@leaanthony
Copy link
Member

I can't tell what element is being ghosted here but I do know it's likely nothing to do with Wails.

@TaterTotX
Copy link
Author

I can't tell what element is being ghosted here but I do know it's likely nothing to do with Wails.

Steps to Reproduce

wails init -n ghost_test -t vue

wails dev

app.vue

<script setup> import HelloWorld from './components/HelloWorld.vue' </script> <style> </style>

func main() {
// Create an instance of the app structure
app := NewApp()

// Create application with options
err := wails.Run(&options.App{
	Title:  "ghost_test",
	Width:  1024,
	Height: 768,
	AssetServer: &assetserver.Options{
		Assets: assets,
	},
	BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 0},
	OnStartup:        app.startup,
	Bind: []interface{}{
		app,
	},

	Mac: &mac.Options{
		WebviewIsTransparent: true,
	},
})

if err != nil {
	println("Error:", err.Error())
}

}

Pasted Graphic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants