From e5db52a8ac01298003df8bad28a3b5dd2779d2a5 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 6 Nov 2008 14:19:04 +0000 Subject: [PATCH] add a color scheme parameter to --- content/style.js | 2 +- locale/en-US/autocommands.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/content/style.js b/content/style.js index 6b0e3372..0aadb73d 100644 --- a/content/style.js +++ b/content/style.js @@ -381,7 +381,7 @@ liberator.registerObserver("load_commands", function () let scheme = args.arguments[0]; if (io.sourceFromRuntimePath(["colors/" + scheme + ".vimp"])) - autocommands.trigger("ColorScheme", {}); + autocommands.trigger("ColorScheme", { color: scheme }); // XXX: Best name? else liberator.echoerr("E185: Cannot find color scheme " + scheme); }, diff --git a/locale/en-US/autocommands.txt b/locale/en-US/autocommands.txt index ea58c675..ca9ae0f9 100644 --- a/locale/en-US/autocommands.txt +++ b/locale/en-US/autocommands.txt @@ -49,6 +49,7 @@ The following keywords are available where relevant: ** The size of a downloaded file. ** The target destination of a download. ** The new fullscreen state. +** The color scheme name. -------------------------------------------------------------- ________________________________________________________________________________