initPaletteon

fun initPaletteon(ctx: InitSilkContext)

Initializes the Paletteon configuration based on values stored in local storage.

This function reads the initial configuration settings for Paletteon from local storage and applies them to the PaletteonConfig instance. It also sets the initial color mode from local storage or defaults to ColorMode.DARK if not found.

Parameters

ctx

The InitSilkContext used to initialize the Paletteon configuration.