-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
egui
: Fixed the incorrect display of the Window frame with a wide border or large rounding
#4032
Conversation
Thank you for your hard work on this time-consuming task. It is greatly appreciated. Pressing collapse, depending on whether the window has focus or not, Adding two lines below let window_margin = window_frame.inner_margin;
let border_stroke = ctx.style().visuals.widgets.noninteractive.bg_stroke;
window_frame.inner_margin = window_frame.inner_margin + Margin::same(border_stroke.width); |
Issue resolved in commit 4d2edb5 |
5fbcce7
to
4d2edb5
Compare
This is good. The border at the right end of the title is violated by about 0.1 to 0.5. I think we both had a good collaboration. Of course your power was greater. |
4d2edb5
to
79a8cc7
Compare
Currently shrink by 0.1 to prevent the title bar hline from infringing the border, |
@varphone |
…nstead of a `Stroke`
e9eb973
to
6567a8a
Compare
…order or large rounding (emilk#4032) Currently, the Window frame is displayed incorrectly when using a wide border or large rounding. * Closes emilk#3806 * Closes emilk#4024 * Closes emilk#4025 * Screencast of egui demo app (emilk:master) [window-frame-bug.webm](https://github.com/emilk/egui/assets/1274171/391f67fa-ae6f-445a-8c64-1bb575770127) * Screencast of egui demo app (varphone:hotfix/window-custom-frame) [window-frame-fixed.webm](https://github.com/emilk/egui/assets/1274171/1953124e-9f7a-4c2d-9024-5d2eece6b87c)
Currently, the Window frame is displayed incorrectly when using a wide border or large rounding.
Closes Window title bar border disappears #3806
Closes Width of the window title bar with custom frame #4024
Closes Width of the window title bar with custom frame #4024 #4025
Screencast of egui demo app (emilk:master)
window-frame-bug.webm
window-frame-fixed.webm