Commit Graph

9 Commits

Author SHA1 Message Date
Sasha Koshka 22e9aaf60e Made it look cooler 2022-10-14 02:30:44 -04:00
aditya-K2 06da246c3a Using QueueUpdateDraw() instead of Draw()
The Draw() function still seems to slow down the App
Hence Using QueueUpdateDraw() this makes it a little faster

The Problem now is that the ProgressBar constantly makes request to mpd
which in turn causes the slow down.
2022-10-03 15:37:26 +05:30
aditya-K2 ea3fc105a4 simple seeking implementation 2022-09-09 01:31:51 +05:30
aditya-K2 b2c5575c8b Using `fhs/gompd/v2` 2022-09-09 00:47:26 +05:30
aditya-K2 a8959a10e5 Added Info for ProgressBar 2022-08-29 18:04:34 +05:30
aditya-K2 d7044c48b1 New progressBar Primitive
Previous Implementation of progressBar wasn't clean and for a long time
I wanted to make progressBar a Primitive. Which also makes it project
agnostic.

Following changes have been made:

1. Moved `utils.GetText` to `ui.GetProgressGlyph` (As it had no use other
   than for the progressBar
2. Removed the old Implementation of progressBar

How progressBar works as of right now:

All the Values for the progressBar are provided through the
ProgressFunction()

The ProgressFunction should return
Title (Bar's Title), TopText (Box's Title), BarText (The Text Inside the
progressBar), Percentage(Float64 representing the progress Percentage)
2022-08-29 17:36:36 +05:30
aditya-K2 6405bebeed minor formatting change 2021-12-23 21:12:09 +05:30
aditya-K2 f56eb1cf1f Removing Globals
Globals are no longer needed instead I am connecting each part with (
what were previously ) globals. Also Renaming SetRenderer to
ConnectRenderer which describes the name more precisely
2021-12-23 20:20:27 +05:30
aditya-K2 0d9227e019 moving app.go progressbar.go to the new ui package 2021-12-22 20:39:01 +05:30
Renamed from progressBar.go (Browse further)