Skip to content

Class Windows95Skin ​

Source: windows95.ts

A skin inspired by the Windows95 interface.

Extends ​

Constructors ​

Constructor ​

new Windows95Skin(options?: Partial<SkinOptions>): Windows95Skin

Parameters ​

options? ​

Partial<SkinOptions> = {}

Returns ​

Windows95Skin

Inherited from ​

Skin.constructor

Properties ​

baseUrl ​

baseUrl: string

Inherited from ​

Skin.baseUrl


systemIcon ​

systemIcon: string

Inherited from ​

Skin.systemIcon


appIcons ​

appIcons: {[key: string]: string; } | undefined

Inherited from ​

Skin.appIcons


appNames ​

appNames: {[key: string]: string; } | undefined

Inherited from ​

Skin.appNames


wallpapers ​

wallpapers: string[]

Inherited from ​

Skin.wallpapers


defaultWallpaper ​

defaultWallpaper: string

Inherited from ​

Skin.defaultWallpaper


fileIcons ​

fileIcons: { generic: string; info?: string; text?: string; code?: string; external?: string; video?: string; audio?: string; }

generic ​

generic: string

info? ​

optional info?: string

text? ​

optional text?: string

code? ​

optional code?: string

external? ​

optional external?: string

video? ​

optional video?: string

audio? ​

optional audio?: string

Inherited from ​

Skin.fileIcons


folderIcons ​

folderIcons: { generic: string; images?: string; text?: string; link?: string; video?: string; audio?: string; }

generic ​

generic: string

images? ​

optional images?: string

text? ​

optional text?: string

optional link?: string

video? ​

optional video?: string

audio? ​

optional audio?: string

Inherited from ​

Skin.folderIcons


loadStyleSheet ​

loadStyleSheet: (() => void) | undefined

Inherited from ​

Skin.loadStyleSheet


defaultTheme ​

defaultTheme: Theme | undefined

Inherited from ​

Skin.defaultTheme


TEMPLATE_KEYS ​

readonly static TEMPLATE_KEYS: { baseUrl: "base"; }

baseUrl ​

readonly baseUrl: "base" = "base"

Template key that will be replaced by Skin.baseUrl.

Inherited from ​

Skin.TEMPLATE_KEYS


DEFAULTS ​

static DEFAULTS: SkinOptions

The default options for this skin.

Overrides ​

Skin.DEFAULTS

Methods ​

resolveAssetUrls() ​

Call Signature ​

resolveAssetUrls<Assets>(assets: Assets): Assets

Type Parameters ​
Assets ​

Assets extends Record<string, string>

Parameters ​
assets ​

Assets

Returns ​

Assets

Inherited from ​

Skin.resolveAssetUrls

Call Signature ​

resolveAssetUrls(assets: string[]): string[]

Parameters ​
assets ​

string[]

Returns ​

string[]

Inherited from ​

Skin.resolveAssetUrls


resolveAssetUrl() ​

resolveAssetUrl(assetUrl: string): string

Parameters ​

assetUrl ​

string

Returns ​

string

Inherited from ​

Skin.resolveAssetUrl


assetUrl() ​

static assetUrl(url: string): string

Prepends Skin.TEMPLATE_KEYS.baseUrl to the URL, if it is a relative URL.

This makes the URL automatically adapt to the value of Skin.baseUrl when it is used as a value of a property in SkinOptions that specifies the URL to an asset (e.g., SkinOptions.systemIcon).

Parameters ​

url ​

string

The URL of the asset.

Returns ​

string

Inherited from ​

Skin.assetUrl

Built by Prozilla