kernl API
    Preparing search index...

    Interface ThemeApi

    What the shell may do with the theme domain: tell the applets that are open the colours changed. The publish is kehto's own, so the theme an applet is answered with and the one it is pushed are the same, and an applet opened after the change is told the new palette by theme.get (D-064).

    interface ThemeApi {
        publish(theme: Theme): void;
    }
    Index
    • Tell every applet that holds theme:read the colours changed, and answer theme.get with them from now on. An applet without the capability, or no longer bound, is not told.

      Parameters

      • theme: Theme

        The palette in force; a partial one falls back to kehto's default.

      Returns void

      kernl.theme.publish({ colors: { background: '#f5f1e8', text: '#15171b', primary: '#9a5b00' } });