diff --git a/core/images/storyview-cecily.tid b/core/images/storyview-cecily.tid new file mode 100644 index 000000000..6b8d6f222 --- /dev/null +++ b/core/images/storyview-cecily.tid @@ -0,0 +1,13 @@ +title: $:/core/images/storyview-cecily +tags: $:/tags/Image + + + + + + + + + + + \ No newline at end of file diff --git a/core/images/storyview-classic.tid b/core/images/storyview-classic.tid new file mode 100644 index 000000000..4e3be0197 --- /dev/null +++ b/core/images/storyview-classic.tid @@ -0,0 +1,11 @@ +title: $:/core/images/storyview-classic +tags: $:/tags/Image + + + + + + + + + \ No newline at end of file diff --git a/core/images/storyview-pop.tid b/core/images/storyview-pop.tid new file mode 100644 index 000000000..e5c41aef3 --- /dev/null +++ b/core/images/storyview-pop.tid @@ -0,0 +1,12 @@ +title: $:/core/images/storyview-pop +tags: $:/tags/Image + + + + + + + + + + \ No newline at end of file diff --git a/core/images/storyview-zoomin.tid b/core/images/storyview-zoomin.tid new file mode 100644 index 000000000..2f76f0513 --- /dev/null +++ b/core/images/storyview-zoomin.tid @@ -0,0 +1,9 @@ +title: $:/core/images/storyview-zoomin +tags: $:/tags/Image + + + + + + + \ No newline at end of file diff --git a/core/language/en-GB/Buttons.multids b/core/language/en-GB/Buttons.multids index 8bad91846..61f0359d9 100644 --- a/core/language/en-GB/Buttons.multids +++ b/core/language/en-GB/Buttons.multids @@ -44,6 +44,8 @@ Save/Caption: save Save/Hint: Save this tiddler SaveWiki/Caption: save changes SaveWiki/Hint: Save changes +StoryView/Caption: storyview +StoryView/Hint: Choose the story visualisation HideSideBar/Caption: hide sidebar HideSideBar/Hint: Hide sidebar ShowSideBar/Caption: show sidebar diff --git a/core/ui/PageControls/storyview.tid b/core/ui/PageControls/storyview.tid new file mode 100644 index 000000000..f30db4648 --- /dev/null +++ b/core/ui/PageControls/storyview.tid @@ -0,0 +1,27 @@ +title: $:/core/ui/Buttons/storyview +tags: $:/tags/PageControls +caption: {{$:/core/images/storyview-classic}} {{$:/language/Buttons/StoryView/Caption}} +description: {{$:/language/Buttons/StoryView/Hint}} + +\define icon() +$:/core/images/storyview-$(storyview)$ +\end +<$button popup=<> title={{$:/language/Buttons/StoryView/Hint}} aria-label={{$:/language/Buttons/StoryView/Caption}} class=<> selectedClass="tw-selected"> +<$list filter="[prefix[yes]]"> +<$set name="storyview" value={{$:/view}}> +<$transclude tiddler=<>/> + + +<$list filter="[prefix[yes]]"> +<$text text={{$:/language/Buttons/StoryView/Caption}}/> + + +<$reveal state=<> type="popup" position="below" animate="yes"> +
+<$linkcatcher to="$:/view"> +<$list filter="[storyviews[]]" variable="storyview"> +<$link to=<>><$transclude tiddler=<>/> <$text text=<>/> + + +
+ diff --git a/core/wiki/config/PageControlButtons.multids b/core/wiki/config/PageControlButtons.multids index 14aca5da8..4c23178ed 100644 --- a/core/wiki/config/PageControlButtons.multids +++ b/core/wiki/config/PageControlButtons.multids @@ -7,3 +7,4 @@ core/ui/Buttons/home: hide core/ui/Buttons/language: hide core/ui/Buttons/more-page-actions: hide core/ui/Buttons/permaview: hide +core/ui/Buttons/storyview: hide diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index c2d43babc..cba514c21 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -860,7 +860,7 @@ canvas.tw-edit-bitmapeditor { line-height: 1.4; } -.tw-drop-down button svg { +.tw-drop-down button svg, .tw-drop-down a svg { fill: <>; }