Skip to content

Conversation

@elkowar
Copy link

@elkowar elkowar commented Jun 21, 2020

This PR adds the option to configure up to 5 different characters for the progressbar.
This allows users to for example use powerline-fonts to theme their progress bar.

The characters provided are:

  • start of progressbar
  • body of elapsed part
  • separator
  • body of remaining part
  • end of progressbar.

…acters for start, end and seperator of the bar
@arybczak
Copy link
Collaborator

arybczak commented Aug 3, 2020

Thanks! Can you show one/a few screens of how can this be used to prettify the progressbar?

@arybczak
Copy link
Collaborator

arybczak commented Aug 3, 2020

Also, is this change backward compatible? I.e. if someone has it set to 2-3 chars, will his progressbar change after this PR is merged?

@elkowar
Copy link
Author

elkowar commented Aug 5, 2020

the change should be perfectly backwards compatible, as i made sure that the behaviour on 2 and 3 characters is the same as before.

examples

light rounding of the outer edges of the bar
tam_ncmpcpp

simple ascii characters
screenshot_1596625651

@elkowar
Copy link
Author

elkowar commented Sep 26, 2020

any updates on this @arybczak ?

@chxp82q
Copy link

chxp82q commented Oct 24, 2020

@arybczak I would love to see this merged. Any updates?

if (Config.progressbar[2] != '\0')

// set the different bar characters depending on the amount of configured chars
char bar_start_char = Config.progressbar[0];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need to be wchar_t because progressbar is std::wstring.

doc/ncmpcpp.1 Outdated
.TP
.B progressbar_look = TEXT
This variable defines the look of progressbar. Note that it has to be exactly two or three characters long.
This variable defines the look of progressbar. Note that it has to be between two and five characters long.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a description of all possible states, i.e. what happens when this is set to 2/3/4/5 characters.

@arybczak
Copy link
Collaborator

Ping.

@elkowar
Copy link
Author

elkowar commented Apr 28, 2021

ohhh, sorry, I had completely forgotten about this at this point ^^' I'll fix the issues later today!

@lokesh-krishna
Copy link

@elkowar any way I can pitch in? Would love to see this merged. I can help with the documentation bit.

@elkowar
Copy link
Author

elkowar commented Aug 25, 2021

@elkowar any way I can pitch in? Would love to see this merged. I can help with the documentation bit.

If you wanna take this over, feel free to. I've stopped using ncmpcpp a while ago, and haven't really had the motivation to finish this, I'm afraid ^^'

@lokesh-krishna
Copy link

I'd be glad to. How does one take over a PR though? Should I make a fresh one implementing the same changes?

@lokesh-krishna
Copy link

@arybczak Is it looking okay now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants