Manages the change between ColorScheme Objects

Constructors

Properties

current: ColorScheme
definitions: Colors = window.definitions.colors
svgGenerationStrokeColor: string = ...
darkMode: DarkMode = ...
lightMode: LightMode = ...

Methods

  • Parameters

    Returns void

  • Returns void

  • Returns void

  • Pass in functions that need conditional execution based on the current color scheme. The current color scheme is saved in ColorManager.current. This color scheme is used as reference. If ColorScheme.bsColorScheme is "dark" darkModeFn is executed, else lightModeFn.

    Parameters

    Returns "light" | "dark"

  • updates the bootstrap color scheme class attribute in an element

    Parameters

    • element: HTMLElement

      {HTMLElement}

    • field: "table" | "bg" | "navbar" = "bg"

      {"bg" | "table" | "navbar"} bootstrap class that can take a color scheme as class attribute

    Returns void