mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 09:20:08 +00:00
Merge branch 'beta'
This commit is contained in:
commit
9c3f541115
@ -19,7 +19,7 @@ private let colorKeyRegex = try? NSRegularExpression(pattern: "\"k\":\\[[\\d\\.]
|
|||||||
private func transformedWithTheme(data: Data, theme: PresentationTheme) -> Data {
|
private func transformedWithTheme(data: Data, theme: PresentationTheme) -> Data {
|
||||||
if var string = String(data: data, encoding: .utf8) {
|
if var string = String(data: data, encoding: .utf8) {
|
||||||
var colors: [UIColor] = [0x333333, 0xFFFFFF, 0x50A7EA, 0x212121].map { UIColor(rgb: $0) }
|
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 {
|
func colorToString(_ color: UIColor) -> String {
|
||||||
var r: CGFloat = 0.0
|
var r: CGFloat = 0.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user