diff --git a/README.md b/README.md index b6ead55ca2f16d432e21f1b844c4adb85bdfaa1a..67a8f06309836e7eea115b282067098c83caf09d 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,16 @@ then it must have `[ParserName(string)]` attribute. Parser can be configured via `Init` function. In such case, it must return part of bar on each call of `Parse` method. +Module wrappers +--------------- + +In the configuration file, user can add one or more module wrappers as options. +By convention these options start with `_`. +Module wrapper is able change behavior of the Module as it has access to any +communication between Module and Status Bar (`ModuleParent` interface). + +Wrappers are created by `StatusBar.addStandardModuleWrappers`. + Output formats -------------- diff --git a/sample.conf b/sample.conf index 65e8684c8e6bf5c74c43b49bd2ead8fc5d21f67b..6fe2e40a251f4b3ccf496eed85f83381154d22d4 100644 --- a/sample.conf +++ b/sample.conf @@ -290,6 +290,21 @@ timeout = 10 # <time> default 10 # Timeout of each HTTP request. +# Options for all modules +# ======================= + +[constant] +text = Hi +# Begin of some module for showing options + +_color = blue +# <color> +# Overwrite color of this module output + +_default_color = red +# <color> +# Set color if module don't set any + # Parsers: # ========