8000 Move magic margin numbers in Frame into Style, and make Separator's spacing inherit from item_spacing by Masterchef365 · Pull Request #6876 · emilk/egui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Move magic margin numbers in Frame into Style, and make Separator's spacing inherit from item_spacing #6876

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Masterchef365
Copy link

This is a simple PR, which addresses some comments in the Discord asking why there were hardcoded values for the margins in Frame. This PR also addresses a comment which pointed out that Separator could use the Style's item_spacing by default. Note that the default item_spacing value does not exactly match the previous default spacing value, so this change does modify the default appearance of the GUI slightly.

I'm marking this as a draft, because there may be other magic numbers to find.

@lucasmerlin lucasmerlin added egui style visuals and theming labels Apr 28, 2025
Copy link

Preview available at https://egui-pr-preview.github.io/pr/6876-fewer-magic-numbers
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui style visuals and theming
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0