mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-01 05:10:41 +00:00
Arrows in ArrowButtons have no StyleVar to resize them. #5233
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#5233
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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!
@fredUmlaut Ping?
@fredUmlaut Ping?
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.

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.
cc this is also related to #8857 which we've been working on.