Feedback
Add TextColour and HasTextColour to Button
- Status
- Fixed
- Fixed in
- v26.10.2
- Area
- desktop
- Source discussion
- https://forum.objo.dev/d/1290-feature-request-colors-in-buttons
- Last updated
- 2026-10-12
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Buttons can take a custom background colour (shipping in the next release) and the caption automatically switches to black or white for contrast. Some designs need direct control of the caption colour instead — for example keeping a brand colour on the text, or a translucent button with coloured text on a photo background.
Add TextColour and HasTextColour to Button, matching the existing BackgroundColour/HasBackgroundColour convention:
- Assigning
TextColourenables the override and paints the caption (and symbol) in that colour. HasTextColour = Falserestores the default appearance without discarding the stored colour.- An authored text colour takes precedence over the automatic contrast colour, and keeps its exact value across hover and pressed states on macOS, Windows, and Linux.
- With no text colour and no background colour authored, the button continues to follow the light/dark theme exactly as before.