Closed botboy0 closed 2 years ago
The problem lies in your used SimpleTheme at line 92, which does not specify any colors for the ProgressBar. This causes the filled part and missing part to both be drawn in black on a black background. You should set the theme definition for ProgressBar or use some build in themes.
TextColor.ANSI foregroundColor = TextColor.ANSI.WHITE_BRIGHT;
SimpleTheme theme = new SimpleTheme(foregroundColor, TextColor.ANSI.BLACK);
Definition progressBarDefinition = theme.addOverride(ProgressBar.class,
foregroundColor, ANSI.BLUE); // blue for missing part
progressBarDefinition.setActive(foregroundColor, TextColor.ANSI.GREEN); // green for filled part
window.setTheme(theme);
// or use some other registered dark themes
window.setTheme(LanternaThemes.getRegisteredTheme("blaster"));
Thanks @Chris-GW, I'll close this. @botboy0 please re-open if needed.
Hello, I am currently trying to make a progressbar but whenever I set its value it doesnt update its visual progress apart from changing the text shown on screen
![image](https://user-images.githubusercontent.com/10763071/117497457-cde1dd80-af78-11eb-8a60-e773e3b6ecf8.png)