Fix cursor interaction leaking and add customization options - #49
Open
marcoradocchia wants to merge 3 commits into
Open
Fix cursor interaction leaking and add customization options#49marcoradocchia wants to merge 3 commits into
marcoradocchia wants to merge 3 commits into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #21 using egui's
AreaAPI and #40 addingfillandstrokeoptions.Might be worth updating the example with the new configuration options.