Options
All
  • Public
  • Public/Protected
  • All
Menu

JMap.Application.UI.Theme

You can manage the UI theme here.

Index

Functions

Functions

isDark

  • isDark(): boolean
  • JMap.Application.UI.Theme.isDark

    Returns true if the theme is currently dark.

    example
    
    // true or false
    JMap.Application.UI.Theme.isDark()

    Returns boolean

setDark

  • setDark(isDark: boolean): void
  • JMap.Application.UI.Theme.setDark

    Changes the UI color theme in dark or light.

    example
    
    // make the theme dark
    JMap.Application.UI.Theme.setDark()
    
    // make the theme dark
    JMap.Application.UI.Theme.setDark(true)
    
    // make the theme light
    JMap.Application.UI.Theme.setDark(false)

    Parameters

    • isDark: boolean

      if true make the theme dark, else light

    Returns void