From 4eaec5c7b1b3453b21f9146f9f29f1a812618f09 Mon Sep 17 00:00:00 2001 From: luxick Date: Thu, 22 Jan 2026 20:54:50 +0100 Subject: [PATCH] Make location link color customizable --- README.md | 16 ++++++++++++++++ script.js | 1 - style.css | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) delete mode 100644 script.js diff --git a/README.md b/README.md index ad234a9..c141436 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,22 @@ Key settings: URL of a local client service used by `{{open>...}}` and directory links. See luxtools-client. +### Template style settings + +The `{{open>...}}` links and directory “open” links use a dedicated color +placeholder so they can be customized in **Template Style Settings**. + +- **Location Links** (`__luxtools_locationlink__`) + Default: `#b57d35` + +To be able to customize the color via the UI add the following to your local template +style file at `conf/tpl//style.ini` under the +`[replacements]` section: + +``` +__luxtools_locationlink__ = "#b57d35" ; @ini_luxtools_locationlink +``` + ## Features and usage diff --git a/script.js b/script.js deleted file mode 100644 index d5021b4..0000000 --- a/script.js +++ /dev/null @@ -1 +0,0 @@ -/* Deprecated: JavaScript modules moved into the js/ folder. */ diff --git a/style.css b/style.css index d4eccd1..c3f6dcb 100644 --- a/style.css +++ b/style.css @@ -34,7 +34,7 @@ div.luxtools-plugin a.luxtools-open, div.luxtools-plugin a.luxtools-open:visited, a.luxtools-open, a.luxtools-open:visited { - color: #b57d35 !important; + color: @ini_luxtools_locationlink !important; } /* Standalone {{open>...}} links are not wrapped in div.luxtools-plugin. */