From e40b83f141e225178487e5386f08ec7b39d3818d Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 19 Oct 2023 08:59:07 +0100 Subject: [PATCH] More custom colours --- .../tour/config-DefaultColourMappings.multids | 7 ++++++ plugins/tiddlywiki/tour/styles.tid | 22 +++++++++++++++++++ plugins/tiddlywiki/tour/tour-panel.tid | 6 ++--- 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/plugins/tiddlywiki/tour/config-DefaultColourMappings.multids b/plugins/tiddlywiki/tour/config-DefaultColourMappings.multids index 0026b4382..d753333f9 100644 --- a/plugins/tiddlywiki/tour/config-DefaultColourMappings.multids +++ b/plugins/tiddlywiki/tour/config-DefaultColourMappings.multids @@ -16,9 +16,16 @@ tour-chooser-item-start-hover-background: <> tour-chooser-item-start-hover-foreground: <> tour-fullscreen-background: <> tour-fullscreen-controls-foreground: <> +tour-navigation-buttons-back-background: red +tour-navigation-buttons-back-foreground: white +tour-navigation-buttons-hint-background: purple +tour-navigation-buttons-hint-foreground: white tour-navigation-buttons-hover-background: <> tour-navigation-buttons-hover-foreground: <> +tour-navigation-buttons-next-background: purple +tour-navigation-buttons-next-foreground: white tour-overlay-background: #cbfff8 tour-overlay-border: #228877 +tour-step-heading-background: none tour-step-task-background: <> tour-step-task-foreground: <> diff --git a/plugins/tiddlywiki/tour/styles.tid b/plugins/tiddlywiki/tour/styles.tid index 8136dc701..d71384ad2 100644 --- a/plugins/tiddlywiki/tour/styles.tid +++ b/plugins/tiddlywiki/tour/styles.tid @@ -25,6 +25,21 @@ tags: $:/tags/Stylesheet margin: 0 1em 0 0; } +.tc-tour-panel-navigation .tc-btn-big-green.tc-tour-panel-navigation-back { + background: <>; + color: <>; +} + +.tc-tour-panel-navigation .tc-btn-big-green.tc-tour-panel-navigation-next { + background: <>; + color: <>; +} + +.tc-tour-panel-navigation .tc-btn-big-green.tc-tour-panel-navigation-hint { + background: <>; + color: <>; +} + .tc-tour-panel-navigation .tc-btn-big-green:hover { color: <>; background: <>; @@ -98,6 +113,13 @@ tags: $:/tags/Stylesheet color: <>; } +.tc-tour-panel-fullscreen h1 { + background: <>; + padding: 0.25em; + margin: -0.25em; + border-radius: 4px; +} + .tc-tour-panel-fullscreen .tc-tour-panel-controls { /* display: none; */ position: fixed; diff --git a/plugins/tiddlywiki/tour/tour-panel.tid b/plugins/tiddlywiki/tour/tour-panel.tid index f53bc5bad..413139fb2 100644 --- a/plugins/tiddlywiki/tour/tour-panel.tid +++ b/plugins/tiddlywiki/tour/tour-panel.tid @@ -7,13 +7,13 @@ tags: $:/tags/PageTemplate \procedure tv-action-refresh-policy() always
<%if [function[tour-is-not-first-step]] %> - <$button class="tc-btn-big-green" style="background-color: red;"> + <$button class="tc-btn-big-green tc-tour-panel-navigation-back"> <> back <%endif%> <%if [function[tour-is-not-last-step]] %> - <$button class="tc-btn-big-green" style="background-color: purple;"> + <$button class="tc-btn-big-green tc-tour-panel-navigation-next"> <> next @@ -38,7 +38,7 @@ tags: $:/tags/PageTemplate <$transclude tiddler=<> mode="block"/> <%if [{$:/state/tour/step}has[selector]] %>
- <$button class="tc-btn-big-green" style="background-color: red;"> + <$button class="tc-btn-big-green tc-tour-panel-navigation-hint"> <$action-sendmessage $message="tm-spotlight-element" selector={{{ [{$:/state/tour/step}get[selector]] }}} selector-fallback-1={{{ [{$:/state/tour/step}get[selector-fallback-1]] }}} selector-fallback-2={{{ [{$:/state/tour/step}get[selector-fallback-2]] }}}/> show me a hint