Add documentation for a theme function
This commit is contained in:
parent
684907a61b
commit
8b06ca77f9
1 changed files with 11 additions and 0 deletions
|
@ -229,5 +229,16 @@ export class AllKnownLayouts {
|
||||||
}
|
}
|
||||||
return dict;
|
return dict;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static GenerateDocumentationForTheme(theme: LayoutConfig): BaseUIElement{
|
||||||
|
return new Combine([
|
||||||
|
new Title(new Combine([theme.title, "(",theme.id+")"]), 2),
|
||||||
|
theme.description,
|
||||||
|
"This theme contains the following layers:",
|
||||||
|
new List(theme.layers.map(l => l.id)),
|
||||||
|
"Available languages:",
|
||||||
|
new List(theme.language)
|
||||||
|
])
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue