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

Arrows in ArrowButtons have no StyleVar to resize them. #5233

Open
fredUmlaut opened this issue Apr 23, 2022 · 3 comments
Open

Arrows in ArrowButtons have no StyleVar to resize them. #5233

fredUmlaut opened this issue Apr 23, 2022 · 3 comments
Labels

Comments

@fredUmlaut
Copy link

fredUmlaut commented Apr 23, 2022

Version: 1.87
Branch: master

The Arrows in the 'ImGui::ArrowButton' and Combo widgets look too big for me, especially when compared to the ImGui::InputInt buttons ("+", "-") . Their size is based on font height. Most other gui's i use tend to draw such arrows much smaller then the font height.
Would it be possible to have a StyleVar that allows resizing of the arrows? ImGui::ArrowButtonEx already has a scale factor, but it's not exposed yet.

@fredUmlaut fredUmlaut changed the title Arrows in ArrowButtons have no style to resize them. Arrows in ArrowButtons have no StyleVar to resize them. Apr 23, 2022
@ocornut ocornut added the style label May 25, 2023
@ocornut
Copy link
Owner

ocornut commented May 25, 2023

Hello,
For reference could you share the font you used + font size + a screenshot of you case?

Thanks!

@ocornut
Copy link
Owner

ocornut commented Jun 19, 2023

@fredUmlaut Ping?

@alien-brother
Copy link

alien-brother commented Mar 2, 2024

In case this is still relevant, here's what I see with Noto Sans size 22 (Freetype if it matters). Arguably, the arrow is quite big.
Screenshot 2024-03-02 231817

Thinking about it, it seems that the arrow height is always slightly larger than capital Latin letters (something like ImFont's ascent?), it's just that the default font is quite small and the arrows don't stand out too much.

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

No branches or pull requests

3 participants