summaryrefslogtreecommitdiffstats
path: root/doc/rofi-theme.5.markdown
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2022-01-24 22:20:41 +0100
committerGitHub <noreply@github.com>2022-01-24 22:20:41 +0100
commit6e3feee1799d280e246ea088350a6722f6b2e894 (patch)
treef53697f33efdaed2cb77ebd6cda881bbbf915006 /doc/rofi-theme.5.markdown
parent33643d0642e5d4228abf0bb19711ada837f6dff5 (diff)
Add support for setting tabs stops on textboxes (#1571)
* Document new array of values type * Move WIDGET_PADDING_INIT from widget.c to widget-internal.h * Refactor WIDGET_PADDING_INIT macro * Add support for setting tab stops on textbox This allows to emulate a multi-column layout inside the text boxes. The implementation is kinda hackish due to the limitations of the theme parser. The only property type that can contain multiple distance values is Padding, so I used that. * Use new array syntax for tab-stops
Diffstat (limited to 'doc/rofi-theme.5.markdown')
-rw-r--r--doc/rofi-theme.5.markdown13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/rofi-theme.5.markdown b/doc/rofi-theme.5.markdown
index 40398f72..b7ad5ef1 100644
--- a/doc/rofi-theme.5.markdown
+++ b/doc/rofi-theme.5.markdown
@@ -216,6 +216,7 @@ The current theme format supports different types:
* an orientation
* a cursor
* a list of keywords
+ * an array of values
* an environment variable
* Inherit
@@ -450,6 +451,7 @@ style property.
> When no unit is specified, pixels are assumed.
+
## Position
Indicate a place on the window/monitor.
@@ -533,6 +535,13 @@ Specify the type of mouse cursor that is set when the mouse pointer is over the
A list starts with a '[' and ends with a ']'. The entries in the list are comma-separated.
The `keyword` in the list refers to an widget name.
+## Array of values
+
+* Format: `{ value, value, ... }`
+
+An array starts with a '{' and ends with a '}'. The entries in the array are comma-separated.
+Currently, only the integer and distance types are supported as array values.
+
## Environment variable
* Format: `${:alnum:}`
@@ -760,6 +769,10 @@ The following properties are currently supported:
* **placeholder-color**: Color of the placeholder text.
* **blink**: Enable/Disable blinking on an input textbox (Boolean).
* **markup**: Force markup on, beware that only valid pango markup strings are shown.
+* **tab-stops**: array of distances
+ Set the location of tab stops by their distance from the beginning of the line.
+ Each distance should be greater than the previous one.
+ The text appears to the right of the tab stop position (other alignments are not supported yet).
### listview:
* **columns**: integer