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

Change margins to u8 to follow egui main #231

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

mkalte666
Copy link

Heya!

Starting with

emilk/egui@249f8bc#diff-27a694b8b19044d8b902cbf26c497d371ee974d314ae11413cc10947b05a9f09

in egui upstream, rounding and margins are given in u8 whole points instead of f32.

This breaks in exactly one position - that one inner_margin call in file_dialog.rs

This PR fixes this, however this would then stop building on default egui 0.30. Thus this PR includes the same patch line in Cargo.toml that egui_plot is currently using (https://github.com/emilk/egui_plot/blob/80e2199a2e121db288fe6b0099d91c35acc75a7c/Cargo.toml#L43). Those need removal on or before the next egui/egui-file-dialog release.

Starting with

emilk/egui@249f8bc#diff-27a694b8b19044d8b902cbf26c497d371ee974d314ae11413cc10947b05a9f09

in egui upstream, rounding and margins are given in u8 whole points instead of f32.

This breaks in exactly one position - inner margin in `file_dialog.rs`

This PR fixes this, however this would then stop building on default egui 0.30. Thus this PR includes the same patch line in Cargo.toml that egui_plot is currently using (https://github.com/emilk/egui_plot/blob/80e2199a2e121db288fe6b0099d91c35acc75a7c/Cargo.toml#L43). Those need removal on or before the next egui/egui-file-dialog release.
@fluxxcode
Copy link
Owner

Hey, thanks for the PR! I won't merge it until egui has built a new official version. So that we only use stable versions of egui here :)

@mkalte666
Copy link
Author

Hey, thanks for the PR! I won't merge it until egui has built a new official version. So that we only use stable versions of egui here :)

Thats fine, ill change the PR so that wont include the patch line then :) You might as well just keep this as a reminder and just fix it once egui updates, considering its two numbers that need changing^^

Thanks and have a good day!

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.

2 participants