Ran
|
Files
303
|
Run time
5s
|
Badge
Embed ▾
README BADGES
|
github
feat: Allow setting custom Layout paddings Introduce a `LayoutOption` concept, and allow setting custom paddings for a Layout. The `BaseLayout` struct implements the default paddings retrieval, to reduce the amount of changes required by project maintainers to comply with the new interface methods. This change uses the Option pattern in case other customizations can be added to Layouts in the future, without changing the public API. Main motivation for this change has been Supersonic needing to copy the entire Vbox/Hbox implementation, just to add custom paddings [1]. Also related to feature request #1031. [1] https://github.com/dweymouth/supersonic/blob/02d4082f3/ui/layouts/hboxcustompadding.go
24235 of 37371 relevant lines covered (64.85%)
777.52 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|