theme/fluent/scrollbar.go
Functions
func PaintScrollbar
func (p ScrollbarPainter) PaintScrollbar(canvas widget.Canvas, ps scrollview.PaintState) {
if ps.Bounds.IsEmpty() {
return
}
colors := ps.ColorScheme
if colors == (scrollview.ScrollbarColorScheme{}) {
colors = p.resolveColors()
}
// Override paint state with resolved colors and delegate.
ps.ColorScheme = colors
scrollview.DefaultPainter{}.PaintScrollbar(canvas, ps)
}
Structs
type ScrollbarPainter struct
ScrollbarPainter renders scrollbars using Fluent Design tokens.
Fluent scrollbars are thin and subtle, appearing on hover.
If Theme is nil, ScrollbarPainter falls back to the default Fluent scrollbar palette.
type ScrollbarPainter struct {
Theme *Theme // nil uses default Fluent fallback
}
PaintScrollbar renders scrollbars according to Fluent Design specifications.