MCPcopy Create free account
hub / github.com/B33pBeeps/redthread / BgColor

Method BgColor

internal/app/notes.go:263–272  ·  view source on GitHub ↗

BgColor returns the solid fill color when one is set and parses; otherwise (nil, false) — meaning transparent (terminal shows through).

()

Source from the content-addressed store, hash-verified

261// BgColor returns the solid fill color when one is set and parses;
262// otherwise (nil, false) — meaning transparent (terminal shows through).
263func (w *Workspace) BgColor() (*RGB, bool) {
264 if w.Background.Color == "" {
265 return nil, false
266 }
267 col, ok := ParseHexColor(w.Background.Color)
268 if !ok {
269 return nil, false
270 }
271 return &col, true
272}
273
274// ActiveBoard returns the currently-focused board, never nil while the
275// workspace has at least one board.

Callers 3

newCanvasMethod · 0.80
ViewMethod · 0.80

Calls 1

ParseHexColorFunction · 0.85

Tested by 1