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

Add Grid::with_row_color #2519

Merged
merged 6 commits into from
Mar 30, 2023
Merged

Add Grid::with_row_color #2519

merged 6 commits into from
Mar 30, 2023

Conversation

imgurbot12
Copy link
Contributor

@imgurbot12 imgurbot12 commented Dec 28, 2022

Hello, this PR is sort of a fork from the ideas talked about in #364.
I took inspiration from the comments @emilk provided and made this simple implementation.

This change is a bit of a blocker for my own personal project making use of egui which uses grids a lot.
This could allow for this other related issue to close as well: #2339

I'm still very new to rust so feedback is appreciated. Thanks!

@imgurbot12 imgurbot12 marked this pull request as ready for review December 28, 2022 00:52
crates/egui/src/grid.rs Outdated Show resolved Hide resolved
crates/egui/src/grid.rs Outdated Show resolved Hide resolved
Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

looks good, but can be simplified and sped up a bit!

@imgurbot12
Copy link
Contributor Author

looks good, but can be simplified and sped up a bit!

Thanks! Apologies for being away for so long. I applied the changes you recommended. Makes sense!
Hope all is good now :)

crates/egui/src/grid.rs Outdated Show resolved Hide resolved
@imgurbot12
Copy link
Contributor Author

Looks like you patched the warning? Nice. However, for some reason it still says changes are being requested. Sorry, am I missing something?

crates/egui/src/grid.rs Outdated Show resolved Hide resolved
@emilk emilk merged commit 9ddf7ab into emilk:master Mar 30, 2023
5 checks passed
@imgurbot12 imgurbot12 deleted the feat/grid-color branch March 30, 2023 20:48
@emilk emilk added egui feature New feature or request labels Apr 18, 2023
@emilk emilk changed the title feat: simple grid row color picker Add Grid::with_row_color Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants