imgui icon indicating copy to clipboard operation
imgui copied to clipboard

Arrows in ArrowButtons have no StyleVar to resize them.

Open fredUmlaut opened this issue 2 years ago • 3 comments

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 avatar Apr 23 '22 11:04 fredUmlaut

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

Thanks!

ocornut avatar May 25 '23 13:05 ocornut

@fredUmlaut Ping?

ocornut avatar Jun 19 '23 09:06 ocornut

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.

alien-brother avatar Mar 02 '24 22:03 alien-brother