From 8b06ca77f90181a343812f76cd64fd382c5d02a9 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sat, 30 Apr 2022 00:10:04 +0200 Subject: [PATCH] Add documentation for a theme function --- Customizations/AllKnownLayouts.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Customizations/AllKnownLayouts.ts b/Customizations/AllKnownLayouts.ts index 7da19ba75b..e93ae4a06e 100644 --- a/Customizations/AllKnownLayouts.ts +++ b/Customizations/AllKnownLayouts.ts @@ -229,5 +229,16 @@ export class AllKnownLayouts { } 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) + ]) + } }