Skip to content

Separator() needs to scale with DPI #9263

Closed

Description

@lailoken

Version/Branch of Dear ImGui:

latest

Back-ends:

N/A

Compiler, OS:

N/A

Full config/build information:

No response

Details:

Separator() needs to scale correctly to be legible in high DPI environments.

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

Activity

  1. ocornut commented on Feb 26, 2026

    @ocornut
    Owner

    Adding notes:
    Separator() has been maintaining a legacy hack (9534ef9) because back then I noticed it would break code that people often copied to measure size. Though honestly we should rework it now.
    If we make Separator() intervene with layout user needs to know their size anyway.
    I'll work on that. It'll also fix #2657

  2. ocornut commented on Feb 26, 2026

    @ocornut
    Owner

    Fixed with ef022c5 which is advertised as a small breaking change.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址