Commit Graph
3 Commits
Author SHA1 Message Date
Zeenobit ce05b59689 Add Window::scroll_bar_visibility (#5231)
Trivial changelist to allow setting the scroll visibility on `Window`.
2024-10-29 12:35:48 +01:00
Zeenobit e4f209ec50 Expose state override for HeaderResponse (#4200)
I'm trying to create some custom collapsing headers that add additional
buttons inside the header itself. Because of this, I load the
`CollapsingState` in my special widget manually. But because
`HeaderResponse` owns the `Ui` and the `CollapsingState`, there is no
way for me to open/close the collapsing header based on response of the
inner widget.

Initially, I considered just exposing `state` member of
`HeaderResponse`, but that exposes too much of the API at the wrong
time, in my opinion.

So instead I found it'd be safer to just expose the open/close API to
the response itself, and that's what this PR does.
2024-03-21 12:13:32 +01:00
Zeenobit 0c65a9df41 Add body_unindented to HeaderResponse (#1731) 2022-07-03 14:57:42 +02:00