Skip to content

Fix cursor interaction leaking and add customization options - #49

Open
marcoradocchia wants to merge 3 commits into
ItsEthra:masterfrom
marcoradocchia:master
Open

Fix cursor interaction leaking and add customization options#49
marcoradocchia wants to merge 3 commits into
ItsEthra:masterfrom
marcoradocchia:master

Conversation

@marcoradocchia

Copy link
Copy Markdown

Fixes #21 using egui's Area API and #40 adding fill and stroke options.

Might be worth updating the example with the new configuration options.

Cursor hovering and interactions were being captured by the UI rendered
below the toast UI, causing unintended interaction with the underlying
content.

Fixed by replacing the painter obtained by [`ctx.layer_painter`](https://github.com/ItsEthra/egui-notify/blob/7124671146a9ae1468d43c5f791ea4d050945fde/src/lib.rs#L211) with egui's [`Area`](https://docs.rs/egui/latest/egui/containers/struct.Area.html) API and its response. This ensures pointer events are consumed by the toast layer, preventing them from reaching the UI beneath.

Fixes ItsEthra#21
Allows setting a custom background color (`fill`), as well as an
optional custom outline (`stroke`), for toast notifications.

Fixes ItsEthra#40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can click below

1 participant