From 5eb0d74f40751e6c44488aedbc13091a7fc23d25 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Fri, 3 Mar 2023 18:34:48 +0400 Subject: [PATCH] Fix video speed rate check color --- .../GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/submodules/GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift b/submodules/GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift index bb203f620c..0158cdf4a5 100644 --- a/submodules/GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift +++ b/submodules/GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift @@ -2639,13 +2639,12 @@ final class UniversalVideoGalleryItemNode: ZoomableContentGalleryItemNode { items.append(.separator) - let theme = strongSelf.presentationData.theme for (text, _, rate) in strongSelf.speedList(strings: strongSelf.presentationData.strings) { let isSelected = abs(status.baseRate - rate) < 0.01 items.append(.action(ContextMenuActionItem(text: text, icon: { _ in return nil }, iconSource: ContextMenuActionItemIconSource(size: CGSize(width: 24.0, height: 24.0), signal: sliderValuePromise.get() |> map { value in if isSelected && value == nil { - return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Check"), color: theme.contextMenu.primaryColor) + return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Check"), color: .white) } else { return nil }