You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xplr/docs/en/src/style.md

90 lines
1.2 KiB
Markdown

Style
=====
A style object contains the following information:
- [fg](#fg)
- [bg](#bg)
- [add_modifiers](#add_modifiers)
- [sub_modifiers](#sub_modifiers)
### fg
Type: nullable [Color](#color)
The foreground color.
### bg
Type: nullable [Color](#color)
The background color.
### add_modifiers
Type: nullable list of [Modifier](#modifier)
Modifiers to add.
### sub_modifiers
Type: nullable list of [Modifier](#modifier)
Modifiers to remove.
Color
-----
Color can be one of the following:
- "Reset"
- "Black"
- "Red"
- "Green"
- "Yellow"
- "Blue"
- "Magenta"
- "Cyan"
- "Gray"
- "DarkGray"
- "LightRed"
- "LightGreen"
- "LightYellow"
- "LightBlue"
- "LightMagenta"
- "LightCyan"
- "White"
- { Rgb = { int, int, int } }
- { Indexed = int }
Modifier
--------
Modifier can be one of the following:
- "Bold"
- "Dim"
- "Italic"
- "Underlined"
- "SlowBlink"
- "RapidBlink"
- "Reversed"
- "Hidden"
- "CrossedOut"
Example
-------
```lua
xplr.config.general.cursor.style.fg = "Red"
xplr.config.general.cursor.style.bg = { Rgb = { 100, 150, 200 } }
xplr.config.general.cursor.style.add_modifiers = { "Bold", "Italic" }
xplr.config.general.cursor.style.sub_modifiers = { "Hidden" }
```