diff --git a/_site/content/posts/configuration/attributes.md b/_site/content/posts/configuration/attributes.md new file mode 100644 index 00000000..4e5dc9a5 --- /dev/null +++ b/_site/content/posts/configuration/attributes.md @@ -0,0 +1,63 @@ +--- +title: "Attributes" +date: 2018-05-16T21:51:23-07:00 +draft: false +--- + +This page describes the top-level attributes that can be added to +`config.yml`. + +```yaml +wtf: + colors: + border: + Focusable: "darkslateblue" + focused: "orange" + normal: "gray" + grid: + # How _wide_ the columns are, in terminal characters. In this case we have + # six columns, each of which are 35 characters wide + columns: [35, 35, 35, 35, 35, 35] + + # How _high_ the rows are, in terminal lines. In this case we have five rows + # that support ten line of text, one of three lines, and one of four + rows: [10, 10, 10, 10, 10, 3, 4] + # The app redraws itself once a second + refreshInterval: 1 +``` + +### Attributes + +`colors.border.focusable`
+The color in which to draw the border of widgets that can accept +keyboard focus.
+Values: Any X11 +color name. + +`colors.border.focused`
+The color in which to draw the border of the widget that currently has +keyboard focus.
+Values: Any X11 +color name. + +`colors.border.normal`
+The color in which to draw the borders of the widgets that cannot accept +focus.
+Values: Any X11 +color name. + +`grid.columns`
+An array that defines the widths of all the columns.
+Values: See tview's +Grid for details. + +`grid.rows`
+An array that defines the heights of all the rows.
+Values: See tview's +Grid for details. + +`refreshInterval`
+How often, in seconds, the UI refreshes itself.
+**Note:** This implementation is probably wrong and buggy and likely to +change.
+Values: A positive integer, `0..n`. diff --git a/_site/themes/hyde-hyde/layouts/partials/sidebar.html b/_site/themes/hyde-hyde/layouts/partials/sidebar.html index 777e421a..94f26920 100644 --- a/_site/themes/hyde-hyde/layouts/partials/sidebar.html +++ b/_site/themes/hyde-hyde/layouts/partials/sidebar.html @@ -14,6 +14,8 @@ diff --git a/docs/404.html b/docs/404.html index 0efa1daa..1e861e61 100644 --- a/docs/404.html +++ b/docs/404.html @@ -55,6 +55,8 @@ diff --git a/docs/categories/index.html b/docs/categories/index.html index 520ec572..e4c0d211 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -57,6 +57,8 @@ diff --git a/docs/index.html b/docs/index.html index 89f71ac1..00adc709 100644 --- a/docs/index.html +++ b/docs/index.html @@ -56,6 +56,8 @@ diff --git a/docs/index.xml b/docs/index.xml index 77b38673..432776d5 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -6,11 +6,21 @@ Recent content on WTF Hugo -- gohugo.io en-us - Thu, 10 May 2018 12:41:50 -0700 + Wed, 16 May 2018 21:51:23 -0700 + + Attributes + http://wtfutil.com/posts/configuration/attributes/ + Wed, 16 May 2018 21:51:23 -0700 + + http://wtfutil.com/posts/configuration/attributes/ + This page describes the top-level attributes that can be added to config.yml. +wtf:colors:border:Focusable:"darkslateblue"focused:"orange"normal:"gray"grid:# How _wide_ the columns are, in terminal characters. In this case we have# six columns, each of which are 35 characters widecolumns:[35,35,35,35,35,35]# How _high_ the rows are, in terminal lines. In this case we have five rows# that support ten line of text, one of three lines, and one of fourrows:[10,10,10,10,10,3,4]# The app redraws itself once a secondrefreshInterval:1 Attributes colors. + + Todo http://wtfutil.com/posts/modules/todo/ diff --git a/docs/posts/configuration/attributes/index.html b/docs/posts/configuration/attributes/index.html new file mode 100644 index 00000000..81329003 --- /dev/null +++ b/docs/posts/configuration/attributes/index.html @@ -0,0 +1,175 @@ + + + + + + + + + + + + +Attributes | WTF + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

Attributes

+ +
+ +
+ + + +

This page describes the top-level attributes that can be added to +config.yml.

+
wtf:
+  colors:
+    border:
+      Focusable: "darkslateblue"
+      focused: "orange"
+      normal: "gray"
+  grid:
+    # How _wide_ the columns are, in terminal characters. In this case we have
+    # six columns, each of which are 35 characters wide
+    columns: [35, 35, 35, 35, 35, 35]
+
+    # How _high_ the rows are, in terminal lines. In this case we have five rows
+    # that support ten line of text, one of three lines, and one of four
+    rows: [10, 10, 10, 10, 10, 3, 4]
+  # The app redraws itself once a second
+  refreshInterval: 1
+

Attributes

+ +

colors.border.focusable
+The color in which to draw the border of widgets that can accept +keyboard focus.
+Values: Any X11 +color name.

+ +

colors.border.focused
+The color in which to draw the border of the widget that currently has +keyboard focus.
+Values: Any X11 +color name.

+ +

colors.border.normal
+The color in which to draw the borders of the widgets that cannot accept +focus.
+Values: Any X11 +color name.

+ +

grid.columns
+An array that defines the widths of all the columns.
+Values: See tview’s +Grid for details.

+ +

grid.rows
+An array that defines the heights of all the rows.
+Values: See tview’s +Grid for details.

+ +

refreshInterval
+How often, in seconds, the UI refreshes itself.
+Note: This implementation is probably wrong and buggy and likely to +change.
+Values: A positive integer, 0..n.

+ +
+ +
+ + + + diff --git a/docs/posts/configuration/index.html b/docs/posts/configuration/index.html index 06bc8b42..f9b12d27 100644 --- a/docs/posts/configuration/index.html +++ b/docs/posts/configuration/index.html @@ -55,6 +55,8 @@ diff --git a/docs/posts/glossary/index.html b/docs/posts/glossary/index.html index de5c6a8a..ce83de88 100644 --- a/docs/posts/glossary/index.html +++ b/docs/posts/glossary/index.html @@ -55,6 +55,8 @@ diff --git a/docs/posts/index.html b/docs/posts/index.html index 9898e02f..39b6a570 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -57,6 +57,8 @@ @@ -92,6 +94,13 @@

Posts