1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-06 01:56:20 +00:00

change icon if variables are exlcuded from search

This commit is contained in:
pmario 2024-04-29 15:07:12 +02:00
parent f2da5963a5
commit bfb9e642f8
2 changed files with 11 additions and 3 deletions

View File

@ -310,7 +310,11 @@ tags: $:/tags/Global
> >
<$button tooltip={{$:/language/Search/Variables/Exclude/Show}} class="tc-dv-btn tc-btn-invisible"> <$button tooltip={{$:/language/Search/Variables/Exclude/Show}} class="tc-dv-btn tc-btn-invisible">
<$action-setfield $tiddler=<<tf.dv-foldedState>> $field=text $value="show"/> <$action-setfield $tiddler=<<tf.dv-foldedState>> $field=text $value="show"/>
<% if [<tf.dv-getExcludeText>!is[blank]]%>
{{$:/core/images/star-filled}}
<% else %>
{{$:/core/images/right-arrow}} {{$:/core/images/right-arrow}}
<% endif %>
</$button> </$button>
</$reveal> </$reveal>
<$reveal stateTitle=<<tf.dv-foldedState>> <$reveal stateTitle=<<tf.dv-foldedState>>
@ -323,7 +327,11 @@ tags: $:/tags/Global
> >
<$button tooltip={{$:/language/Search/Variables/Exclude/Hide}} class="tc-dv-btn tc-btn-invisible"> <$button tooltip={{$:/language/Search/Variables/Exclude/Hide}} class="tc-dv-btn tc-btn-invisible">
<$action-setfield $tiddler=<<tf.dv-foldedState>> $field=text $value="hide"/> <$action-setfield $tiddler=<<tf.dv-foldedState>> $field=text $value="hide"/>
<% if [<tf.dv-getExcludeText>!is[blank]]%>
{{$:/core/images/star-filled}}
<% else %>
{{$:/core/images/up-arrow}} {{$:/core/images/up-arrow}}
<% endif %>
</$button> </$button>
</$reveal> </$reveal>
<<dv-search-input-box>> <<dv-search-input-box>>

View File

@ -45,7 +45,7 @@ tags: $:/tags/Stylesheet
.btn-fld-has-exluded button:hover svg, .btn-fld-has-exluded button:hover svg,
.btn-fld-has-exluded button svg { .btn-fld-has-exluded button svg {
fill: <<colour dirty-indicator>>; <!-- fill: <<colour dirty-indicator>>; -->
} }
.btn-fld { .btn-fld {