1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

[Doc] Add small (Extra) highlight section to rofi-theme

This commit is contained in:
Dave Davenport 2020-09-06 11:59:41 +02:00
parent f5bb9d2cbf
commit bd332e7b7e
2 changed files with 58 additions and 0 deletions

View file

@ -1011,6 +1011,41 @@ Do not reduce the number of columns shown when number of visible elements is not
.PP .PP
Each element is a \fB\fCbox\fR called \fB\fCelement\fR\&. Each \fB\fCelement\fR can contain an \fB\fCelement\-icon\fR and \fB\fCelement\-text\fR\&. Each element is a \fB\fCbox\fR called \fB\fCelement\fR\&. Each \fB\fCelement\fR can contain an \fB\fCelement\-icon\fR and \fB\fCelement\-text\fR\&.
.SS listview text highlight:
.PP
The \fB\fCelement\-text\fR widget in the \fB\fClistview\fR is the one used to show the text.
On this widget set the \fB\fChighlight\fR property (only place this property is used) to change
the style of highlighting.
The \fB\fChighlight\fR property consist of the \fB\fCtext\-style\fR property and a color.
.PP
To disable highlighting:
.PP
.RS
.nf
element\-text {
highlight: None;
}
.fi
.RE
.PP
To set to red underlined:
.PP
.RS
.nf
element\-text {
highlight: underline red;
}
.fi
.RE
.SH Layout .SH Layout
.PP .PP
The new format allows the layout of the \fBrofi\fP window to be tweaked extensively. The new format allows the layout of the \fBrofi\fP window to be tweaked extensively.

View file

@ -701,6 +701,29 @@ The following properties are currently supported:
Each element is a `box` called `element`. Each `element` can contain an `element-icon` and `element-text`. Each element is a `box` called `element`. Each `element` can contain an `element-icon` and `element-text`.
### listview text highlight:
The `element-text` widget in the `listview` is the one used to show the text.
On this widget set the `highlight` property (only place this property is used) to change
the style of highlighting.
The `highlight` property consist of the `text-style` property and a color.
To disable highlighting:
```css
element-text {
highlight: None;
}
```
To set to red underlined:
```css
element-text {
highlight: underline red;
}
```
## Layout ## Layout
The new format allows the layout of the **rofi** window to be tweaked extensively. The new format allows the layout of the **rofi** window to be tweaked extensively.