Skip to content

How to change Text Color #162

@Motasem-E

Description

@Motasem-E

Hi, I was able to change the colour of the progress bar, but not the text itself. Is there any way to do that?
I'm using this setup:

ProgressBarBuilder pbb = ProgressBar.builder()
.setStyle(ProgressBarStyle.builder()
.colorCode((byte) 32) // the ANSI color code
.block('█')
.rightBracket("]")
.leftBracket("[")
.space(' ')
.build()
).showSpeed(new DecimalFormat("#.##"))
.setInitialMax(max)
.setTaskName(name)
.continuousUpdate()
.setUnit("req", 1);

this.progressBar = pbb.build();

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions