Skip to main content

Dark2Theme

geovisto-mapReadme | API


geovisto-map / Dark2Theme

Class: Dark2Theme

This class defines a custom theme.

Author

Jiri Hynek

Author

Jakub Kachlik - advanced color model

Extends

Implements

Constructors

new Dark2Theme()

new Dark2Theme(): Dark2Theme

It initializes the dark theme.

Returns

Dark2Theme

Overrides

BasicTheme.constructor

Source

tools/themes/model/internal/theme/custom/dark2/Dark2Theme.ts:20

Methods

getBackgroundColors()

getBackgroundColors(): object

It returns primary, secondary and disabled background colors

Returns

object

disabled

disabled: string

primary

primary: string

secondary

secondary: string

Implementation of

IMapTheme.getBackgroundColors

Overrides

BasicTheme.getBackgroundColors

Source

tools/themes/model/internal/theme/custom/dark2/Dark2Theme.ts:70


getBaseMap()

getBaseMap(): IMapTilesModel

It returns the preferred base map.

Returns

IMapTilesModel

Implementation of

IMapTheme.getBaseMap

Overrides

BasicTheme.getBaseMap

Source

tools/themes/model/internal/theme/custom/dark2/Dark2Theme.ts:41


getDataColors()

getDataColors(): object

It returns 4 primary colors monochrom - color used as color scale by changing its intensity lineColor – easy visible color with high contrast triadic1,2,3 - 3 triadic colors scheme (triadic not required but colors contrast recommended)

Returns

object

lineColor

lineColor: string

triadic1

triadic1: string

triadic2

triadic2: string

triadic3

triadic3: string

Implementation of

IMapTheme.getDataColors

Overrides

BasicTheme.getDataColors

Source

tools/themes/model/internal/theme/custom/dark2/Dark2Theme.ts:93


getFont()

getFont(): string

It returns theme font

Returns

string

Implementation of

IMapTheme.getFont

Overrides

BasicTheme.getFont

Source

tools/themes/model/internal/theme/custom/dark2/Dark2Theme.ts:50


getForegroundColors()

getForegroundColors(): object

It returns primary, secondary and disabled foreground colors used for text color

Returns

object

disabled

disabled: string

primary

primary: string

secondary

secondary: string

Implementation of

IMapTheme.getForegroundColors

Overrides

BasicTheme.getForegroundColors

Source

tools/themes/model/internal/theme/custom/dark2/Dark2Theme.ts:58


getHighlightColor()

getHighlightColor(): object

It returns highlight colors for selected, highlighted and deepasized (not selected or highlighted) objects

Returns

object

deempasize

deempasize: string

highlight

highlight: string

selected

selected: string

Implementation of

IMapTheme.getHighlightColor

Inherited from

BasicTheme.getHighlightColor

Source

tools/themes/model/internal/theme/basic/BasicTheme.ts:87


getHoverColor()

getHoverColor(): string

It returns color used for highlight hovered item

Returns

string

Implementation of

IMapTheme.getHoverColor

Overrides

BasicTheme.getHoverColor

Source

tools/themes/model/internal/theme/custom/dark2/Dark2Theme.ts:82


getName()

getName(): string

It returns the theme type.

Returns

string

Implementation of

IMapTheme.getName

Overrides

BasicTheme.getName

Source

tools/themes/model/internal/theme/custom/dark2/Dark2Theme.ts:27


getTextInputColor()

getTextInputColor(): object

It returns text input colors matchBg,matchFg- colors for match cases autocomplete notMatchBg, notMatchFg- colors for not matching cases autocomplete placeholder- color of placeholder hover- color when hover object

Returns

object

hover

hover: string

matchBg

matchBg: string

matchFg

matchFg: string

notMatchBg

notMatchBg: string

notMatchFg

notMatchFg: string

placeholder

placeholder: string

Implementation of

IMapTheme.getTextInputColor

Overrides

BasicTheme.getTextInputColor

Source

tools/themes/model/internal/theme/custom/dark2/Dark2Theme.ts:110


isDark()

isDark(): boolean

This theme prefers dark colors.

Returns

boolean

Implementation of

IMapTheme.isDark

Overrides

BasicTheme.isDark

Source

tools/themes/model/internal/theme/custom/dark2/Dark2Theme.ts:34


toString()

toString(): string

The string representation is equal to the name of the map domain.

Returns

string

Inherited from

BasicTheme.toString

Source

model/internal/domain/abstract/AbstractMapDomain.ts:18