From 34ae1387a5db7b2015e3e6edf4b979912a91d40b Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 1 Dec 2013 21:57:19 +0000 Subject: [PATCH] Expand the theme switcher in the control panel --- core/ui/SideBar/Tools.tid | 2 +- core/wiki/minithemeswitcher.tid | 8 ++++++++ core/wiki/themeswitcher.tid | 6 +++--- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 core/wiki/minithemeswitcher.tid diff --git a/core/ui/SideBar/Tools.tid b/core/ui/SideBar/Tools.tid index b429a689d..1c8febe88 100644 --- a/core/ui/SideBar/Tools.tid +++ b/core/ui/SideBar/Tools.tid @@ -6,7 +6,7 @@ caption: Tools --- -{{$:/snippets/themeswitcher}} +{{$:/snippets/minithemeswitcher}} --- diff --git a/core/wiki/minithemeswitcher.tid b/core/wiki/minithemeswitcher.tid new file mode 100644 index 000000000..17111ee5c --- /dev/null +++ b/core/wiki/minithemeswitcher.tid @@ -0,0 +1,8 @@ +title: $:/snippets/minithemeswitcher + +Current theme: <$link to={{$:/theme}}><$view tiddler={{$:/theme}} field="name"/> + +<$linkcatcher to="$:/theme"> +<$list filter="[plugin-type[theme]sort[title]]">
<$reveal state="$:/theme" type="match" text={{!!title}}>•<$reveal state="$:/theme" type="nomatch" text={{!!title}}>  <$link to={{!!title}}><$view field="name" format="text"/>
+ + \ No newline at end of file diff --git a/core/wiki/themeswitcher.tid b/core/wiki/themeswitcher.tid index 977e2bebf..d3bd79e78 100644 --- a/core/wiki/themeswitcher.tid +++ b/core/wiki/themeswitcher.tid @@ -1,8 +1,8 @@ title: $:/snippets/themeswitcher -Current theme: {{$:/theme}} +Current theme: <$link to={{$:/theme}}><$view tiddler={{$:/theme}} field="name"/> <$linkcatcher to="$:/theme"> -<$list filter="[plugin-type[theme]sort[title]]">
<$reveal state="$:/theme" type="match" text={{!!title}}>•<$reveal state="$:/theme" type="nomatch" text={{!!title}}>  <$link to={{!!title}}><$view field="name" format="text"/>
+<$list filter="[plugin-type[theme]sort[title]]">
<$reveal state="$:/theme" type="match" text={{!!title}}>•<$reveal state="$:/theme" type="nomatch" text={{!!title}}>  <$link to={{!!title}}>''<$view field="name" format="text"/>'' <$view field="description" format="text"/>
- + \ No newline at end of file