From a0498fc4c4ed263c2728a912e52f0a2d89271163 Mon Sep 17 00:00:00 2001 From: *Kim Zick Date: Fri, 24 Mar 2023 18:04:07 -0400 Subject: [PATCH] plugins/notify: Fix typo for background_colour option (#290) * plugins/notify: Fix typo for background_colour option --- plugins/utils/notify.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/utils/notify.nix b/plugins/utils/notify.nix index 7483f72f..89a6da06 100644 --- a/plugins/utils/notify.nix +++ b/plugins/utils/notify.nix @@ -7,11 +7,21 @@ with lib; let cfg = config.plugins.notify; helpers = import ../helpers.nix {inherit lib;}; + optionWarnings = import ../../lib/option-warnings.nix {inherit lib;}; + basePluginPath = ["plugins" "notify"]; icon = mkOption { type = types.nullOr types.str; default = null; }; in { + imports = [ + (optionWarnings.mkRenamedOption { + # 2023-03-24 + option = basePluginPath ++ ["backgroundColor"]; + newOption = basePluginPath ++ ["backgroundColour"]; + }) + ]; + options.plugins.notify = { enable = mkEnableOption "notify"; @@ -27,7 +37,7 @@ in { description = "Default timeout for notifications"; default = null; }; - backgroundColor = mkOption { + backgroundColour = mkOption { type = types.nullOr types.str; description = "For stages that change opacity this is treated as the highlight between the window"; default = null; @@ -56,7 +66,7 @@ in { setupOptions = with cfg; { stages = stages; timeout = timeout; - background_color = backgroundColor; + background_colour = backgroundColour; minimum_width = minimumWidth; icons = with icons; { ERROR = error;