1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-27 13:48:49 +08:00

Undo changes to the donut demo.

This commit is contained in:
Jakub Sobon 2019-04-28 22:05:31 -04:00
parent e9b4ba3613
commit 3dce1b3bab
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7

View File

@ -50,7 +50,7 @@ func playDonut(ctx context.Context, d *donut.Donut, start, step int, delay time.
case <-ticker.C:
switch pt {
case playTypePercent:
if err := d.Percent(100); err != nil {
if err := d.Percent(progress); err != nil {
panic(err)
}
case playTypeAbsolute:
@ -117,22 +117,20 @@ func main() {
t,
container.Border(linestyle.Light),
container.BorderTitle("PRESS Q TO QUIT"),
container.PlaceWidget(green),
/*
container.SplitVertical(
container.Left(
container.SplitVertical(
container.Left(container.PlaceWidget(green)),
container.Right(container.PlaceWidget(blue)),
),
container.SplitVertical(
container.Left(
container.SplitVertical(
container.Left(container.PlaceWidget(green)),
container.Right(container.PlaceWidget(blue)),
),
container.Right(
container.SplitVertical(
container.Left(container.PlaceWidget(yellow)),
container.Right(container.PlaceWidget(red)),
),
),
container.Right(
container.SplitVertical(
container.Left(container.PlaceWidget(yellow)),
container.Right(container.PlaceWidget(red)),
),
),*/
),
),
)
if err != nil {
panic(err)