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

Horizontal rule #447

Merged
merged 8 commits into from
Oct 17, 2023
Merged

Conversation

FrostKiwi
Copy link
Contributor

@FrostKiwi FrostKiwi commented Apr 15, 2022

grafik
This widget draws a horizontal rule line, like the classic html rule below this sentence.


This allows one to subdivide spaces a bit nicer. The last parameter of the widget is whether or not to apply rounding. If set to true, it will apply rounding, so the line always appears to be rounded off, the "pill shape".
The height is automatically determined by the current row height.
I didn't want to create a rule.c just for this, so I included it at the end of nuklear_window.c and the definition+documentation in Window section of nuklear.h.

@crazyBaboon
Copy link
Contributor

Thanks @FrostKiwi ! This is looking good

Copy link
Contributor

@RobLoach RobLoach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this idea! Can provide some nice separation across widgets. Think we should make use of it in any of the example projects?

@RobLoach
Copy link
Contributor

RobLoach commented Aug 3, 2023

Actually, could we make use of the horizontal bar in one of the demos?

@yukyduky
Copy link
Contributor

Could we get this merged? I can add an example to the demo if nobody wants to do it.

@FrostKiwi
Copy link
Contributor Author

Actually, could we make use of the horizontal bar in one of the demos?

Adding example to OVERVIEW

Wladislav ヴラド Artsimovich added 2 commits October 17, 2023 11:37
@FrostKiwi
Copy link
Contributor Author

FrostKiwi commented Oct 17, 2023

@RobLoach @yukyduky
Added a showcase to the Overview kitchen-sink demo.
image

@RobLoach RobLoach merged commit a2c5418 into Immediate-Mode-UI:master Oct 17, 2023
1 check passed
@RobLoach
Copy link
Contributor

This is fantastic. Thanks so much, all.

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

Successfully merging this pull request may close these issues.

4 participants