mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Add palette page control button
This commit is contained in:
parent
0fa806e202
commit
789069bb6b
15
core/images/palette.tid
Normal file
15
core/images/palette.tid
Normal file
@ -0,0 +1,15 @@
|
||||
title: $:/core/images/palette
|
||||
tags: $:/tags/Image
|
||||
|
||||
<svg class="tc-image-palette tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
|
||||
<g fill-rule="evenodd">
|
||||
<circle fill="#FF7A7A" cx="16" cy="120" r="8"></circle>
|
||||
<circle fill="#F1E961" cx="32" cy="120" r="8"></circle>
|
||||
<circle fill="#68DD70" cx="48" cy="120" r="8"></circle>
|
||||
<circle fill="#62EBE8" cx="64" cy="120" r="8"></circle>
|
||||
<circle fill="#8B7AFB" cx="80" cy="120" r="8"></circle>
|
||||
<circle fill="#FF7AF0" cx="96" cy="120" r="8"></circle>
|
||||
<circle fill="#FF7A7A" cx="112" cy="120" r="8"></circle>
|
||||
<path d="M0.655431424,117.539865 C0.436931168,117.541236 0.218451639,117.541924 4.26325641e-14,117.541924 C33.2174179,102.71893 21.9882738,53.8176442 58.3592205,53.8176439 C58.6728539,55.2246278 58.997575,56.7385594 59.4126689,58.2771696 C33.7073776,54.1432206 36.0299,105.933121 0.655422617,117.539865 L0.655431424,117.539865 Z M1.36225327,117.53305 C39.9304029,117.031643 78.903541,95.3609898 78.90354,73.0701413 C69.7059127,73.0701412 64.9406701,69.6176509 62.2197061,65.190652 C45.7518051,58.2421851 32.0920542,110.547992 1.36222092,117.533051 L1.36225327,117.53305 Z M66.2030232,54.0259104 C61.787981,58.1079526 71.0506763,70.3297181 77.4321659,65.2550532 C88.6613086,54.0259116 111.119594,31.567625 122.348737,20.3384823 C133.577879,9.10933959 122.348737,-2.11980298 111.119594,9.10933959 C99.8904513,20.338482 77.8632839,43.2451132 66.2030232,54.0259104 Z"></path>
|
||||
</g>
|
||||
</svg>
|
@ -54,6 +54,8 @@ NewTiddler/Caption: new tiddler
|
||||
NewTiddler/Hint: Create a new tiddler
|
||||
OpenWindow/Caption: open in new window
|
||||
OpenWindow/Hint: Open tiddler in new window
|
||||
Palette/Caption: palette
|
||||
Palette/Hint: Choose the colour palette
|
||||
Permalink/Caption: permalink
|
||||
Permalink/Hint: Set browser address bar to a direct link to this tiddler
|
||||
Permaview/Caption: permaview
|
||||
|
20
core/ui/PageControls/palette.tid
Normal file
20
core/ui/PageControls/palette.tid
Normal file
@ -0,0 +1,20 @@
|
||||
title: $:/core/ui/Buttons/palette
|
||||
tags: $:/tags/PageControls
|
||||
caption: {{$:/core/images/palette}} {{$:/language/Buttons/Palette/Caption}}
|
||||
description: {{$:/language/Buttons/Palette/Hint}}
|
||||
|
||||
<span class="tc-popup-keep">
|
||||
<$button popup=<<qualify "$:/state/popup/palette">> tooltip={{$:/language/Buttons/Palette/Hint}} aria-label={{$:/language/Buttons/Palette/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
||||
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/palette}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Palette/Caption}}/></span>
|
||||
</$list>
|
||||
</$button>
|
||||
</span>
|
||||
<$reveal state=<<qualify "$:/state/popup/palette">> type="popup" position="below" animate="yes">
|
||||
<div class="tc-drop-down" style="font-size:0.7em;">
|
||||
{{$:/snippets/paletteswitcher}}
|
||||
</div>
|
||||
</$reveal>
|
@ -1,7 +1,9 @@
|
||||
title: $:/snippets/paletteswitcher
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/Palette/
|
||||
<div class="tc-prompt">
|
||||
<<lingo Prompt>> <$view tiddler={{$:/palette}} field="name"/>
|
||||
</div>
|
||||
|
||||
<$linkcatcher to="$:/palette">
|
||||
<div class="tc-chooser"><$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[description]]"><div class="tc-chooser-item"><$link to={{!!title}}><div><$reveal state="$:/palette" type="match" text={{!!title}}>•</$reveal><$reveal state="$:/palette" type="nomatch" text={{!!title}}> </$reveal> ''<$view field="name" format="text"/>'' - <$view field="description" format="text"/></div><$transclude tiddler="$:/snippets/currpalettepreview"/></$link></div>
|
||||
|
@ -1,2 +1,2 @@
|
||||
title: $:/tags/PageControls
|
||||
list: [[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/close-all]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/new-journal]] [[$:/core/ui/Buttons/import]] [[$:/core/ui/Buttons/export-page]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/advanced-search]] [[$:/core/ui/Buttons/tag-manager]] [[$:/core/ui/Buttons/language]] [[$:/core/ui/Buttons/theme]] [[$:/core/ui/Buttons/storyview]] [[$:/core/ui/Buttons/encryption]] [[$:/core/ui/Buttons/full-screen]] [[$:/core/ui/Buttons/save-wiki]] [[$:/core/ui/Buttons/refresh]] [[$:/core/ui/Buttons/more-page-actions]]
|
||||
list: [[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/close-all]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/new-journal]] [[$:/core/ui/Buttons/import]] [[$:/core/ui/Buttons/export-page]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/advanced-search]] [[$:/core/ui/Buttons/tag-manager]] [[$:/core/ui/Buttons/language]] [[$:/core/ui/Buttons/palette]] [[$:/core/ui/Buttons/theme]] [[$:/core/ui/Buttons/storyview]] [[$:/core/ui/Buttons/encryption]] [[$:/core/ui/Buttons/full-screen]] [[$:/core/ui/Buttons/save-wiki]] [[$:/core/ui/Buttons/refresh]] [[$:/core/ui/Buttons/more-page-actions]]
|
||||
|
@ -1104,6 +1104,19 @@ html body.tc-body.tc-single-tiddler-window {
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.tc-drop-down .tc-prompt {
|
||||
padding: 0 14px;
|
||||
}
|
||||
|
||||
.tc-drop-down .tc-chooser {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.tc-drop-down .tc-chooser .tc-swatches-horiz {
|
||||
font-size: 0.4em;
|
||||
padding-left: 1.2em;
|
||||
}
|
||||
|
||||
.tc-drop-down .tc-file-input-wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
@ -1608,8 +1621,8 @@ a.tc-tiddlylink.tc-plugin-info:hover svg {
|
||||
.tc-swatch {
|
||||
width: 2em;
|
||||
height: 2em;
|
||||
margin: 4px;
|
||||
border: 1px solid #000;
|
||||
margin: 0.4em;
|
||||
border: 1px solid #888;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user