• Back to Glue42 Core Docs
Glue42 core documentation

Reference Documentation

  • Back to Glue42 Core Docs
Press/
  • Glue42 Web
  • AppManager
  • Channels
  • Intents
  • Interop
  • Layouts
  • Notifications
  • Shared Contexts
  • Themes
  • Windows
  • Workspaces

Themes

2.20.0

Very helpful Themes description

APIobject

Methods

  • getCurrent
  • list
  • onChanged
  • select

getCurrentmethod

Signature

() => Promise<Theme>

Description

Returns the current theme.

listmethod

Signature

() => Promise<Theme[]>

Description

Returns list of available themes

onChangedmethod

Signature

(callback: (theme: Theme) => any) => void

Description

Notifies you when the theme is changed.

Parameters

Name Type Required Description
callback (theme: Theme) => any

Callback to handle the event. Receives the theme object as an argument.

selectmethod

Signature

(name: string) => Promise<void>

Description

Selects a new theme

Parameters

Name Type Required Description
name string

The name of the theme

Themeobject

Properties

Property Type Default Required Description
displayName string
name string
  • © 2023 Glue42
  • Home
  • Privacy policy
  • Contact Sales
  • Glue42.com
  • Tick42.com
  • Overview
  • API
  • Theme
Navigate
Go