Sumon Sutrodhar 1623e315f8
Update gauge_um.go
This function will set empty guage color with given color

Signed-off-by: Sumon Sutrodhar <sumon.cse14@gmail.com>
2023-08-07 11:25:26 +02:00
2022-07-02 19:13:12 +10:00
2022-07-03 09:56:39 +10:00
2022-07-02 19:13:12 +10:00
2022-07-03 09:45:26 +10:00
2022-07-02 18:57:56 +10:00
2022-07-02 19:01:13 +10:00
2022-12-17 12:32:56 +11:00
2022-07-03 09:45:26 +10:00
2022-07-03 09:45:26 +10:00
2023-08-07 11:25:26 +02:00
2023-02-24 11:04:18 +00:00
2023-02-24 11:04:18 +00:00
2021-12-19 15:06:48 +11:00
2022-07-02 19:02:04 +10:00
2022-07-02 18:57:56 +10:00
2022-12-17 12:41:00 +11:00
2022-12-17 12:32:56 +11:00
2022-10-23 15:29:56 +02:00

tvxwidgets

PkgGoDev Go Report

tvxwidgets provides extra widgets for tview.

Screenshot

Widgets

Example

package main

import (
	"time"

	"github.com/gdamore/tcell/v2"
	"github.com/navidys/tvxwidgets"
	"github.com/rivo/tview"
)

func main() {
	app := tview.NewApplication()
	gauge := tvxwidgets.NewActivityModeGauge()
	gauge.SetTitle("activity mode gauge")
	gauge.SetPgBgColor(tcell.ColorOrange)
	gauge.SetRect(10, 4, 50, 3)
	gauge.SetBorder(true)

	update := func() {
		tick := time.NewTicker(500 * time.Millisecond)
		for {
			select {
			case <-tick.C:
				gauge.Pulse()
				app.Draw()
			}
		}
	}
	go update()

	if err := app.SetRoot(gauge, false).EnableMouse(true).Run(); err != nil {
		panic(err)
	}
}

Description
tvxwidgets provides extra widgets for tview
Readme MIT 1.3 MiB
Languages
Go 93.8%
Makefile 5.1%
Shell 1.1%