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

Can't round window corners #8309

Closed
Kon-Kam opened this issue Jan 11, 2025 · 3 comments
Closed

Can't round window corners #8309

Kon-Kam opened this issue Jan 11, 2025 · 3 comments

Comments

@Kon-Kam
Copy link

Kon-Kam commented Jan 11, 2025

Version/Branch of Dear ImGui:

Branch: docking

Back-ends:

imgui_impl_win32.cpp + imgui_impl_dx11.cpp

Compiler, OS:

Windows 11

Full config/build information:

No response

Details:

The main window's corners are rounded, like Win11 style, but the independent windows' (I'm using docking) corners are completely square.

I've checked out all rounding variables both from the Demo window and the style variable from in-code, but nothing seems to work, not even the Window Rounding. I wouldn't think being able to round corners wasn't supported; that's why I'm opening this
Screenshot 2025-01-11 204555

Also my text is very blurry, which I don't know if it's a feature...

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

No response

@PathogenDavid
Copy link
Contributor

Window rounding is not currently supported when multi-viewports are enabled. Enabling it is non-trivial.

See #2766 and the various issues linking to it. (And subscribe to #7912 if you want updates.)

Also my text is very blurry, which I don't know if it's a feature...

This looks like a DPI issue. Your app is not marked as DPI aware so Windows is scaling it up automatically, which makes the whole app blurry.

You can either mark your application as DPI-aware in your application manifest or call ImGui_ImplWin32_EnableDpiAwareness at runtime before you create any windows or window classes.

However proper frictionless high DPI support in Dear ImGui is still a work in progress so it won't be perfect with that alone. (In particular everything will appear very small by default.) You can explore the various issues tagged with the dpi label for current workarounds people are using.

@Kon-Kam
Copy link
Author

Kon-Kam commented Jan 11, 2025

Oh ok, thanks. And yes I'm aware of DPI, but didn't know how to use it correctly or what it was, so... gonna check that. Also I'm not closing this, because it may evolve into a bigger discussion.

@ocornut
Copy link
Owner

ocornut commented Jan 12, 2025

Closing as the question was well answered by David. Please don’t ask two unrelated questions in the same topic, it makes things harder to find and label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants