From e840fa4bc4768c6febe7ee2e8188446f192e285a Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Wed, 26 Aug 2020 11:06:37 +1000 Subject: [PATCH] Reduce amount of green on white --- Signal/src/Loki/Components/Button.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Signal/src/Loki/Components/Button.swift b/Signal/src/Loki/Components/Button.swift index 6ad7163e8..81449460e 100644 --- a/Signal/src/Loki/Components/Button.swift +++ b/Signal/src/Loki/Components/Button.swift @@ -35,26 +35,26 @@ final class Button : UIButton { private func setUpStyle() { let fillColor: UIColor switch style { - case .unimportant: fillColor = Colors.unimportantButtonBackground + case .unimportant: fillColor = isLightMode ? UIColor.clear : Colors.unimportantButtonBackground case .regular: fillColor = UIColor.clear case .prominentOutline: fillColor = UIColor.clear - case .prominentFilled: fillColor = Colors.accent + case .prominentFilled: fillColor = isLightMode ? Colors.text : Colors.accent case .regularBorderless: fillColor = UIColor.clear } let borderColor: UIColor switch style { case .unimportant: borderColor = isLightMode ? Colors.text : Colors.unimportantButtonBackground case .regular: borderColor = Colors.text - case .prominentOutline: borderColor = Colors.accent - case .prominentFilled: borderColor = Colors.accent + case .prominentOutline: borderColor = isLightMode ? Colors.text : Colors.accent + case .prominentFilled: borderColor = isLightMode ? Colors.text : Colors.accent case .regularBorderless: borderColor = UIColor.clear } let textColor: UIColor switch style { case .unimportant: textColor = Colors.text case .regular: textColor = Colors.text - case .prominentOutline: textColor = Colors.accent - case .prominentFilled: textColor = Colors.text + case .prominentOutline: textColor = isLightMode ? Colors.text : Colors.accent + case .prominentFilled: textColor = isLightMode ? UIColor.white : Colors.text case .regularBorderless: textColor = Colors.text } let height: CGFloat