Class MacOsSkin
Source: macOs.ts
A skin inspired by the MacOS interface.
Extends
Constructors
Constructor
new MacOsSkin(
options?:Partial<SkinOptions>):MacOsSkin
Parameters
options?
Partial<SkinOptions> = {}
Returns
Inherited from
Properties
baseUrl
baseUrl:
string
Inherited from
systemIcon
systemIcon:
string
Inherited from
appIcons
appIcons: {[
key:string]:string; } |undefined
Inherited from
appNames
appNames: {[
key:string]:string; } |undefined
Inherited from
wallpapers
wallpapers:
string[]
Inherited from
defaultWallpaper
defaultWallpaper:
string
Inherited from
fileIcons
fileIcons: {
generic:string;info?:string;text?:string;code?:string;external?:string;video?:string;audio?:string; }
generic
generic:
string
info?
optionalinfo?:string
text?
optionaltext?:string
code?
optionalcode?:string
external?
optionalexternal?:string
video?
optionalvideo?:string
audio?
optionalaudio?:string
Inherited from
folderIcons
folderIcons: {
generic:string;images?:string;text?:string;link?:string;video?:string;audio?:string; }
generic
generic:
string
images?
optionalimages?:string
text?
optionaltext?:string
link?
optionallink?:string
video?
optionalvideo?:string
audio?
optionalaudio?:string
Inherited from
loadStyleSheet
loadStyleSheet: (() =>
void) |undefined
Inherited from
defaultTheme
defaultTheme:
Theme|undefined
Inherited from
TEMPLATE_KEYS
readonlystaticTEMPLATE_KEYS: {baseUrl:"base"; }
baseUrl
readonlybaseUrl:"base"="base"
Template key that will be replaced by Skin.baseUrl.
Inherited from
DEFAULTS
staticDEFAULTS:SkinOptions
The default options for this skin.
Overrides
Methods
resolveAssetUrls()
Call Signature
resolveAssetUrls<
Assets>(assets:Assets):Assets
Type Parameters
Assets
Assets extends Record<string, string>
Parameters
assets
Assets
Returns
Assets
Inherited from
Call Signature
resolveAssetUrls(
assets:string[]):string[]
Parameters
assets
string[]
Returns
string[]
Inherited from
resolveAssetUrl()
resolveAssetUrl(
assetUrl:string):string
Parameters
assetUrl
string
Returns
string
Inherited from
assetUrl()
staticassetUrl(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