ThinProgressBar: Further darken background color (#11916)

Most colors will not be of a sufficient (3:1) contrast ratio when being
darkened only once. This commit darkens the background color to reach
that threshold to be more clearly differentiated from the foreground
color.
This commit is contained in:
Henry Darnell
2020-07-12 21:44:43 -05:00
committed by GitHub
parent 230b214e53
commit 703ab49c36

View File

@@ -61,7 +61,7 @@ public class ThinProgressBar extends JPanel
public void setForeground(Color color)
{
super.setForeground(color);
setBackground(color.darker());
setBackground(color.darker().darker());
}
public void setMaximumValue(int maximumValue)