Skip to content
Snippets Groups Projects
Commit 25bd8488 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Add ModuleWrappers supprot and WrapperColor and WrapperDefaultColor: Documentation

parent 5c0f0f44
No related branches found
No related tags found
No related merge requests found
......@@ -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
--------------
......
......@@ -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:
# ========
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment