From 96e17dfefd3e1ce5fea9dc6622ff0dfff53739bd Mon Sep 17 00:00:00 2001 From: jahorton Date: Thu, 23 Jan 2020 15:37:32 +0700 Subject: [PATCH] change(ios): relocates app-only colors to app project --- .../Classes/Colors+Extension.swift | 26 +++++++++++++++++++ .../KMEI/KeymanEngine/Classes/Colors.swift | 26 ------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/ios/engine/KMEI/KeymanEngine/Classes/Colors+Extension.swift b/ios/engine/KMEI/KeymanEngine/Classes/Colors+Extension.swift index 0fca83b2e4..641a669cc1 100644 --- a/ios/engine/KMEI/KeymanEngine/Classes/Colors+Extension.swift +++ b/ios/engine/KMEI/KeymanEngine/Classes/Colors+Extension.swift @@ -115,4 +115,30 @@ extension Colors { } } } + + public static var helpBubbleGradient1: UIColor { + get { + if #available(iOSApplicationExtension 11.0, *) { + return UIColor(named: "HelpBubbleGradient1")! + } else { + return UIColor(red: 253.0 / 255.0, + green: 244.0 / 255.0, + blue: 196.0 / 255.0, + alpha: 1.0) + } + } + } + + public static var helpBubbleGradient2: UIColor { + get { + if #available(iOSApplicationExtension 11.0, *) { + return UIColor(named: "HelpBubbleGradient2")! + } else { + return UIColor(red: 233.0 / 255.0, + green: 224.0 / 255.0, + blue: 176.0 / 255.0, + alpha: 1.0) + } + } + } } diff --git a/ios/engine/KMEI/KeymanEngine/Classes/Colors.swift b/ios/engine/KMEI/KeymanEngine/Classes/Colors.swift index a72a85d961..c7ec015661 100644 --- a/ios/engine/KMEI/KeymanEngine/Classes/Colors.swift +++ b/ios/engine/KMEI/KeymanEngine/Classes/Colors.swift @@ -83,32 +83,6 @@ public class Colors { } } - public static var helpBubbleGradient1: UIColor { - get { - if #available(iOSApplicationExtension 11.0, *) { - return UIColor(named: "HelpBubbleGradient1")! - } else { - return UIColor(red: 253.0 / 255.0, - green: 244.0 / 255.0, - blue: 196.0 / 255.0, - alpha: 1.0) - } - } - } - - public static var helpBubbleGradient2: UIColor { - get { - if #available(iOSApplicationExtension 11.0, *) { - return UIColor(named: "HelpBubbleGradient2")! - } else { - return UIColor(red: 233.0 / 255.0, - green: 224.0 / 255.0, - blue: 176.0 / 255.0, - alpha: 1.0) - } - } - } - public static var keyboardBackground: UIColor { get { if #available(iOSApplicationExtension 11.0, *) {