• Back to io.Connect Desktop docs
io.Connect Desktop Documentation

API Reference Documentation

  • Back to io.Connect Desktop docs
Press/
  • io.Connect Desktop
  • App Management
  • App Preferences
  • Channels
  • Cookies
  • Displays
  • Hotkeys
  • Intents
  • Interception
  • Interop
  • Layouts
  • Logger
  • Metrics
  • Notifications
  • Pub Sub
  • Search
  • Shared Contexts
  • Themes
  • Windows
  • Workspaces

Themes

6.13.0

io.Connect Desktop has two built-in themes - Day and Night. You can control the themes programmatically by using the Themes API.

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

APIobject

Description

Themes API.

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.

  • Home
  • Privacy policy
  • Contact Us
  • interop.io
  • Overview
  • API
  • Theme
Navigate
Go