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

Open
opened 2022-04-23 11:06:28 +00:00 by fredUmlaut · 6 comments
fredUmlaut commented 2022-04-23 11:06:28 +00:00 (Migrated from github.com)

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.

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.
ocornut commented 2023-05-25 13:42:03 +00:00 (Migrated from github.com)

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

Thanks!

Hello, For reference could you share the font you used + font size + a screenshot of you case? Thanks!
ocornut commented 2023-05-25 13:42:03 +00:00 (Migrated from github.com)

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

Thanks!

Hello, For reference could you share the font you used + font size + a screenshot of you case? Thanks!
ocornut commented 2023-06-19 09:34:47 +00:00 (Migrated from github.com)

@fredUmlaut Ping?

@fredUmlaut Ping?
ocornut commented 2023-06-19 09:34:47 +00:00 (Migrated from github.com)

@fredUmlaut Ping?

@fredUmlaut Ping?
alien-brother commented 2024-03-02 22:22:25 +00:00 (Migrated from github.com)

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.

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](https://github.com/ocornut/imgui/assets/157424801/032edfaa-d053-49b4-bebe-de488557843c) 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.
ocornut commented 2026-10-26 13:24:01 +00:00 (Migrated from github.com)

cc this is also related to #8857 which we've been working on.

cc this is also related to #8857 which we've been working on.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#5233
No description provided.