-
Notifications
You must be signed in to change notification settings - Fork 0
template highlight
Alexander Chernyshev edited this page May 13, 2022
·
8 revisions
OTLoV uses colored highlights extensively. This allows to give fast visual feedback on system status and points of interest. It's important to use colors consistently. For most highlighting you should use background coloring.
Recommended colors and priorities:
Priority | Color, Hex, name | Meaning |
---|---|---|
200 |
#F08080 LightCoral |
Critical status or fault |
150 |
#F2D463
|
Warning / attention required |
100 |
#90D58D
|
Known good status |
50 |
#C9C8CF
|
Minor attention, like no data fetched. |
0 |
#90D58D
|
As Foreground color for insignificant positive things, like command completion. |
0 |
#C9C8CF
|
As Foreground color for insignificant things to grey them out. |
0 |
#ADD8E6 LightBlue |
A helper color to distinguish things, like owner, or to highlight a certain field, like SN for the user. |
0 |
#F5DEB3 Wheat |
A helper color to distinguish things, like owner, or to highlight a certain field, like SN for the user. |
<Highlight Key='' Priority='#' Background='' Foreground='' Match='' Exclude='' RO='' Pattern='' Comment=''/>
Name | Type | Meaning |
---|---|---|
Key |
text | Any text. Used as a key for highlights comparison. There could be only 1 same-key highlight. Useful to limit for statuses. |
Priority |
0...255 | Integer value. Default = 128. The higher - the more priority for a highlight. Higher priority highlights can overwrite lower priority ones. |
Background |
Color | Background color to apply. Default = transparent. Background color is the recommended way for highlights. |
Foreground |
Color | Foreground color to apply. Default = black. |
Match , Exclude , RO
|
Match | A Match rule to prefilter lines |
Pattern |
RegEx pattern | A RegEx pattern to select what exactly to highlight. If not defined - Match values will be used. |
Comment |
text | Text to show in the tooltip. |
Color could be defined either by its hex code or you can use one of named HTML colors.
For the hex code either #RRGGBB
or #AARRGGBB
are supported, where:
-
AA
= alpha byte (0 = transparent, FF = solid) -
RR
= red byte (0 = no red component, FF = maximum red component) -
GG
= green byte -
BB
= blue byte