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

Make RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT customizable at runtime #436

Open
jmrico01 opened this issue Oct 27, 2024 · 1 comment
Open

Make RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT customizable at runtime #436

jmrico01 opened this issue Oct 27, 2024 · 1 comment

Comments

@jmrico01
Copy link

jmrico01 commented Oct 27, 2024

I was creating a GuiPanel with a default font size of >24, and I noticed that everything scaled nicely except the panel header, where the text is overly crammed. I poked around the implementation and noticed that this is controlled by #define RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT, which is only customizable at build time (also used in GuiWindowBox, GuiScrollPanel, etc). I'm currently scaling the default font size based on the window resolution, so it would be nice to modify this status bar height at runtime.

You can see the text Menu appears very crammed here:
image

Maybe this could be made into a raygui style setting, accessible via GuiGetStyle/GuiSetStyle?

@raysan5
Copy link
Owner

raysan5 commented Dec 12, 2024

@jmrico01 there are actually several defined values that should be reviewed and probably exposed as style options...

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

No branches or pull requests

2 participants