• Back to Glue42 Enterprise Docs
Glue42 enterprise documentation

Reference Documentation

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

Themes

5.23.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

Retrieves the current theme.

listmethod

Signature

() => Promise<Theme[]>

Description

Retrieves a list of the available themes.

onChangedmethod

Signature

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

Description

Notifies when the theme is changed.

Parameters

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

Callback function for handling the event.

selectmethod

Signature

(name: string) => Promise<void>

Description

Selects a new theme.

Parameters

Name Type Required Description
name string

The name of the theme to select.

Themeobject

Description

Describes a theme.

Properties

Property Type Default Required Description
displayName string

Display name of the theme.

name string

Name of the theme.

  • © 2023 Glue42
  • Home
  • Privacy policy
  • Contact Sales
  • Glue42.com
  • Tick42.com
  • Overview
  • API
  • Theme
Navigate
Go