From f4a3cb3c001ce6b70cbca8ebbf7284277cfcbc18 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 16 Aug 2024 18:26:13 -0400 Subject: [PATCH] LabelSwatch's label is not selectable, to match LabelCheckbox --- labelswatch.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/labelswatch.go b/labelswatch.go index f70d7bc..b1f2d5e 100644 --- a/labelswatch.go +++ b/labelswatch.go @@ -24,6 +24,8 @@ func NewLabelSwatch (value color.Color, text string) *LabelSwatch { box.SetRole(tomo.R("objects", "LabelSwatch")) box.swatch.label = text box.label.SetAttr(tomo.AAlign(tomo.AlignStart, tomo.AlignMiddle)) + box.label.SetSelectable(false) + box.label.SetFocusable(false) box.Add(box.swatch) box.Add(box.label) box.SetAttr(tomo.ALayout(layouts.Row { false, true }))