Commit Graph

5 Commits

Author SHA1 Message Date
aditya-K2
97b2e4c4bc Hopefully this fixes #2
the position is now calculated with the help of font_pixel_width and
font_pixel_height

font_pixel_width = Total X Pixels / Total Columns
font_pixel_height = Total Y Pixels / Total Rows

which is then multiplied to row and column co-ordinates of preview box to get it's
pixel position.
2021-10-29 10:08:09 +05:30
aditya-K2
c3ede5403e minor changes in formatting
fixed the blinking text issue
2021-10-17 22:28:06 +05:30
aditya-K2
b6133cd1c9 Added Title To progressBar
The progressBar now has title which displays
the Current Status.
2021-10-17 13:15:52 +05:30
aditya-K2
7ce6def361 rename convertToStrings -> strTime 2021-10-17 11:21:26 +05:30
aditya-K2
a8f6c78461 A Simple Implementation of ProgressBar
The ProgressBar is just a string which has a length equal to the
innerRect of the table. The length of the innerRect is considered to be
100% and the rest of the progress is tracked in relation to it.
The Progress is displayed with the help of the color formatting strings
in tview
       link: https://pkg.go.dev/github.com/rivo/tview#hdr-Colors

the progress length which is calculated by finding the percentage of the
innerRect that matches with the given completion and then at that length
the "[-:-:-]" is inserted with the help of the insertAt function in
utils.go. "[-:-:-]" represents resetting of colors.
2021-10-17 11:10:38 +05:30