Skip to content
Myr

docs: fix background color detection example in doc comment

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent fc707bb · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:color.go+2 added-2 removed
52 unmodified lines
53// for style definitions. For that you'll want to call54// [BackgroundColorMsg.IsDark] to determine if the color is dark or light. For55// example:56//57// func (m Model) Init() (Model, Cmd) {58// return m, RequestBackgroundColor()57// func (m Model) Init() Cmd {58// return RequestBackgroundColor()59// }60//61// func (m Model) Update(msg Msg) (Model, Cmd) {62// switch msg := msg.(type) {
29 unmodified lines