Home Reference Source
import Theme from '~/models/Theme.js'
public class | source

Theme

Static Member Summary

Static Public Members
public static get
public static get
public static get

Constructor Summary

Public Constructor
public

Creates theme with name

Member Summary

Public Members
public get

Determines if the theme is a dark theme

public get

Name of the theme

Method Summary

Public Methods
public

imageForTheme(name: string, type: string)

Returns path of static picture with a name given theme.

public

Gets path of picture that doesn't depend on theme

Static Public Members

public static get current source

public static get dark source

public static get light source

Public Constructors

public constructor(name: string) source

Creates theme with name

Params:

NameTypeAttributeDescription
name string

Public Members

public get isDark: boolean source

Determines if the theme is a dark theme

Return:

boolean

public get name: string source

Name of the theme

Return:

string

Public Methods

public imageForTheme(name: string, type: string) source

Returns path of static picture with a name given theme.

Params:

NameTypeAttributeDescription
name string
type string

extension of picture

public staticImageForTheme(name: string, type: string) source

Gets path of picture that doesn't depend on theme

Params:

NameTypeAttributeDescription
name string
type string

extension of picture