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

API Reference Documentation

  • Back to io.Connect Browser docs
Press/
  • io.Connect Browser
  • App Management
  • App Preferences
  • Channels
  • Intents
  • Interop
  • Layouts
  • Notifications
  • Search
  • Shared Contexts
  • Themes
  • Widget
  • Windows
  • Workspaces

Themes

3.5.9

io.Connect Browser 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

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
  • Home
  • Privacy policy
  • Contact Us
  • interop.io
  • Overview
  • API
  • Theme
Navigate
Go