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

feat: Set whether to show decorations #660

Merged
merged 3 commits into from
Aug 28, 2021
Merged

Conversation

zu1k
Copy link
Contributor

@zu1k zu1k commented Aug 27, 2021

Set whether to show decorations when update frame.

frame.set_decorations(false);

I have tested it on my project: https://github.com/zu1k/copy-translator/blob/6eca80ca32593f2d55eda0fc950e1f1ff0cd52eb/src/ui.rs#L252

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.

Great! Please also add a line to eframe/CHANGELOG.md

epi/src/lib.rs Outdated Show resolved Hide resolved
@emilk emilk merged commit 0db74f3 into emilk:master Aug 28, 2021
@zu1k zu1k requested a review from emilk August 28, 2021 09:18
@zu1k zu1k deleted the set_decorations branch August 28, 2021 09:19
emilk added a commit that referenced this pull request Aug 28, 2021
emilk added a commit that referenced this pull request Aug 28, 2021
@emilk
Copy link
Owner

emilk commented Aug 28, 2021

I reverted the merge, because this PR removed decorations by default, at least on my mac. Not good!

I should have tested it first 🤦

@zu1k
Copy link
Contributor Author

zu1k commented Aug 28, 2021

Sorry for that, it's my fault, I will relaunch a PR.

zu1k added a commit to zu1k/egui that referenced this pull request Aug 28, 2021
* feat: Set whether to show decorations

* cargo fmt

* Update comment and changelog
zu1k pushed a commit to zu1k/egui that referenced this pull request Aug 28, 2021
mankinskin pushed a commit to mankinskin/egui that referenced this pull request Sep 29, 2021
* feat: Set whether to show decorations

* cargo fmt

* Update comment and changelog
mankinskin pushed a commit to mankinskin/egui that referenced this pull request Sep 29, 2021
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