From ad4db0de97db003517dafca7d7596f878455fa09 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 28 Jul 2014 11:29:06 +0100 Subject: [PATCH 01/12] Add 'more' toolbar button --- core/language/en-GB/Buttons.multids | 2 ++ core/ui/ViewToolbar/more.tid | 28 ++++++++++++++++++++++++++++ core/wiki/tags/ViewToolbar.tid | 2 +- themes/tiddlywiki/vanilla/base.tid | 28 ++++++++++++++++++++++------ 4 files changed, 53 insertions(+), 7 deletions(-) create mode 100644 core/ui/ViewToolbar/more.tid diff --git a/core/language/en-GB/Buttons.multids b/core/language/en-GB/Buttons.multids index db809317a..14a5b4382 100644 --- a/core/language/en-GB/Buttons.multids +++ b/core/language/en-GB/Buttons.multids @@ -20,6 +20,8 @@ Info/Caption: info Info/Hint: Show information for this tiddler NewTiddler/Caption: new tiddler NewTiddler/Hint: Create a new tiddler +More/Caption: more +More/Hint: More actions Permalink/Caption: permalink Permalink/Hint: Set browser address bar to a direct link to this tiddler Permaview/Caption: permaview diff --git a/core/ui/ViewToolbar/more.tid b/core/ui/ViewToolbar/more.tid new file mode 100644 index 000000000..a8742fcd6 --- /dev/null +++ b/core/ui/ViewToolbar/more.tid @@ -0,0 +1,28 @@ +title: $:/core/ui/ViewToolbar/more +tags: $:/tags/ViewToolbar + +\define config-title() +$:/config/Buttons/Hide/$(listItem)$ +\end +<$button popup=<> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class="btn-invisible"> +<$list filter="[prefix[yes]]"> +{{$:/core/images/down-arrow}} + +<$list filter="[prefix[yes]]"> +<$text text={{$:/language/Buttons/More/Caption}}/> + + +<$reveal state=<> type="popup" position="below" animate="yes"> +
+<$set name="tw-config-toolbar-icons" value="yes"> +<$set name="tw-config-toolbar-text" value="yes"> +<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/ViewToolbar/more]]" variable="listItem"> +<$reveal type="match" state=<> text="yes"> +<$transclude tiddler=<>/> + + + + +
+ + diff --git a/core/wiki/tags/ViewToolbar.tid b/core/wiki/tags/ViewToolbar.tid index e64d0c90f..b850bc344 100644 --- a/core/wiki/tags/ViewToolbar.tid +++ b/core/wiki/tags/ViewToolbar.tid @@ -1,2 +1,2 @@ title: $:/tags/ViewToolbar -list: [[$:/core/ui/ViewToolbar/info]] [[$:/core/ui/ViewToolbar/edit]] [[$:/core/ui/ViewToolbar/close]] +list: [[$:/core/ui/ViewToolbar/info]] [[$:/core/ui/ViewToolbar/clone]] [[$:/core/ui/ViewToolbar/edit]] [[$:/core/ui/ViewToolbar/permalink]] [[$:/core/ui/ViewToolbar/permaview]] [[$:/core/ui/ViewToolbar/close-others]] [[$:/core/ui/ViewToolbar/close]] [[$:/core/ui/ViewToolbar/more]] diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 508bbfca7..aefe6b734 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -276,6 +276,7 @@ a.tw-tiddlylink-external:hover { .tw-image-button { height: 1em; + width: 1em; } /* @@ -392,6 +393,11 @@ a.tw-tiddlylink-external:hover { .tw-page-controls { margin-top: 14px; + font-size: 1.5em; +} + +.tw-page-controls button { + margin-right: 0.5em; } .tw-page-controls a.tw-tiddlylink:hover { @@ -399,9 +405,6 @@ a.tw-tiddlylink-external:hover { } .tw-page-controls svg { - height: 1.75em; - min-width: 1px; - padding-right: 0.5em; fill: <>; } @@ -603,8 +606,11 @@ a.tw-tiddlylink-external:hover { float: right; } +.tw-tiddler-controls .tw-drop-down { + font-size: 0.6em; +} + .tw-tiddler-controls button { - margin: 0 0 0 5px; vertical-align: baseline; } @@ -844,16 +850,26 @@ canvas.tw-edit-bitmapeditor { white-space: nowrap; } +.tw-drop-down button svg { + fill: <>; +} + +.tw-drop-down button.btn-invisible:hover svg { + fill: <>; +} + .tw-drop-down p { padding: 0 14px 0 14px; } -.tw-drop-down a { +.tw-drop-down a, .tw-drop-down button { display: block; padding: 0 14px 0 14px; + width: 100%; + text-align: left; } -.tw-drop-down a:hover { +.tw-drop-down a:hover, .tw-drop-down button:hover { color: <>; background-color: <>; text-decoration: none; From 5f018c20924a063750ae3af1d07fda71d35e47ed Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 28 Jul 2014 14:19:52 +0100 Subject: [PATCH 02/12] More defensive dom utility hasClass() It was failing on SVG elements such as `` --- core/modules/utils/dom/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/dom/dom.js b/core/modules/utils/dom/dom.js index e896049ed..35f556262 100644 --- a/core/modules/utils/dom/dom.js +++ b/core/modules/utils/dom/dom.js @@ -29,7 +29,7 @@ exports.removeChildren = function(node) { }; exports.hasClass = function(el,className) { - return el && el.className && el.className.split(" ").indexOf(className) !== -1; + return el && el.className && el.className.toString().split(" ").indexOf(className) !== -1; }; exports.addClass = function(el,className) { From cb0eba73c2333b0209aeee5ff293fca5b02dde81 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 28 Jul 2014 14:20:18 +0100 Subject: [PATCH 03/12] Typo --- core/modules/filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/filters.js b/core/modules/filters.js index bc1138990..c9fae0b70 100644 --- a/core/modules/filters.js +++ b/core/modules/filters.js @@ -198,7 +198,7 @@ exports.compileFilter = function(filterString) { operand = self.getTextReference(operator.operand,"",currTiddlerTitle); } if(operator.variable) { - operand = widget.getVariable(operator.operand,""); + operand = widget.getVariable(operator.operand,{defaultValue: ""}); } results = operatorFunction(accumulator,{ operator: operator.operator, From 536c697c9fa8821525c94d06cb22fedf46dbd276 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 28 Jul 2014 14:20:45 +0100 Subject: [PATCH 04/12] 'more' toolbar button highlights when selected --- core/ui/ViewToolbar/more.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ui/ViewToolbar/more.tid b/core/ui/ViewToolbar/more.tid index a8742fcd6..2c485d6af 100644 --- a/core/ui/ViewToolbar/more.tid +++ b/core/ui/ViewToolbar/more.tid @@ -4,7 +4,7 @@ tags: $:/tags/ViewToolbar \define config-title() $:/config/Buttons/Hide/$(listItem)$ \end -<$button popup=<> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class="btn-invisible"> +<$button popup=<> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class="btn-invisible" selectedClass="tw-selected"> <$list filter="[prefix[yes]]"> {{$:/core/images/down-arrow}} From 4be5c28ed425a789ef0365032ca2fc9af41ce361 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 28 Jul 2014 14:21:11 +0100 Subject: [PATCH 05/12] Try the "more" button on the left --- core/wiki/tags/ViewToolbar.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wiki/tags/ViewToolbar.tid b/core/wiki/tags/ViewToolbar.tid index b850bc344..3c3533160 100644 --- a/core/wiki/tags/ViewToolbar.tid +++ b/core/wiki/tags/ViewToolbar.tid @@ -1,2 +1,2 @@ title: $:/tags/ViewToolbar -list: [[$:/core/ui/ViewToolbar/info]] [[$:/core/ui/ViewToolbar/clone]] [[$:/core/ui/ViewToolbar/edit]] [[$:/core/ui/ViewToolbar/permalink]] [[$:/core/ui/ViewToolbar/permaview]] [[$:/core/ui/ViewToolbar/close-others]] [[$:/core/ui/ViewToolbar/close]] [[$:/core/ui/ViewToolbar/more]] +list: [[$:/core/ui/ViewToolbar/more]] [[$:/core/ui/ViewToolbar/info]] [[$:/core/ui/ViewToolbar/clone]] [[$:/core/ui/ViewToolbar/edit]] [[$:/core/ui/ViewToolbar/permalink]] [[$:/core/ui/ViewToolbar/permaview]] [[$:/core/ui/ViewToolbar/close-others]] [[$:/core/ui/ViewToolbar/close]] From 46ae9bd34e147d8575fc791365e48f5ddeea92b0 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 28 Jul 2014 14:37:42 +0100 Subject: [PATCH 06/12] Add tiddler info tools tab --- core/language/en-GB/TiddlerInfo.multids | 1 + core/ui/{TiddlerInfo.tid => TiddlerInfo/Tools.tid} | 7 ++++--- core/wiki/config/ButtonsHide.multids | 5 +++-- core/wiki/tags/TiddlerInfo.tid | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) rename core/ui/{TiddlerInfo.tid => TiddlerInfo/Tools.tid} (74%) diff --git a/core/language/en-GB/TiddlerInfo.multids b/core/language/en-GB/TiddlerInfo.multids index 341cd9ffc..a395ce19b 100644 --- a/core/language/en-GB/TiddlerInfo.multids +++ b/core/language/en-GB/TiddlerInfo.multids @@ -18,3 +18,4 @@ References/Caption: References References/Empty: No tiddlers link to this one Tagging/Caption: Tagging Tagging/Empty: No tiddlers are tagged with this one +Tools/Caption: Tools diff --git a/core/ui/TiddlerInfo.tid b/core/ui/TiddlerInfo/Tools.tid similarity index 74% rename from core/ui/TiddlerInfo.tid rename to core/ui/TiddlerInfo/Tools.tid index eb820593b..4f4b5b098 100644 --- a/core/ui/TiddlerInfo.tid +++ b/core/ui/TiddlerInfo/Tools.tid @@ -1,5 +1,8 @@ -title: $:/core/ui/TiddlerInfo +title: $:/core/ui/TiddlerInfo/Tools +tags: $:/tags/TiddlerInfo +caption: {{$:/language/TiddlerInfo/Tools/Caption}} +\define lingo-base() $:/language/TiddlerInfo/ \define config-title() $:/config/Buttons/Hide/$(listItem)$ \end @@ -17,5 +20,3 @@ $:/config/Buttons/Hide/$(listItem)$ - -<> diff --git a/core/wiki/config/ButtonsHide.multids b/core/wiki/config/ButtonsHide.multids index a0d09f8c9..5daa2e529 100644 --- a/core/wiki/config/ButtonsHide.multids +++ b/core/wiki/config/ButtonsHide.multids @@ -1,6 +1,7 @@ title: $:/config/Buttons/Hide/$:/ +core/ui/ViewToolbar/clone: yes +core/ui/ViewToolbar/close-others: yes +core/ui/ViewToolbar/more: yes core/ui/ViewToolbar/permalink: yes core/ui/ViewToolbar/permaview: yes -core/ui/ViewToolbar/close-others: yes -core/ui/ViewToolbar/clone: yes diff --git a/core/wiki/tags/TiddlerInfo.tid b/core/wiki/tags/TiddlerInfo.tid index 910fc96a4..dc8ff2e49 100644 --- a/core/wiki/tags/TiddlerInfo.tid +++ b/core/wiki/tags/TiddlerInfo.tid @@ -1,3 +1,3 @@ title: $:/tags/TiddlerInfo -list: [[$:/core/ui/TiddlerInfo/References]] [[$:/core/ui/TiddlerInfo/Tagging]] [[$:/core/ui/TiddlerInfo/List]] [[$:/core/ui/TiddlerInfo/Listed]] [[$:/core/ui/TiddlerInfo/Fields]] +list: [[$:/core/ui/TiddlerInfo/Tools]] [[$:/core/ui/TiddlerInfo/References]] [[$:/core/ui/TiddlerInfo/Tagging]] [[$:/core/ui/TiddlerInfo/List]] [[$:/core/ui/TiddlerInfo/Listed]] [[$:/core/ui/TiddlerInfo/Fields]] From 30f60c400e2a95d31edfe3108e0c7e37a2a09579 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 28 Jul 2014 14:38:17 +0100 Subject: [PATCH 07/12] Add tiddler info tools tab --- core/ui/TiddlerInfo.tid | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 core/ui/TiddlerInfo.tid diff --git a/core/ui/TiddlerInfo.tid b/core/ui/TiddlerInfo.tid new file mode 100644 index 000000000..1156b7d07 --- /dev/null +++ b/core/ui/TiddlerInfo.tid @@ -0,0 +1,3 @@ +title: $:/core/ui/TiddlerInfo + +<> From f1589e707f7a5b04a52f2f7ef3280fd3f0ff8487 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 28 Jul 2014 15:57:27 +0100 Subject: [PATCH 08/12] Move the github ribbon into the sidebar Which makes it scroll with the sidebar, rather that with the main page --- editions/tw5.com/tiddlers/system/github-fork-ribbon.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/system/github-fork-ribbon.tid b/editions/tw5.com/tiddlers/system/github-fork-ribbon.tid index 027994b53..d09dcfabd 100644 --- a/editions/tw5.com/tiddlers/system/github-fork-ribbon.tid +++ b/editions/tw5.com/tiddlers/system/github-fork-ribbon.tid @@ -1,5 +1,5 @@ title: $:/editions/tw5.com/github-fork-ribbon -tags: $:/tags/PageTemplate +tags: $:/tags/PageControls \ No newline at end of file From 758762eee364dad18f608c9b3764e7643609aa65 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 29 Jul 2014 10:03:43 +0100 Subject: [PATCH 09/12] Autosave after an import --- core/modules/widgets/navigator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 498fd1fa3..71a49ff2f 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -487,6 +487,8 @@ NavigatorWidget.prototype.handlePerformImportEvent = function(event) { })); // Navigate to the $:/Import tiddler this.addToHistory([IMPORT_TITLE]); + // Send a notification event + this.dispatchEvent({type: "tw-auto-save-wiki"}); }; exports.navigator = NavigatorWidget; From 4bb8c4e8a79b868babf041085669af9f3cd15913 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 29 Jul 2014 10:20:13 +0100 Subject: [PATCH 10/12] Add toolbar tabs to control panel --- core/language/en-GB/Buttons.multids | 2 ++ core/language/en-GB/ControlPanel.multids | 8 +++++++ core/ui/ControlPanel/Appearance/Toolbars.tid | 9 +++++++ .../Appearance/Toolbars/EditToolbar.tid | 24 +++++++++++++++++++ .../Appearance/Toolbars/PageControls.tid | 24 +++++++++++++++++++ .../Appearance/Toolbars/ViewToolbar.tid | 24 +++++++++++++++++++ core/ui/EditTemplate/controls.tid | 5 +++- core/ui/EditToolbar/cancel.tid | 10 +++++++- core/ui/EditToolbar/delete.tid | 10 +++++++- core/ui/EditToolbar/save.tid | 10 +++++++- core/ui/PageControls/controlpanel.tid | 10 +++++++- core/ui/PageControls/home.tid | 12 ++++++++++ core/ui/PageControls/newtiddler.tid | 10 +++++++- core/ui/PageControls/savewiki.tid | 10 +++++++- core/ui/PageTemplate.tid | 4 ++++ core/ui/PageTemplate/sidebar.tid | 9 +++---- core/ui/TiddlerInfo/Tools.tid | 8 +++++-- core/ui/ViewTemplate/title.tid | 4 ++-- core/ui/ViewToolbar/clone.tid | 3 ++- core/ui/ViewToolbar/close-others.tid | 3 ++- core/ui/ViewToolbar/close.tid | 3 ++- core/ui/ViewToolbar/edit.tid | 3 ++- core/ui/ViewToolbar/info.tid | 3 ++- core/ui/ViewToolbar/more.tid | 7 +++--- core/ui/ViewToolbar/permalink.tid | 3 ++- core/ui/ViewToolbar/permaview.tid | 5 ++-- core/wiki/config/ButtonsHide.multids | 7 ------ core/wiki/config/PageControlButtons.multids | 4 ++++ core/wiki/config/ViewToolbarButtons.multids | 7 ++++++ core/wiki/tags/PageControls.tid | 2 +- .../tiddlers/system/github-fork-ribbon.tid | 1 + themes/tiddlywiki/vanilla/base.tid | 4 ---- 32 files changed, 210 insertions(+), 38 deletions(-) create mode 100644 core/ui/ControlPanel/Appearance/Toolbars.tid create mode 100644 core/ui/ControlPanel/Appearance/Toolbars/EditToolbar.tid create mode 100644 core/ui/ControlPanel/Appearance/Toolbars/PageControls.tid create mode 100644 core/ui/ControlPanel/Appearance/Toolbars/ViewToolbar.tid create mode 100644 core/ui/PageControls/home.tid delete mode 100644 core/wiki/config/ButtonsHide.multids create mode 100644 core/wiki/config/PageControlButtons.multids create mode 100644 core/wiki/config/ViewToolbarButtons.multids diff --git a/core/language/en-GB/Buttons.multids b/core/language/en-GB/Buttons.multids index 14a5b4382..edcff716b 100644 --- a/core/language/en-GB/Buttons.multids +++ b/core/language/en-GB/Buttons.multids @@ -18,6 +18,8 @@ Edit/Caption: edit Edit/Hint: Edit this tiddler Info/Caption: info Info/Hint: Show information for this tiddler +Home/Caption: home +Home/Hint: Open home tiddlers NewTiddler/Caption: new tiddler NewTiddler/Hint: Create a new tiddler More/Caption: more diff --git a/core/language/en-GB/ControlPanel.multids b/core/language/en-GB/ControlPanel.multids index e7c0c2aec..6df4fb76d 100644 --- a/core/language/en-GB/ControlPanel.multids +++ b/core/language/en-GB/ControlPanel.multids @@ -40,6 +40,14 @@ Appearance/StoryView/Caption: Story View Appearance/StoryView/Prompt: Current view: Appearance/Theme/Caption: Theme Appearance/Theme/Prompt: Current theme: +Appearance/Toolbars/Caption: Toolbars +Appearance/Toolbars/Hint: Select which toolbar buttons are displayed +Appearance/Toolbars/EditToolbar/Caption: Edit Toolbar +Appearance/Toolbars/EditToolbar/Hint: Choose which buttons are displayed for tiddlers in edit mode +Appearance/Toolbars/ViewToolbar/Caption: View Toolbar +Appearance/Toolbars/ViewToolbar/Hint: Choose which buttons are displayed for tiddlers in view mode +Appearance/Toolbars/PageControls/Caption: Page Toolbar +Appearance/Toolbars/PageControls/Hint: Choose which buttons are displayed on the main page toolbar Basics/AnimDuration/Prompt: Animation duration: Basics/Caption: Basics Basics/DefaultTiddlers/BottomHint: Use [[double square brackets]] for titles with spaces. Or you can choose to <$button set="$:/DefaultTiddlers" setTo="[list[$:/StoryList]]">retain story ordering diff --git a/core/ui/ControlPanel/Appearance/Toolbars.tid b/core/ui/ControlPanel/Appearance/Toolbars.tid new file mode 100644 index 000000000..bcb0aa843 --- /dev/null +++ b/core/ui/ControlPanel/Appearance/Toolbars.tid @@ -0,0 +1,9 @@ +title: $:/core/ui/ControlPanel/Appearance/Toolbars +tags: $:/tags/ControlPanel/Appearance +caption: {{$:/language/ControlPanel/Appearance/Toolbars/Caption}} + +{{$:/language/ControlPanel/Appearance/Toolbars/Hint}} + +
+<> +
diff --git a/core/ui/ControlPanel/Appearance/Toolbars/EditToolbar.tid b/core/ui/ControlPanel/Appearance/Toolbars/EditToolbar.tid new file mode 100644 index 000000000..2425f83c3 --- /dev/null +++ b/core/ui/ControlPanel/Appearance/Toolbars/EditToolbar.tid @@ -0,0 +1,24 @@ +title: $:/core/ui/ControlPanel/Appearance/Toolbars/EditToolbar +tags: $:/tags/ControlPanel/Appearance/Toolbars +caption: {{$:/language/ControlPanel/Appearance/Toolbars/EditToolbar/Caption}} + +\define lingo-base() $:/language/TiddlerInfo/ +\define config-title() +$:/config/EditToolbarButtons/Visibility/$(listItem)$ +\end + +{{$:/language/ControlPanel/Appearance/Toolbars/EditToolbar/Hint}} + +<$set name="tw-config-toolbar-icons" value="yes"> + +<$set name="tw-config-toolbar-text" value="yes"> + +<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"> + +<$checkbox tiddler=<> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<> field="caption"/> + + + + + + diff --git a/core/ui/ControlPanel/Appearance/Toolbars/PageControls.tid b/core/ui/ControlPanel/Appearance/Toolbars/PageControls.tid new file mode 100644 index 000000000..34c45e571 --- /dev/null +++ b/core/ui/ControlPanel/Appearance/Toolbars/PageControls.tid @@ -0,0 +1,24 @@ +title: $:/core/ui/ControlPanel/Appearance/Toolbars/PageControls +tags: $:/tags/ControlPanel/Appearance/Toolbars +caption: {{$:/language/ControlPanel/Appearance/Toolbars/PageControls/Caption}} + +\define lingo-base() $:/language/TiddlerInfo/ +\define config-title() +$:/config/PageControlButtons/Visibility/$(listItem)$ +\end + +{{$:/language/ControlPanel/Appearance/Toolbars/PageControls/Hint}} + +<$set name="tw-config-toolbar-icons" value="yes"> + +<$set name="tw-config-toolbar-text" value="yes"> + +<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem"> + +<$checkbox tiddler=<> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<> field="caption"/> + + + + + + diff --git a/core/ui/ControlPanel/Appearance/Toolbars/ViewToolbar.tid b/core/ui/ControlPanel/Appearance/Toolbars/ViewToolbar.tid new file mode 100644 index 000000000..390d1eec7 --- /dev/null +++ b/core/ui/ControlPanel/Appearance/Toolbars/ViewToolbar.tid @@ -0,0 +1,24 @@ +title: $:/core/ui/ControlPanel/Appearance/Toolbars/ViewToolbar +tags: $:/tags/ControlPanel/Appearance/Toolbars +caption: {{$:/language/ControlPanel/Appearance/Toolbars/ViewToolbar/Caption}} + +\define lingo-base() $:/language/TiddlerInfo/ +\define config-title() +$:/config/ViewToolbarButtons/Visibility/$(listItem)$ +\end + +{{$:/language/ControlPanel/Appearance/Toolbars/ViewToolbar/Hint}} + +<$set name="tw-config-toolbar-icons" value="yes"> + +<$set name="tw-config-toolbar-text" value="yes"> + +<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"> + +<$checkbox tiddler=<> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<> field="caption"/> + + + + + + diff --git a/core/ui/EditTemplate/controls.tid b/core/ui/EditTemplate/controls.tid index 93277362c..e4a574317 100644 --- a/core/ui/EditTemplate/controls.tid +++ b/core/ui/EditTemplate/controls.tid @@ -1,4 +1,7 @@ title: $:/core/ui/EditTemplate/controls tags: $:/tags/EditTemplate - <$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"><$transclude tiddler=<>/> +\define config-title() +$:/config/EditToolbarButtons/Visibility/$(listItem)$ +\end +<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<> text="hide"><$transclude tiddler=<>/> diff --git a/core/ui/EditToolbar/cancel.tid b/core/ui/EditToolbar/cancel.tid index b271f158e..eb253027f 100644 --- a/core/ui/EditToolbar/cancel.tid +++ b/core/ui/EditToolbar/cancel.tid @@ -1,4 +1,12 @@ title: $:/core/ui/EditToolbar/cancel tags: $:/tags/EditToolbar +caption: {{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}} -<$button message="tw-cancel-tiddler" title={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class="btn-invisible">{{$:/core/images/cancel-button}} \ No newline at end of file +<$button message="tw-cancel-tiddler" title={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<>> +<$list filter="[prefix[yes]]"> +{{$:/core/images/cancel-button}} + +<$list filter="[prefix[yes]]"> +<$text text={{$:/language/Buttons/Cancel/Caption}}/> + + diff --git a/core/ui/EditToolbar/delete.tid b/core/ui/EditToolbar/delete.tid index a8f5881d4..548f1a265 100644 --- a/core/ui/EditToolbar/delete.tid +++ b/core/ui/EditToolbar/delete.tid @@ -1,4 +1,12 @@ title: $:/core/ui/EditToolbar/delete tags: $:/tags/EditToolbar +caption: {{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}} -<$button message="tw-delete-tiddler" title={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class="btn-invisible">{{$:/core/images/delete-button}} \ No newline at end of file +<$button message="tw-delete-tiddler" title={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<>> +<$list filter="[prefix[yes]]"> +{{$:/core/images/delete-button}} + +<$list filter="[prefix[yes]]"> +<$text text={{$:/language/Buttons/Delete/Caption}}/> + + \ No newline at end of file diff --git a/core/ui/EditToolbar/save.tid b/core/ui/EditToolbar/save.tid index fcd40d461..b86b3cc5d 100644 --- a/core/ui/EditToolbar/save.tid +++ b/core/ui/EditToolbar/save.tid @@ -1,4 +1,12 @@ title: $:/core/ui/EditToolbar/save tags: $:/tags/EditToolbar +caption: {{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}} -<$button message="tw-save-tiddler" title={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class="btn-invisible">{{$:/core/images/done-button}} \ No newline at end of file +<$button message="tw-save-tiddler" title={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<>> +<$list filter="[prefix[yes]]"> +{{$:/core/images/done-button}} + +<$list filter="[prefix[yes]]"> +<$text text={{$:/language/Buttons/Save/Caption}}/> + + \ No newline at end of file diff --git a/core/ui/PageControls/controlpanel.tid b/core/ui/PageControls/controlpanel.tid index b0ca856e4..700f33f9c 100644 --- a/core/ui/PageControls/controlpanel.tid +++ b/core/ui/PageControls/controlpanel.tid @@ -1,4 +1,12 @@ title: $:/core/ui/PageControls/control-panel tags: $:/tags/PageControls +caption: {{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}} -<$button to="$:/ControlPanel" title={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class="btn-invisible">{{$:/core/images/options-button}} \ No newline at end of file +<$button to="$:/ControlPanel" title={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class=<>> +<$list filter="[prefix[yes]]"> +{{$:/core/images/options-button}} + +<$list filter="[prefix[yes]]"> +<$text text={{$:/language/Buttons/ControlPanel/Caption}}/> + + diff --git a/core/ui/PageControls/home.tid b/core/ui/PageControls/home.tid new file mode 100644 index 000000000..567e03b05 --- /dev/null +++ b/core/ui/PageControls/home.tid @@ -0,0 +1,12 @@ +title: $:/core/ui/PageControls/home +tags: $:/tags/PageControls +caption: {{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}} + +<$button message="tw-home" title={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<>> +<$list filter="[prefix[yes]]"> +{{$:/core/images/home-button}} + +<$list filter="[prefix[yes]]"> +<$text text={{$:/language/Buttons/Home/Caption}}/> + + diff --git a/core/ui/PageControls/newtiddler.tid b/core/ui/PageControls/newtiddler.tid index 576bdc7ad..4dfcc24c7 100644 --- a/core/ui/PageControls/newtiddler.tid +++ b/core/ui/PageControls/newtiddler.tid @@ -1,4 +1,12 @@ title: $:/core/ui/PageControls/new-tiddler tags: $:/tags/PageControls +caption: {{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}} -<$button message="tw-new-tiddler" title={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class="btn-invisible">{{$:/core/images/new-button}} \ No newline at end of file +<$button message="tw-new-tiddler" title={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<>> +<$list filter="[prefix[yes]]"> +{{$:/core/images/new-button}} + +<$list filter="[prefix[yes]]"> +<$text text={{$:/language/Buttons/NewTiddler/Caption}}/> + + diff --git a/core/ui/PageControls/savewiki.tid b/core/ui/PageControls/savewiki.tid index 5e1285c54..88bb67656 100644 --- a/core/ui/PageControls/savewiki.tid +++ b/core/ui/PageControls/savewiki.tid @@ -1,4 +1,12 @@ title: $:/core/ui/PageControls/save-wiki tags: $:/tags/PageControls +caption: {{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}} -<$button message="tw-save-wiki" title={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class="btn-invisible">{{$:/core/images/save-button}} \ No newline at end of file +<$button message="tw-save-wiki" title={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<>> +<$list filter="[prefix[yes]]"> +{{$:/core/images/save-button}} + +<$list filter="[prefix[yes]]"> +<$text text={{$:/language/Buttons/SaveWiki/Caption}}/> + + \ No newline at end of file diff --git a/core/ui/PageTemplate.tid b/core/ui/PageTemplate.tid index 2746db82a..3ce5cad36 100644 --- a/core/ui/PageTemplate.tid +++ b/core/ui/PageTemplate.tid @@ -10,6 +10,8 @@ tw-page-container tw-page-view-$(themeTitle)$ tw-language-$(languageTitle)$ <$set name="tw-config-toolbar-text" value={{$:/config/Toolbar/Text}}> +<$set name="tw-config-toolbar-class" value="btn-invisible"> + <$set name="themeTitle" value={{$:/view}}> <$set name="currentTiddler" value={{$:/language}}> @@ -48,4 +50,6 @@ tw-page-container tw-page-view-$(themeTitle)$ tw-language-$(languageTitle)$ + + diff --git a/core/ui/PageTemplate/sidebar.tid b/core/ui/PageTemplate/sidebar.tid index 6e7351728..d202db60e 100644 --- a/core/ui/PageTemplate/sidebar.tid +++ b/core/ui/PageTemplate/sidebar.tid @@ -1,6 +1,9 @@ title: $:/core/ui/PageTemplate/sidebar tags: $:/tags/PageTemplate +\define config-title() +$:/config/PageControlButtons/Visibility/$(listItem)$ +\end <$scrollable fallthrough="no" class="tw-sidebar-scrollable">
- <$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem"> - +<$reveal type="nomatch" state=<> text="hide"> <$transclude tiddler=<> mode="inline"/> - + -
<$transclude tiddler="$:/core/ui/SideBarLists" mode="inline"/> diff --git a/core/ui/TiddlerInfo/Tools.tid b/core/ui/TiddlerInfo/Tools.tid index 4f4b5b098..7fb69bdde 100644 --- a/core/ui/TiddlerInfo/Tools.tid +++ b/core/ui/TiddlerInfo/Tools.tid @@ -4,19 +4,23 @@ caption: {{$:/language/TiddlerInfo/Tools/Caption}} \define lingo-base() $:/language/TiddlerInfo/ \define config-title() -$:/config/Buttons/Hide/$(listItem)$ +$:/config/ViewToolbarButtons/Visibility/$(listItem)$ \end <$set name="tw-config-toolbar-icons" value="yes"> <$set name="tw-config-toolbar-text" value="yes"> +<$set name="tw-config-toolbar-class" value=""> + <$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"> -<$transclude tiddler=<>/> (<$checkbox tiddler=<> field="text" checked="no" unchecked="yes" default="no"> Show in toolbar) +<$checkbox tiddler=<> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<>/> + + diff --git a/core/ui/ViewTemplate/title.tid b/core/ui/ViewTemplate/title.tid index d24c9f11f..492eb248c 100644 --- a/core/ui/ViewTemplate/title.tid +++ b/core/ui/ViewTemplate/title.tid @@ -5,12 +5,12 @@ tags: $:/tags/ViewTemplate fill:$(foregroundColor)$; \end \define config-title() -$:/config/Buttons/Hide/$(listItem)$ +$:/config/ViewToolbarButtons/Visibility/$(listItem)$ \end

-<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<> text="yes"><$transclude tiddler=<>/> +<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<> text="hide"><$transclude tiddler=<>/> <$set name="foregroundColor" value={{!!color}}> >> diff --git a/core/ui/ViewToolbar/clone.tid b/core/ui/ViewToolbar/clone.tid index 7e4899e1a..9eeef3a12 100644 --- a/core/ui/ViewToolbar/clone.tid +++ b/core/ui/ViewToolbar/clone.tid @@ -1,7 +1,8 @@ title: $:/core/ui/ViewToolbar/clone tags: $:/tags/ViewToolbar +caption: {{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}} -<$button message="tw-new-tiddler" param=<> title={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class="btn-invisible"> +<$button message="tw-new-tiddler" param=<> title={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<>> <$list filter="[prefix[yes]]"> {{$:/core/images/clone-button}} diff --git a/core/ui/ViewToolbar/close-others.tid b/core/ui/ViewToolbar/close-others.tid index 2cd3789a4..7a9362f75 100644 --- a/core/ui/ViewToolbar/close-others.tid +++ b/core/ui/ViewToolbar/close-others.tid @@ -1,7 +1,8 @@ title: $:/core/ui/ViewToolbar/close-others tags: $:/tags/ViewToolbar +caption: {{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}} -<$button message="tw-close-other-tiddlers" param=<> title={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class="btn-invisible"> +<$button message="tw-close-other-tiddlers" param=<> title={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<>> <$list filter="[prefix[yes]]"> {{$:/core/images/close-others-button}} diff --git a/core/ui/ViewToolbar/close.tid b/core/ui/ViewToolbar/close.tid index ac2468baa..4bfbfe7a9 100644 --- a/core/ui/ViewToolbar/close.tid +++ b/core/ui/ViewToolbar/close.tid @@ -1,7 +1,8 @@ title: $:/core/ui/ViewToolbar/close tags: $:/tags/ViewToolbar +caption: {{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}} -<$button message="tw-close-tiddler" title={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class="btn-invisible"> +<$button message="tw-close-tiddler" title={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<>> <$list filter="[prefix[yes]]"> {{$:/core/images/close-button}} diff --git a/core/ui/ViewToolbar/edit.tid b/core/ui/ViewToolbar/edit.tid index 38cfa3220..71b4eba71 100644 --- a/core/ui/ViewToolbar/edit.tid +++ b/core/ui/ViewToolbar/edit.tid @@ -1,7 +1,8 @@ title: $:/core/ui/ViewToolbar/edit tags: $:/tags/ViewToolbar +caption: {{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}} -<$button message="tw-edit-tiddler" title={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class="btn-invisible"> +<$button message="tw-edit-tiddler" title={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<>> <$list filter="[prefix[yes]]"> {{$:/core/images/edit-button}} diff --git a/core/ui/ViewToolbar/info.tid b/core/ui/ViewToolbar/info.tid index faa4189a1..cbc27d26f 100644 --- a/core/ui/ViewToolbar/info.tid +++ b/core/ui/ViewToolbar/info.tid @@ -1,7 +1,8 @@ title: $:/core/ui/ViewToolbar/info tags: $:/tags/ViewToolbar +caption: {{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}} -<$button popup=<> title={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class="btn-invisible" selectedClass="tw-selected"> +<$button popup=<> title={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<> selectedClass="tw-selected"> <$list filter="[prefix[yes]]"> {{$:/core/images/info-button}} diff --git a/core/ui/ViewToolbar/more.tid b/core/ui/ViewToolbar/more.tid index 2c485d6af..fae67c2dc 100644 --- a/core/ui/ViewToolbar/more.tid +++ b/core/ui/ViewToolbar/more.tid @@ -1,10 +1,11 @@ title: $:/core/ui/ViewToolbar/more tags: $:/tags/ViewToolbar +caption: {{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}} \define config-title() -$:/config/Buttons/Hide/$(listItem)$ +$:/config/ViewToolbarButtons/Visibility/$(listItem)$ \end -<$button popup=<> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class="btn-invisible" selectedClass="tw-selected"> +<$button popup=<> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<> selectedClass="tw-selected"> <$list filter="[prefix[yes]]"> {{$:/core/images/down-arrow}} @@ -17,7 +18,7 @@ $:/config/Buttons/Hide/$(listItem)$ <$set name="tw-config-toolbar-icons" value="yes"> <$set name="tw-config-toolbar-text" value="yes"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/ViewToolbar/more]]" variable="listItem"> -<$reveal type="match" state=<> text="yes"> +<$reveal type="match" state=<> text="hide"> <$transclude tiddler=<>/> diff --git a/core/ui/ViewToolbar/permalink.tid b/core/ui/ViewToolbar/permalink.tid index 6ef6810b1..c41cdfbcc 100644 --- a/core/ui/ViewToolbar/permalink.tid +++ b/core/ui/ViewToolbar/permalink.tid @@ -1,7 +1,8 @@ title: $:/core/ui/ViewToolbar/permalink tags: $:/tags/ViewToolbar +caption: {{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}} -<$button message="tw-permalink" title={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class="btn-invisible"> +<$button message="tw-permalink" title={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<>> <$list filter="[prefix[yes]]"> {{$:/core/images/permalink-button}} diff --git a/core/ui/ViewToolbar/permaview.tid b/core/ui/ViewToolbar/permaview.tid index 137d4e8c5..6693a8705 100644 --- a/core/ui/ViewToolbar/permaview.tid +++ b/core/ui/ViewToolbar/permaview.tid @@ -1,7 +1,8 @@ title: $:/core/ui/ViewToolbar/permaview -tags: $:/tags/ViewToolbar +tags: $:/tags/ViewToolbar $:/tags/PageControls +caption: {{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}} -<$button message="tw-permaview" title={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class="btn-invisible"> +<$button message="tw-permaview" title={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<>> <$list filter="[prefix[yes]]"> {{$:/core/images/permaview-button}} diff --git a/core/wiki/config/ButtonsHide.multids b/core/wiki/config/ButtonsHide.multids deleted file mode 100644 index 5daa2e529..000000000 --- a/core/wiki/config/ButtonsHide.multids +++ /dev/null @@ -1,7 +0,0 @@ -title: $:/config/Buttons/Hide/$:/ - -core/ui/ViewToolbar/clone: yes -core/ui/ViewToolbar/close-others: yes -core/ui/ViewToolbar/more: yes -core/ui/ViewToolbar/permalink: yes -core/ui/ViewToolbar/permaview: yes diff --git a/core/wiki/config/PageControlButtons.multids b/core/wiki/config/PageControlButtons.multids new file mode 100644 index 000000000..b7dd52fe1 --- /dev/null +++ b/core/wiki/config/PageControlButtons.multids @@ -0,0 +1,4 @@ +title: $:/config/PageControlButtons/Visibility/$:/ + +core/ui/PageControls/home: hide +core/ui/ViewToolbar/permaview: hide diff --git a/core/wiki/config/ViewToolbarButtons.multids b/core/wiki/config/ViewToolbarButtons.multids new file mode 100644 index 000000000..e7c5e603a --- /dev/null +++ b/core/wiki/config/ViewToolbarButtons.multids @@ -0,0 +1,7 @@ +title: $:/config/ViewToolbarButtons/Visibility/$:/ + +core/ui/ViewToolbar/clone: hide +core/ui/ViewToolbar/close-others: hide +core/ui/ViewToolbar/more: hide +core/ui/ViewToolbar/permalink: hide +core/ui/ViewToolbar/permaview: hide diff --git a/core/wiki/tags/PageControls.tid b/core/wiki/tags/PageControls.tid index 94f4fee0c..bd6e59046 100644 --- a/core/wiki/tags/PageControls.tid +++ b/core/wiki/tags/PageControls.tid @@ -1,2 +1,2 @@ title: $:/tags/PageControls -list: [[$:/core/ui/PageControls/new-tiddler]] [[$:/core/ui/PageControls/control-panel]] [[$:/core/ui/PageControls/save-wiki]] +list: [[$:/core/ui/PageControls/home]] [[$:/core/ui/ViewToolbar/permaview]] [[$:/core/ui/PageControls/new-tiddler]] [[$:/core/ui/PageControls/control-panel]] [[$:/core/ui/PageControls/save-wiki]] diff --git a/editions/tw5.com/tiddlers/system/github-fork-ribbon.tid b/editions/tw5.com/tiddlers/system/github-fork-ribbon.tid index d09dcfabd..5d9c7e385 100644 --- a/editions/tw5.com/tiddlers/system/github-fork-ribbon.tid +++ b/editions/tw5.com/tiddlers/system/github-fork-ribbon.tid @@ -1,5 +1,6 @@ title: $:/editions/tw5.com/github-fork-ribbon tags: $:/tags/PageControls +caption: ~GitHub ribbon \ No newline at end of file diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index aefe6b734..de0649030 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -379,10 +379,6 @@ a.tw-tiddlylink-external:hover { width: 60%; } -.tw-search { - padding-top: 14px; -} - .tw-search a svg { height: 0.75em; } From 0d5380d4a6abdd2e2c9e7144a61fd4b090f6c2d5 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 29 Jul 2014 12:06:04 +0100 Subject: [PATCH 11/12] Set vertical alignment for SVG in buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes the buttons in the info panel “tools” tab look more like buttons on Chrome. --- themes/tiddlywiki/vanilla/base.tid | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index de0649030..86d434828 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -234,6 +234,10 @@ a.tw-tiddlylink-external:hover { ** Buttons */ +button svg { + vertical-align: middle; +} + .btn-invisible { padding: 0; margin: 0; From 4de1a1adbea501d2b245142f72151adce45ba9db Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 29 Jul 2014 13:37:57 +0100 Subject: [PATCH 12/12] Normalise titles of toolbar button tiddlers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The title shouldn’t include the toolbar name if we’re starting to have buttons which can be placed on more than one toolbar. --- core/ui/EditToolbar/cancel.tid | 2 +- core/ui/EditToolbar/delete.tid | 2 +- core/ui/EditToolbar/save.tid | 2 +- core/ui/PageControls/controlpanel.tid | 2 +- core/ui/PageControls/home.tid | 2 +- core/ui/PageControls/newtiddler.tid | 2 +- core/ui/PageControls/savewiki.tid | 2 +- core/ui/ViewToolbar/clone.tid | 2 +- core/ui/ViewToolbar/close-others.tid | 2 +- core/ui/ViewToolbar/close.tid | 2 +- core/ui/ViewToolbar/edit.tid | 2 +- core/ui/ViewToolbar/info.tid | 2 +- core/ui/ViewToolbar/more.tid | 4 ++-- core/ui/ViewToolbar/permalink.tid | 2 +- core/ui/ViewToolbar/permaview.tid | 2 +- core/wiki/config/PageControlButtons.multids | 4 ++-- core/wiki/config/ViewToolbarButtons.multids | 10 +++++----- core/wiki/tags/EditToolbar.tid | 2 +- core/wiki/tags/PageControls.tid | 2 +- core/wiki/tags/ViewToolbar.tid | 2 +- 20 files changed, 26 insertions(+), 26 deletions(-) diff --git a/core/ui/EditToolbar/cancel.tid b/core/ui/EditToolbar/cancel.tid index eb253027f..0f85fe724 100644 --- a/core/ui/EditToolbar/cancel.tid +++ b/core/ui/EditToolbar/cancel.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/EditToolbar/cancel +title: $:/core/ui/Buttons/cancel tags: $:/tags/EditToolbar caption: {{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}} diff --git a/core/ui/EditToolbar/delete.tid b/core/ui/EditToolbar/delete.tid index 548f1a265..fd35491a9 100644 --- a/core/ui/EditToolbar/delete.tid +++ b/core/ui/EditToolbar/delete.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/EditToolbar/delete +title: $:/core/ui/Buttons/delete tags: $:/tags/EditToolbar caption: {{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}} diff --git a/core/ui/EditToolbar/save.tid b/core/ui/EditToolbar/save.tid index b86b3cc5d..a9a889b72 100644 --- a/core/ui/EditToolbar/save.tid +++ b/core/ui/EditToolbar/save.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/EditToolbar/save +title: $:/core/ui/Buttons/save tags: $:/tags/EditToolbar caption: {{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}} diff --git a/core/ui/PageControls/controlpanel.tid b/core/ui/PageControls/controlpanel.tid index 700f33f9c..77783e0c8 100644 --- a/core/ui/PageControls/controlpanel.tid +++ b/core/ui/PageControls/controlpanel.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/PageControls/control-panel +title: $:/core/ui/Buttons/control-panel tags: $:/tags/PageControls caption: {{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}} diff --git a/core/ui/PageControls/home.tid b/core/ui/PageControls/home.tid index 567e03b05..8e19896c9 100644 --- a/core/ui/PageControls/home.tid +++ b/core/ui/PageControls/home.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/PageControls/home +title: $:/core/ui/Buttons/home tags: $:/tags/PageControls caption: {{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}} diff --git a/core/ui/PageControls/newtiddler.tid b/core/ui/PageControls/newtiddler.tid index 4dfcc24c7..360dd78ad 100644 --- a/core/ui/PageControls/newtiddler.tid +++ b/core/ui/PageControls/newtiddler.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/PageControls/new-tiddler +title: $:/core/ui/Buttons/new-tiddler tags: $:/tags/PageControls caption: {{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}} diff --git a/core/ui/PageControls/savewiki.tid b/core/ui/PageControls/savewiki.tid index 88bb67656..83a4abab2 100644 --- a/core/ui/PageControls/savewiki.tid +++ b/core/ui/PageControls/savewiki.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/PageControls/save-wiki +title: $:/core/ui/Buttons/save-wiki tags: $:/tags/PageControls caption: {{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}} diff --git a/core/ui/ViewToolbar/clone.tid b/core/ui/ViewToolbar/clone.tid index 9eeef3a12..2dbfcf37e 100644 --- a/core/ui/ViewToolbar/clone.tid +++ b/core/ui/ViewToolbar/clone.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/ViewToolbar/clone +title: $:/core/ui/Buttons/clone tags: $:/tags/ViewToolbar caption: {{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}} diff --git a/core/ui/ViewToolbar/close-others.tid b/core/ui/ViewToolbar/close-others.tid index 7a9362f75..a0196c242 100644 --- a/core/ui/ViewToolbar/close-others.tid +++ b/core/ui/ViewToolbar/close-others.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/ViewToolbar/close-others +title: $:/core/ui/Buttons/close-others tags: $:/tags/ViewToolbar caption: {{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}} diff --git a/core/ui/ViewToolbar/close.tid b/core/ui/ViewToolbar/close.tid index 4bfbfe7a9..957be1f11 100644 --- a/core/ui/ViewToolbar/close.tid +++ b/core/ui/ViewToolbar/close.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/ViewToolbar/close +title: $:/core/ui/Buttons/close tags: $:/tags/ViewToolbar caption: {{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}} diff --git a/core/ui/ViewToolbar/edit.tid b/core/ui/ViewToolbar/edit.tid index 71b4eba71..aa21e6675 100644 --- a/core/ui/ViewToolbar/edit.tid +++ b/core/ui/ViewToolbar/edit.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/ViewToolbar/edit +title: $:/core/ui/Buttons/edit tags: $:/tags/ViewToolbar caption: {{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}} diff --git a/core/ui/ViewToolbar/info.tid b/core/ui/ViewToolbar/info.tid index cbc27d26f..8d000023c 100644 --- a/core/ui/ViewToolbar/info.tid +++ b/core/ui/ViewToolbar/info.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/ViewToolbar/info +title: $:/core/ui/Buttons/info tags: $:/tags/ViewToolbar caption: {{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}} diff --git a/core/ui/ViewToolbar/more.tid b/core/ui/ViewToolbar/more.tid index fae67c2dc..1ea0c95f2 100644 --- a/core/ui/ViewToolbar/more.tid +++ b/core/ui/ViewToolbar/more.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/ViewToolbar/more +title: $:/core/ui/Buttons/more tags: $:/tags/ViewToolbar caption: {{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}} @@ -17,7 +17,7 @@ $:/config/ViewToolbarButtons/Visibility/$(listItem)$
<$set name="tw-config-toolbar-icons" value="yes"> <$set name="tw-config-toolbar-text" value="yes"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/ViewToolbar/more]]" variable="listItem"> +<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more]]" variable="listItem"> <$reveal type="match" state=<> text="hide"> <$transclude tiddler=<>/> diff --git a/core/ui/ViewToolbar/permalink.tid b/core/ui/ViewToolbar/permalink.tid index c41cdfbcc..aa5a0d959 100644 --- a/core/ui/ViewToolbar/permalink.tid +++ b/core/ui/ViewToolbar/permalink.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/ViewToolbar/permalink +title: $:/core/ui/Buttons/permalink tags: $:/tags/ViewToolbar caption: {{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}} diff --git a/core/ui/ViewToolbar/permaview.tid b/core/ui/ViewToolbar/permaview.tid index 6693a8705..83a6246d0 100644 --- a/core/ui/ViewToolbar/permaview.tid +++ b/core/ui/ViewToolbar/permaview.tid @@ -1,4 +1,4 @@ -title: $:/core/ui/ViewToolbar/permaview +title: $:/core/ui/Buttons/permaview tags: $:/tags/ViewToolbar $:/tags/PageControls caption: {{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}} diff --git a/core/wiki/config/PageControlButtons.multids b/core/wiki/config/PageControlButtons.multids index b7dd52fe1..c3a4a8e6b 100644 --- a/core/wiki/config/PageControlButtons.multids +++ b/core/wiki/config/PageControlButtons.multids @@ -1,4 +1,4 @@ title: $:/config/PageControlButtons/Visibility/$:/ -core/ui/PageControls/home: hide -core/ui/ViewToolbar/permaview: hide +core/ui/Buttons/home: hide +core/ui/Buttons/permaview: hide diff --git a/core/wiki/config/ViewToolbarButtons.multids b/core/wiki/config/ViewToolbarButtons.multids index e7c5e603a..0b3cc743d 100644 --- a/core/wiki/config/ViewToolbarButtons.multids +++ b/core/wiki/config/ViewToolbarButtons.multids @@ -1,7 +1,7 @@ title: $:/config/ViewToolbarButtons/Visibility/$:/ -core/ui/ViewToolbar/clone: hide -core/ui/ViewToolbar/close-others: hide -core/ui/ViewToolbar/more: hide -core/ui/ViewToolbar/permalink: hide -core/ui/ViewToolbar/permaview: hide +core/ui/Buttons/clone: hide +core/ui/Buttons/close-others: hide +core/ui/Buttons/more: hide +core/ui/Buttons/permalink: hide +core/ui/Buttons/permaview: hide diff --git a/core/wiki/tags/EditToolbar.tid b/core/wiki/tags/EditToolbar.tid index 96d595b9b..29001a8de 100644 --- a/core/wiki/tags/EditToolbar.tid +++ b/core/wiki/tags/EditToolbar.tid @@ -1,2 +1,2 @@ title: $:/tags/EditToolbar -list: [[$:/core/ui/EditToolbar/delete]] [[$:/core/ui/EditToolbar/cancel]] [[$:/core/ui/EditToolbar/save]] +list: [[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/cancel]] [[$:/core/ui/Buttons/save]] diff --git a/core/wiki/tags/PageControls.tid b/core/wiki/tags/PageControls.tid index bd6e59046..e1bca558f 100644 --- a/core/wiki/tags/PageControls.tid +++ b/core/wiki/tags/PageControls.tid @@ -1,2 +1,2 @@ title: $:/tags/PageControls -list: [[$:/core/ui/PageControls/home]] [[$:/core/ui/ViewToolbar/permaview]] [[$:/core/ui/PageControls/new-tiddler]] [[$:/core/ui/PageControls/control-panel]] [[$:/core/ui/PageControls/save-wiki]] +list: [[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/save-wiki]] diff --git a/core/wiki/tags/ViewToolbar.tid b/core/wiki/tags/ViewToolbar.tid index 3c3533160..75850e27a 100644 --- a/core/wiki/tags/ViewToolbar.tid +++ b/core/wiki/tags/ViewToolbar.tid @@ -1,2 +1,2 @@ title: $:/tags/ViewToolbar -list: [[$:/core/ui/ViewToolbar/more]] [[$:/core/ui/ViewToolbar/info]] [[$:/core/ui/ViewToolbar/clone]] [[$:/core/ui/ViewToolbar/edit]] [[$:/core/ui/ViewToolbar/permalink]] [[$:/core/ui/ViewToolbar/permaview]] [[$:/core/ui/ViewToolbar/close-others]] [[$:/core/ui/ViewToolbar/close]] +list: [[$:/core/ui/Buttons/more]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]]