mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix QR intro color
This commit is contained in:
parent
92940b4c83
commit
72e781a4ee
@ -19,7 +19,7 @@ private let colorKeyRegex = try? NSRegularExpression(pattern: "\"k\":\\[[\\d\\.]
|
||||
private func transformedWithTheme(data: Data, theme: PresentationTheme) -> Data {
|
||||
if var string = String(data: data, encoding: .utf8) {
|
||||
var colors: [UIColor] = [0x333333, 0xFFFFFF, 0x50A7EA, 0x212121].map { UIColor(rgb: $0) }
|
||||
let replacementColors: [UIColor] = [theme.list.itemPrimaryTextColor.mixedWith(.white, alpha: 0.2), theme.list.plainBackgroundColor, theme.list.itemAccentColor, theme.list.itemPrimaryTextColor.mixedWith(.white, alpha: 0.12)]
|
||||
let replacementColors: [UIColor] = [theme.list.itemPrimaryTextColor.mixedWith(.white, alpha: 0.2), theme.list.plainBackgroundColor, theme.list.itemAccentColor, theme.list.plainBackgroundColor]
|
||||
|
||||
func colorToString(_ color: UIColor) -> String {
|
||||
var r: CGFloat = 0.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user