From c8cbf6853ecb9e634a65ee3120d4cf41415dd4b2 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 19 Jun 2024 10:24:47 +0100 Subject: [PATCH] Stability badges: Use palette colours I am happy to merge translations of these strings before v5.3.4 releases /cc @BramChen --- core/language/en-GB/Docs/PaletteColours.multids | 4 ++++ core/palettes/Vanilla.tid | 4 ++++ themes/tiddlywiki/vanilla/base.tid | 8 ++++---- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/core/language/en-GB/Docs/PaletteColours.multids b/core/language/en-GB/Docs/PaletteColours.multids index 1c671a67c..bc1b36c3d 100644 --- a/core/language/en-GB/Docs/PaletteColours.multids +++ b/core/language/en-GB/Docs/PaletteColours.multids @@ -65,6 +65,10 @@ sidebar-tab-foreground-selected: Sidebar tab foreground for selected tabs sidebar-tab-foreground: Sidebar tab foreground sidebar-tiddler-link-foreground-hover: Sidebar tiddler link foreground hover sidebar-tiddler-link-foreground: Sidebar tiddler link foreground +stability-stable: Badge for stability level "stable" +stability-experimental: Badge for stability level "experimental" +stability-deprecated: Badge for stability level "deprecated" +stability-legacy: Badge for stability level "legacy" testcase-accent-level-1: Test case accent colour with no nesting testcase-accent-level-2: Test case accent colour with 2nd level nesting testcase-accent-level-3: Test case accent colour with 3rd level nesting or higher diff --git a/core/palettes/Vanilla.tid b/core/palettes/Vanilla.tid index c7c800046..d2b765b02 100644 --- a/core/palettes/Vanilla.tid +++ b/core/palettes/Vanilla.tid @@ -82,6 +82,10 @@ sidebar-tab-foreground: <> sidebar-tiddler-link-foreground-hover: #444444 sidebar-tiddler-link-foreground: #999999 site-title-foreground: <> +stability-stable: #008000 +stability-experimental: #c07c00 +stability-deprecated: #ff0000 +stability-legacy: #0000ff static-alert-foreground: #aaaaaa tab-background-selected: #ffffff tab-background: #d8d8d8 diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index bb658650a..71c5f9361 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -2601,22 +2601,22 @@ a.tc-tiddlylink.tc-plugin-info:hover > .tc-plugin-info-chunk > svg { } .tc-plugin-info-chunk .tc-plugin-info-stability-stable { - border: 1px solid green; + border: 1px solid <>; color: green; } .tc-plugin-info-chunk .tc-plugin-info-stability-experimental { - border: 1px solid #c07c00; + border: 1px solid <>; color: #c07c00; } .tc-plugin-info-chunk .tc-plugin-info-stability-deprecated { - border: 1px solid red; + border: 1px solid <>; color: red; } .tc-plugin-info-chunk .tc-plugin-info-stability-legacy { - border: 1px solid blue; + border: 1px solid <>; color: blue; }