Skip to content

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 bar #F08080 LightCoral Critical status or fault
150 bar #F2D463 Warning / attention required
100 bar #90D58D Known good status
50 bar #C9C8CF Minor attention, like no data fetched.
0 bar #90D58D As Foreground color for insignificant positive things, like command completion.
0 bar #C9C8CF As Foreground color for insignificant things to grey them out.
0 bar #ADD8E6 LightBlue A helper color to distinguish things, like owner, or to highlight a certain field, like SN for the user.
0 bar #F5DEB3 Wheat A helper color to distinguish things, like owner, or to highlight a certain field, like SN for the user.

XML syntax

<Highlight Key='' Priority='#' Background='' Foreground='' Match='' Exclude='' RO='' Pattern='' Comment=''/>

XML attributes

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

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

English Русский

End-user

Templates development

Clone this wiki locally