diff options
author | Dave Davenport <qball@gmpclient.org> | 2019-12-26 14:24:10 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2019-12-26 14:24:10 +0100 |
commit | f3bb043df09190063665176d4afb712340c4f716 (patch) | |
tree | 085937800baa7dcb2726f8133c2df4840a37f1a2 /doc | |
parent | 2c56e5ca330bee411e2544ff8b10dc3330c4e8e9 (diff) |
[Textbox] Add placeholder.
Fixes: #1020
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rofi-theme.5 | 26 | ||||
-rw-r--r-- | doc/rofi-theme.5.markdown | 24 |
2 files changed, 28 insertions, 22 deletions
diff --git a/doc/rofi-theme.5 b/doc/rofi-theme.5 index 72918a54..55f585cf 100644 --- a/doc/rofi-theme.5 +++ b/doc/rofi-theme.5 @@ -1043,28 +1043,32 @@ The offset of the window to the anchor point, allowing you to push the window le .SS textbox: .RS .IP \(bu 2 -\fBbackground\-color\fP: color +\fBbackground\-color\fP: color .IP \(bu 2 -\fBborder\-color\fP: the color used for the border around the widget. +\fBborder\-color\fP: the color used for the border around the widget. .IP \(bu 2 -\fBfont\fP: the font used by this textbox (string). +\fBfont\fP: the font used by this textbox (string). .IP \(bu 2 -\fBstr\fP: the string to display by this textbox (string). +\fBstr\fP: the string to display by this textbox (string). .IP \(bu 2 -\fBvertical\-align\fP: vertical alignment of the text (\fB\fC0\fR top, \fB\fC1\fR bottom). +\fBvertical\-align\fP: vertical alignment of the text (\fB\fC0\fR top, \fB\fC1\fR bottom). .IP \(bu 2 -\fBhorizontal\-align\fP: horizontal alignment of the text (\fB\fC0\fR left, \fB\fC1\fR right). +\fBhorizontal\-align\fP: horizontal alignment of the text (\fB\fC0\fR left, \fB\fC1\fR right). .IP \(bu 2 -\fBtext\-color\fP: the text color to use. +\fBtext\-color\fP: the text color to use. .IP \(bu 2 -\fBhighlight\fP: text style {color}. +\fBhighlight\fP: text style {color}. color is optional, multiple highlight styles can be added like: bold underline italic #000000; .IP \(bu 2 -\fBwidth\fP: override the desired width for the textbox. +\fBwidth\fP: override the desired width for the textbox. .IP \(bu 2 -\fBcontent\fP: Set the displayed text (String). +\fBcontent\fP: Set the displayed text (String). .IP \(bu 2 -\fBblink\fP: Enable/Disable blinking on an input textbox (Boolean). +\fBplaceholder\fP: Set the displayed text (String) when nothing is entered. +.IP \(bu 2 +\fBplaceholder\-color\fP: Color of the placeholder text. +.IP \(bu 2 +\fBblink\fP: Enable/Disable blinking on an input textbox (Boolean). .RE diff --git a/doc/rofi-theme.5.markdown b/doc/rofi-theme.5.markdown index b7bc8b61..c1f05e20 100644 --- a/doc/rofi-theme.5.markdown +++ b/doc/rofi-theme.5.markdown @@ -639,18 +639,20 @@ The following properties are currently supported: ### textbox: -* **background-color**: color -* **border-color**: the color used for the border around the widget. -* **font**: the font used by this textbox (string). -* **str**: the string to display by this textbox (string). -* **vertical-align**: vertical alignment of the text (`0` top, `1` bottom). -* **horizontal-align**: horizontal alignment of the text (`0` left, `1` right). -* **text-color**: the text color to use. -* **highlight**: text style {color}. +* **background-color**: color +* **border-color**: the color used for the border around the widget. +* **font**: the font used by this textbox (string). +* **str**: the string to display by this textbox (string). +* **vertical-align**: vertical alignment of the text (`0` top, `1` bottom). +* **horizontal-align**: horizontal alignment of the text (`0` left, `1` right). +* **text-color**: the text color to use. +* **highlight**: text style {color}. color is optional, multiple highlight styles can be added like: bold underline italic #000000; -* **width**: override the desired width for the textbox. -* **content**: Set the displayed text (String). -* **blink**: Enable/Disable blinking on an input textbox (Boolean). +* **width**: override the desired width for the textbox. +* **content**: Set the displayed text (String). +* **placeholder**: Set the displayed text (String) when nothing is entered. +* **placeholder-color**: Color of the placeholder text. +* **blink**: Enable/Disable blinking on an input textbox (Boolean). ### listview: * **columns**: integer |