Skip to content
pixi-silk
GitHub repository
Interface

ButtonTheme

import type { ButtonTheme } from 'pixi-silk/ui/button';

Colours of a SilkButton (any Pixi colour).

Properties#

PropertyTypeDescriptionDefined in
accentstring | numberHover outline and long-press progress ring.ui/SilkButton.ts:27
contentstring | numberTint of the label and icon.ui/SilkButton.ts:23
contentDisabledstring | numberTint of the label and icon when disabled.ui/SilkButton.ts:25
fillstring | numberBody colour at rest.ui/SilkButton.ts:15
fillDisabledstring | numberBody colour when state.enabled is false.ui/SilkButton.ts:21
fillHoverstring | numberBody colour under a hovering mouse or pen. Touch never hovers.ui/SilkButton.ts:17
fillPressstring | numberBody colour while pressed.ui/SilkButton.ts:19
shadowstring | numberSoft drop shadow under the body.ui/SilkButton.ts:29