Skip to content

Fix: Grid now follows style.visuals.striped setting if not explicitly overwritten - #3723

Merged
emilk merged 1 commit into
emilk:masterfrom
Wcubed:grid-stripes
Dec 23, 2023
Merged

emilk merged 1 commit into
emilk:masterfrom
Wcubed:grid-stripes

Conversation

@Wcubed

@Wcubed Wcubed commented Dec 19, 2023

Copy link
Copy Markdown
Contributor

The docs of Visuals.striped mention that they control the default striping of Grid. However, this seems to be broken.

This pr makes the Grid follow the striped setting if it doesn't yet have a row coloring set.

@emilk emilk left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Apparently it was only used for egui_extras::Table

@emilk emilk added bug Something is broken egui labels Dec 23, 2023
@emilk emilk changed the title Grid now follows style.visuals.striped setting if not explicitly overwritten. Fix: Grid now follows style.visuals.striped setting if not explicitly overwritten Dec 23, 2023
@emilk
emilk merged commit 76025f2 into emilk:master Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something is broken egui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants