• Back to Glue42 Enterprise Docs
Glue42 enterprise documentation

Reference Documentation

  • Back to Glue42 Enterprise Docs
Press/
  • Glue
  • Application Preferences
  • AppManager
  • Channels
  • Connection
  • Cookies
  • Displays
  • Hotkeys
  • Intents
  • Interop
  • Layouts
  • Logger
  • Metrics
  • Notifications
  • Pub Sub
  • Shared Contexts
  • Themes
  • Windows
  • Workspaces

Themes

5.19.0

Glue42 Enterprise has two built-in themes - Day and Night. You can control the themes programmatically by using the Themes API. The themes can also be customized and new themes can be added through the themes.json configuration file.

The Themes API is accessible through the glue.themes object.

APIobject

Description

Themes API

Available since version Glue42 3.10

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