~whereswaldon/sprig

6fb7bdf12d3c634bf06438b8b9fe92026fa52025 — Chris Waldon 8 months ago 30a586f v0.0.16-rc1
feat: make collapsed children counter easier to read

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
1 files changed, 11 insertions(+), 1 deletions(-)

M widget/theme/reply.go
M widget/theme/reply.go => widget/theme/reply.go +11 -1
@@ 213,7 213,17 @@ func (r ReplyStyle) Layout(gtx layout.Context) layout.Dimensions {
						return D{}
					}
					return layout.Center.Layout(gtx, func(gtx C) D {
						return r.AnchorText.Layout(gtx)
						return layout.Stack{}.Layout(gtx,
							layout.Expanded(func(gtx C) D {
								max := layout.FPt(gtx.Constraints.Min)
								color := r.Background
								color.A = 0xff
								return Rect{Color: color, Size: max, Radii: radii}.Layout(gtx)
							}),
							layout.Stacked(func(gtx C) D {
								return layout.UniformInset(unit.Dp(4)).Layout(gtx, r.AnchorText.Layout)
							}),
						)
					})
				}),
			)