From 703ab49c3651c6f9661a9b33b41127c1c930f73b Mon Sep 17 00:00:00 2001 From: Henry Darnell Date: Sun, 12 Jul 2020 21:44:43 -0500 Subject: [PATCH] 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. --- .../java/net/runelite/client/ui/components/ThinProgressBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runelite-client/src/main/java/net/runelite/client/ui/components/ThinProgressBar.java b/runelite-client/src/main/java/net/runelite/client/ui/components/ThinProgressBar.java index f80ff5b740..4b9b798c81 100644 --- a/runelite-client/src/main/java/net/runelite/client/ui/components/ThinProgressBar.java +++ b/runelite-client/src/main/java/net/runelite/client/ui/components/ThinProgressBar.java @@ -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)