class

MPDUI::ToggleButton

Inherits Reference < Object

A custom toggle button built on UIng::Area. Renders as a fixed-size rounded rect with a centered emoji/text label. Active state is indicated by a highlighted background.

Constants

BG_ACTIVE = {0.18, 0.45, 0.72, 1.0}
BG_HOVER = {0.30, 0.30, 0.30, 1.0}
BG_NORMAL = {0.22, 0.22, 0.22, 1.0}

bg colors (r,g,b,a)

BORDER = {0.45, 0.45, 0.45, 1.0}
SIZE = 36

Constructors

new(label : String, active : Bool = false)
Source

Instance methods

active
Source
active=(value : Bool)
Source
area
Source
on_toggled
Source