From 4152fbbfeb05ae28d2de70cf10d62c096c9a5802 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 9 Aug 2015 16:40:58 +0100 Subject: [PATCH] Use different wording for unfolding vs folding Apologies for making more work @BramChen! --- core/language/en-GB/Buttons.multids | 6 +++-- core/ui/ViewToolbar/fold.tid | 27 +++++++++++++++------ core/wiki/config/ViewToolbarButtons.multids | 2 ++ 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/core/language/en-GB/Buttons.multids b/core/language/en-GB/Buttons.multids index e5e683db0..01feb8410 100644 --- a/core/language/en-GB/Buttons.multids +++ b/core/language/en-GB/Buttons.multids @@ -30,8 +30,10 @@ ExportTiddler/Caption: export tiddler ExportTiddler/Hint: Export tiddler ExportTiddlers/Caption: export tiddlers ExportTiddlers/Hint: Export tiddlers -Fold/Caption: fold/unfold tiddler -Fold/Hint: Fold/unfold the body of this tiddler +Fold/Caption: fold tiddler +Fold/Hint: Fold the body of this tiddler +Unfold/Caption: unfold tiddler +Unfold/Hint: Unfold the body of this tiddler FoldOthers/Caption: fold other tiddlers FoldOthers/Hint: Fold the bodies of other opened tiddlers FullScreen/Caption: full-screen diff --git a/core/ui/ViewToolbar/fold.tid b/core/ui/ViewToolbar/fold.tid index a68e520a2..f86bb0dd1 100644 --- a/core/ui/ViewToolbar/fold.tid +++ b/core/ui/ViewToolbar/fold.tid @@ -7,17 +7,30 @@ description: {{$:/language/Buttons/Fold/Hint}} $:/state/folded/$(currentTiddler)$ \end +<$reveal type="nomatch" state=<> text="hide" default="show"> <$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<>> <$action-sendmessage $message="tm-fold-tiddler" $param=<> foldedState=<>/> <$list filter="[prefix[yes]]" variable="listItem"> -<$reveal type="nomatch" state=<> text="hide" default="show"> {{$:/core/images/fold-button}} - -<$reveal type="match" state=<> text="hide" default="show"> -{{$:/core/images/unfold-button}} - <$list filter="[prefix[yes]]"> -<$text text={{$:/language/Buttons/Fold/Caption}}/> + +<$text text={{$:/language/Buttons/Fold/Caption}}/> + - \ No newline at end of file + + + +<$reveal type="match" state=<> text="hide" default="show"> +<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<>> +<$action-sendmessage $message="tm-fold-tiddler" $param=<> foldedState=<>/> +<$list filter="[prefix[yes]]" variable="listItem"> +{{$:/core/images/unfold-button}} + +<$list filter="[prefix[yes]]"> + +<$text text={{$:/language/Buttons/Unfold/Caption}}/> + + + + diff --git a/core/wiki/config/ViewToolbarButtons.multids b/core/wiki/config/ViewToolbarButtons.multids index 46ae96ba1..dfa3f027e 100644 --- a/core/wiki/config/ViewToolbarButtons.multids +++ b/core/wiki/config/ViewToolbarButtons.multids @@ -11,3 +11,5 @@ core/ui/Buttons/open-window: hide core/ui/Buttons/permalink: hide core/ui/Buttons/permaview: hide core/ui/Buttons/delete: hide +core/ui/Buttons/fold: hide +core/ui/Buttons/fold-others: hide