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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user