1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-18 11:29:55 +00:00

Make image-picker in theme tweaks not dismiss popup ... (#6015)

when clicking the system-images checkbox
This commit is contained in:
Simon Huber 2021-10-27 15:13:49 +02:00 committed by GitHub
parent d695fca301
commit 6890952357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,9 +10,10 @@ caption: {{$:/language/ThemeTweaks/ThemeTweaks}}
\define backgroundimage-dropdown()
<div class="tc-drop-down-wrapper">
<$button popup=<<qualify "$:/state/popup/themetweaks/backgroundimage">> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button>
<$reveal state=<<qualify "$:/state/popup/themetweaks/backgroundimage">> type="popup" position="belowleft" text="" default="">
<div class="tc-drop-down">
<$set name="state" value=<<qualify "$:/state/popup/themetweaks/backgroundimage">>>
<$button popup=<<state>> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button>
<$reveal state=<<state>> type="popup" position="belowleft" text="" default="" class="tc-popup-keep">
<div class="tc-drop-down" style="text-align:center;">
<$macrocall $name="image-picker" actions="""
<$action-setfield
@ -20,9 +21,12 @@ caption: {{$:/language/ThemeTweaks/ThemeTweaks}}
$value=<<imageTitle>>
/>
<$action-deletetiddler $tiddler=<<state>>/>
"""/>
</div>
</$reveal>
</$set>
</div>
\end