Skip to content

Add more options to configure the progressbar#392

Open
elkowar wants to merge 4 commits into
ncmpcpp:masterfrom
elkowar:progressbar_more_different_characters
Open

Add more options to configure the progressbar#392
elkowar wants to merge 4 commits into
ncmpcpp:masterfrom
elkowar:progressbar_more_different_characters

Conversation

@elkowar

@elkowar elkowar commented Jun 21, 2020

Copy link
Copy Markdown

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

arybczak commented Aug 3, 2020

Copy link
Copy Markdown
Collaborator

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

@arybczak

arybczak commented Aug 3, 2020

Copy link
Copy Markdown
Collaborator

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

elkowar commented Aug 5, 2020

Copy link
Copy Markdown
Author

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

elkowar commented Sep 26, 2020

Copy link
Copy Markdown
Author

any updates on this @arybczak ?

@chxp82q

chxp82q commented Oct 24, 2020

Copy link
Copy Markdown

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

Comment thread src/statusbar.cpp Outdated
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
Copy Markdown
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.

Comment thread 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
Copy Markdown
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
Copy Markdown
Collaborator

Ping.

@elkowar

elkowar commented Apr 28, 2021

Copy link
Copy Markdown
Author

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

@lokesh-krishna

Copy link
Copy Markdown

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

@elkowar

elkowar commented Aug 25, 2021

Copy link
Copy Markdown
Author

@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
Copy Markdown

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
Copy Markdown

@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