buttonStyle property
The button's look, as CNButton's. Null is the platform's own
pop-up button: the bordered NSPopUpButton on macOS, and on iOS a
plain tinted title with the pop-up indicator, as the system's menu
pickers show.
| buttonStyle | macOS 26+ | macOS 12–25 | iOS 26+ |
|---|---|---|---|
| null, gray, bordered | bordered pop-up | bordered pop-up | plain (null), gray, bordered |
| plain | borderless pop-up | borderless pop-up | plain |
| glass, clearGlass | pop-up in a regular or clear NSGlassEffectView |
bordered pop-up | glass, clear glass |
| prominentGlass, prominentClearGlass, filled, borderedProminent | pop-up in an NSGlassEffectView tinted with tint |
bordered pop-up | the same configuration |
| tinted | pop-up in an NSGlassEffectView lightly tinted with tint |
bordered pop-up | tinted |
NSPopUpButton draws its own bezel and ignores the glass bezel and
bezel colours of NSButton, so on macOS 26 the glass styles wrap the
borderless pop-up in AppKit's NSGlassEffectView, as CNButton does
for clear glass.
Implementation
final CNButtonStyle? buttonStyle;