Add documentation for a theme function

This commit is contained in:
pietervdvn 2022-04-30 00:10:04 +02:00
parent 684907a61b
commit 8b06ca77f9

View file

@ -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)
])
}
} }