Customizing the Action Bar
The PlayAI SDK offers a styling system that enables you to tailor the appearance of the action bar to align with your game's aesthetic. This customization is facilitated through the optional playAIStyles
parameter during the initialization of the PlayAI instance.
The playAIStyles
parameter is an object that can encompass properties for actionBar
, playAIIcon
, recording
, and onboardingButton
. Each of these properties is an object that delineates the styles for the corresponding element.
All properties within the playAIStyles
object are optional. If a property is not specified, the SDK will apply the default styles to the corresponding element.
You can specify the following properties:
Here's an example of how you can customize the action bar partially:
In this example, we've customized the background color, text color, and border radius of the action bar. We've also customized the color of the PlayAI icon and its hover state. All other styles will default to the SDK's predefined values.
Last updated