From 518c23d06d941b223122f31434e1d8511b2a1d5d Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 17 Oct 2023 16:47:27 +0100 Subject: [PATCH] Use custom palette colours Makes it easier for people to use their own colour scheme for the tour --- .../tour/config-DefaultColourMappings.multids | 24 +++++++++ plugins/tiddlywiki/tour/styles.tid | 50 +++++++++---------- 2 files changed, 49 insertions(+), 25 deletions(-) create mode 100644 plugins/tiddlywiki/tour/config-DefaultColourMappings.multids diff --git a/plugins/tiddlywiki/tour/config-DefaultColourMappings.multids b/plugins/tiddlywiki/tour/config-DefaultColourMappings.multids new file mode 100644 index 000000000..0026b4382 --- /dev/null +++ b/plugins/tiddlywiki/tour/config-DefaultColourMappings.multids @@ -0,0 +1,24 @@ +title: $:/config/DefaultColourMappings/ + +tour-chooser-button-foreground: <> +tour-chooser-button-hover-background: <> +tour-chooser-button-hover-foreground:: <> +tour-chooser-button-selected-background: <> +tour-chooser-button-selected-foreground: <> +tour-chooser-dropdown-foreground: <> +tour-chooser-item-background: <> +tour-chooser-item-border: <> +tour-chooser-item-foreground: <> +tour-chooser-item-shadow: <> +tour-chooser-item-start-background: <> +tour-chooser-item-start-foreground: <> +tour-chooser-item-start-hover-background: <> +tour-chooser-item-start-hover-foreground: <> +tour-fullscreen-background: <> +tour-fullscreen-controls-foreground: <> +tour-navigation-buttons-hover-background: <> +tour-navigation-buttons-hover-foreground: <> +tour-overlay-background: #cbfff8 +tour-overlay-border: #228877 +tour-step-task-background: <> +tour-step-task-foreground: <> diff --git a/plugins/tiddlywiki/tour/styles.tid b/plugins/tiddlywiki/tour/styles.tid index 5293d58e1..8136dc701 100644 --- a/plugins/tiddlywiki/tour/styles.tid +++ b/plugins/tiddlywiki/tour/styles.tid @@ -12,8 +12,8 @@ tags: $:/tags/Stylesheet overflow: auto; -webkit-overflow-scrolling: touch; <> - border: 1px solid #228877; - background: #cbfff8; + border: 1px solid <>; + background: <>; border-radius: 8px; padding: 1em; margin: 0.5em; @@ -26,8 +26,8 @@ tags: $:/tags/Stylesheet } .tc-tour-panel-navigation .tc-btn-big-green:hover { - color: <>; - background: <>; + color: <>; + background: <>; } .tc-tour-panel-fullscreen { @@ -37,7 +37,7 @@ tags: $:/tags/Stylesheet height: auto; box-shadow: none; border: none; - background: <>; + background: <>; margin: 0; border-radius: none; } @@ -45,35 +45,35 @@ tags: $:/tags/Stylesheet .tc-tour-panel-controls .tc-tour-panel-list-button { padding: 2px 8px; border-radius: 1em; - color: <>; + color: <>; text-align: left; } .tc-tour-panel-controls .tc-tour-panel-list-button.tc-selected { - color: <>; - fill: <>; - background: <>; + color: <>; + fill: <>; + background: <>; } .tc-tour-panel-controls .tc-tour-panel-list-button:hover { - background: <>; - color: <>; + background: <>; + color: <>; } .tc-tour-panel-controls .tc-popup .tc-drop-down { font-size: 1em; - color: <>; + color: <>; min-width: auto; } .tc-tour-panel-chooser-item { - border: 1px solid <>; - background: <>; - color: <>; + border: 1px solid <>; + background: <>; + color: <>; padding: 4px 4px 4px 8px; margin: 12px 0; border-radius: 12px; - box-shadow: 3px 3px 5px <>; + box-shadow: 3px 3px 5px <>; display: flex; flex-direction: row; justify-content: space-between; @@ -87,15 +87,15 @@ tags: $:/tags/Stylesheet font-size: 0.7em; vertical-align: baseline; border-radius: 1em; - background: <>; - color: <>; - fill: <>; + background: <>; + color: <>; + fill: <>; text-transform: uppercase; } .tc-tour-panel-chooser-wrapper button:hover { - background: <>; - color: <>; + background: <>; + color: <>; } .tc-tour-panel-fullscreen .tc-tour-panel-controls { @@ -105,7 +105,7 @@ tags: $:/tags/Stylesheet left: 0; right: 0; padding: 4px; - color: <>; + color: <>; } .tc-tour-panel .tc-tour-panel-banner-image { @@ -137,14 +137,14 @@ tags: $:/tags/Stylesheet } .tc-tour-task { - background: <>; - color: <>; + background: <>; + color: <>; padding: 0.5em; border-radius: 1em; } .tc-tour-task svg { - fill: <>; + fill: <>; vertical-align: middle; width: 1.2em; height: 1.2em;