Added support for label align in gauges.

This commit is contained in:
Matteo Kloiber
2015-04-21 17:41:52 +02:00
parent 3968b02432
commit 137d2a7eb2
4 changed files with 29 additions and 4 deletions

View File

@@ -54,6 +54,7 @@ func main() {
g3.Y = 11
g3.Border.Label = "Gauge with custom label"
g3.Label = "{{percent}}% (100MBs free)"
g3.Align = termui.AlignRight
termui.Render(g0, g1, g2, g3)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 32 KiB