Commit Graph

10 Commits

Author SHA1 Message Date
aditya-K2
e4ed3bbab7 Rename conn -> CONN ( Also made it Global )
Following Changes have been made:

1. conn -> CONN
2. CONN is now a global as a lot of functions were requiring it and
   passing them as a parameter didn't seem intuitive.
3. In progressBar.go now we are sending only the short path instead of
   absolute path.
2021-11-13 11:32:00 +05:30
aditya-K2
5ad7b90844 Added a config parser
Add a config.yml/config.toml file to $HOME/.config/goMP/ so that user
configurations are read.
2021-11-05 12:40:46 +05:30
aditya-K2
bae972f697 Now the Image is resized according to font Size
Image is now resized according to the font size and also a new
globals.go files is added which contains all the globals.

the Image width can also be changed according to use by adding or
substracting pixels to it by changing the globals

IMAGE_WIDTH_EXTRA_X, IMAGE_WIDTH_EXTRA_Y

Also, now there is no need to specify where the music directory is
the mpd.conf file in `~/.config/mpd/` is automatically parsed for music
directory
2021-10-29 13:54:06 +05:30
aditya-K2
3ad3e58019 Image Previews Implementation 2021-10-24 13:26:10 +05:30
aditya-K2
98a6b0717a minor Changes 2021-10-24 01:34:28 +05:30
aditya-K2
e5e0dad16c Added Padding Between the name and progressBar
Also added color to the title
2021-10-19 11:59:40 +05:30
aditya-K2
9e69ed9f1e Minor Changes to ProgressBar
Some Information from the ProgressBar has been removed.
2021-10-17 22:29:56 +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