From 666c485fe56339897caab29b92eddc944cce63de Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Fri, 11 Oct 2024 16:59:58 +0200 Subject: [PATCH] add missing language string and position filter button --- core/language/en-GB/Buttons.multids | 1 + core/ui/SideBarSegments/search.tid | 12 ++++++------ themes/tiddlywiki/vanilla/base.tid | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/core/language/en-GB/Buttons.multids b/core/language/en-GB/Buttons.multids index 2fa732fd9..06b918641 100644 --- a/core/language/en-GB/Buttons.multids +++ b/core/language/en-GB/Buttons.multids @@ -187,6 +187,7 @@ Stamp/Caption/New: Add your own Stamp/Hint: Insert a preconfigured snippet of text Stamp/New/Title: Name as shown in menu Stamp/New/Text: Text of snippet. (Remember to add a descriptive title in the caption field). +StoryFilter/Hint: Filter the story river Strikethrough/Caption: strikethrough Strikethrough/Hint: Apply strikethrough formatting to selection Subscript/Caption: subscript diff --git a/core/ui/SideBarSegments/search.tid b/core/ui/SideBarSegments/search.tid index 8e0193cc0..dd9872a6e 100644 --- a/core/ui/SideBarSegments/search.tid +++ b/core/ui/SideBarSegments/search.tid @@ -62,12 +62,7 @@ tags: $:/tags/SideBarSegment -<$reveal state=<> type="nomatch" text=""> -<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible"> -<> -{{$:/core/images/advanced-search-button}} - -<$button tooltip="filter" class={{{ [{$:/state/story-river/filter}match[yes]then[tc-selected]] tc-btn-invisible +[join[ ]] }}}> +<$button tooltip={{$:/language/Buttons/StoryFilter/Hint}} class={{{ [{$:/state/story-river/filter}match[yes]then[tc-selected]] tc-filter-story-btn tc-btn-invisible +[join[ ]] }}}> <%if [{$:/state/story-river/filter}!match[yes]] %> <$action-setfield $tiddler="$:/state/story-river/filter" text="yes"/> <% else %> @@ -75,6 +70,11 @@ tags: $:/tags/SideBarSegment <% endif %> {{$:/core/images/github}} +<$reveal state=<> type="nomatch" text=""> +<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible"> +<> +{{$:/core/images/advanced-search-button}} + <$button class="tc-btn-invisible"> <><$action-sendmessage $message="tm-focus-selector" $param=".tc-search input"/> {{$:/core/images/close-button}} diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index c13b69f9b..0d086c7aa 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -1275,7 +1275,8 @@ button.tc-btn-invisible.tc-remove-tag-button { } .tc-tiddler-controls button.tc-selected svg, -.tc-page-controls button.tc-selected svg { +.tc-page-controls button.tc-selected svg, +button.tc-filter-story-btn.tc-selected svg { fill: <>; }