diff --git a/ui/button.go b/ui/button.go index aca5cf8..f22134e 100644 --- a/ui/button.go +++ b/ui/button.go @@ -89,7 +89,6 @@ func (b *Button) Handle(ctx Context, e Event) bool { result := b.ControlBase.HandleNotify(ctx, e, b) if b.over { if b.Disabled { - ctx.Renderer().SetMouseCursor(MouseCursorNotAllowed) return true } ctx.Renderer().SetMouseCursor(MouseCursorPointer) @@ -165,7 +164,7 @@ func (b *Button) textColor(p *Palette) color.Color { case ButtonTypeContained: return p.TextOnDisabled } - return p.Disabled + return b.disabledColor(p) } if b.Font.Color != nil { return b.Font.Color diff --git a/ui/checkbox.go b/ui/checkbox.go index 5a8f4c1..50d2bfb 100644 --- a/ui/checkbox.go +++ b/ui/checkbox.go @@ -81,7 +81,6 @@ func (c *Checkbox) Handle(ctx Context, e Event) bool { result := c.ControlBase.Handle(ctx, e) if c.over { if c.Disabled { - ctx.Renderer().SetMouseCursor(MouseCursorNotAllowed) return true } ctx.Renderer().SetMouseCursor(MouseCursorPointer) diff --git a/ui/slider.go b/ui/slider.go index 0db1194..89973d4 100644 --- a/ui/slider.go +++ b/ui/slider.go @@ -166,7 +166,6 @@ func (h *sliderHandle) Handle(ctx Context, e Event) bool { h.ControlBase.Handle(ctx, e) if h.IsOver() { if h.Disabled { - ctx.Renderer().SetMouseCursor(MouseCursorNotAllowed) return true } ctx.Renderer().SetMouseCursor(MouseCursorPointer) diff --git a/ui/textbox.go b/ui/textbox.go index e174aad..14d2c0b 100644 --- a/ui/textbox.go +++ b/ui/textbox.go @@ -133,7 +133,6 @@ func (b *TextBox) Handle(ctx Context, e Event) bool { if b.over { if b.Disabled { - ctx.Renderer().SetMouseCursor(MouseCursorNotAllowed) return true } ctx.Renderer().SetMouseCursor(MouseCursorText)