From 9cfcc5d8ba6062d35f1f4a7a908fd39c5d8b75e0 Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Tue, 6 Jan 2026 22:54:01 +0800 Subject: [PATCH] UI improvements --- .../ChatListUI/Sources/ChatListSearchContainerNode.swift | 3 +++ submodules/TabBarUI/Sources/TabBarContollerNode.swift | 2 +- .../Sources/PeerInfoStoryPaneNode.swift | 9 +++++---- .../Sources/WallpaperBackgroundNode.swift | 7 +------ versions.json | 2 +- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift b/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift index a69c6caacc..11af4ee929 100644 --- a/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift +++ b/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift @@ -788,6 +788,9 @@ public final class ChatListSearchContainerNode: SearchDisplayControllerContentNo let topInset = navigationBarHeight var filtersInsets = UIEdgeInsets(top: 0.0, left: 12.0, bottom: layout.insets(options: [.input]).bottom, right: 12.0) + if filtersInsets.bottom == 84.0 { + filtersInsets.bottom -= 6.0 + } if layout.insets(options: [.input]).bottom <= 30.0 { filtersInsets = ContainerViewLayout.concentricInsets(bottomInset: layout.insets(options: [.input]).bottom, innerDiameter: 40.0, sideInset: 32.0) } else if layout.insets(options: [.input]).bottom <= 84.0 { diff --git a/submodules/TabBarUI/Sources/TabBarContollerNode.swift b/submodules/TabBarUI/Sources/TabBarContollerNode.swift index f0a4465943..c4de51c38f 100644 --- a/submodules/TabBarUI/Sources/TabBarContollerNode.swift +++ b/submodules/TabBarUI/Sources/TabBarContollerNode.swift @@ -371,7 +371,7 @@ final class TabBarControllerNode: ASDisplayNode { } } - return params.layout.size.height - tabBarFrame.minY - 6.0 + return params.layout.size.height - tabBarFrame.minY } func frameForControllerTab(at index: Int) -> CGRect? { diff --git a/submodules/TelegramUI/Components/PeerInfo/PeerInfoVisualMediaPaneNode/Sources/PeerInfoStoryPaneNode.swift b/submodules/TelegramUI/Components/PeerInfo/PeerInfoVisualMediaPaneNode/Sources/PeerInfoStoryPaneNode.swift index 74d17a1b34..4df8073aa4 100644 --- a/submodules/TelegramUI/Components/PeerInfo/PeerInfoVisualMediaPaneNode/Sources/PeerInfoStoryPaneNode.swift +++ b/submodules/TelegramUI/Components/PeerInfo/PeerInfoVisualMediaPaneNode/Sources/PeerInfoStoryPaneNode.swift @@ -4749,12 +4749,13 @@ public final class PeerInfoStoryPaneNode: ASDisplayNode, PeerInfoPaneNode, ASScr } else { backgroundColor = presentationData.theme.list.blocksBackgroundColor } + let _ = backgroundColor - if self.didUpdateItemsOnce { + /*if self.didUpdateItemsOnce { ComponentTransition(animation: .curve(duration: 0.2, curve: .easeInOut)).setBackgroundColor(view: self.view, color: backgroundColor) } else { self.view.backgroundColor = backgroundColor - } + }*/ } else if case let .peer(_, _, isArchived) = self.scope, self.canManageStories, !isArchived, self.isProfileEmbedded, let items = self.items, items.items.isEmpty, items.count == 0 { let emptyStateView: ComponentView var emptyStateTransition = ComponentTransition(transition) @@ -4852,7 +4853,7 @@ public final class PeerInfoStoryPaneNode: ASDisplayNode, PeerInfoPaneNode, ASScr } } - if self.isProfileEmbedded, case .botPreview = self.scope { + /*if self.isProfileEmbedded, case .botPreview = self.scope { subTransition.setBackgroundColor(view: self.view, color: presentationData.theme.list.blocksBackgroundColor) } else if self.isProfileEmbedded, case let .peer(_, _, isArchived) = self.scope, ((self.canManageStories && !isArchived) || !self.currentStoryFolders.isEmpty), self.isProfileEmbedded { subTransition.setBackgroundColor(view: self.view, color: presentationData.theme.list.blocksBackgroundColor) @@ -4860,7 +4861,7 @@ public final class PeerInfoStoryPaneNode: ASDisplayNode, PeerInfoPaneNode, ASScr subTransition.setBackgroundColor(view: self.view, color: presentationData.theme.list.blocksBackgroundColor) } else { subTransition.setBackgroundColor(view: self.view, color: presentationData.theme.list.blocksBackgroundColor) - } + }*/ } else { /*if self.isProfileEmbedded, case .botPreview = self.scope { self.view.backgroundColor = presentationData.theme.list.blocksBackgroundColor diff --git a/submodules/WallpaperBackgroundNode/Sources/WallpaperBackgroundNode.swift b/submodules/WallpaperBackgroundNode/Sources/WallpaperBackgroundNode.swift index 685ee744ad..80b974c689 100644 --- a/submodules/WallpaperBackgroundNode/Sources/WallpaperBackgroundNode.swift +++ b/submodules/WallpaperBackgroundNode/Sources/WallpaperBackgroundNode.swift @@ -1205,12 +1205,7 @@ public final class WallpaperBackgroundNodeImpl: ASDisplayNode, WallpaperBackgrou self.wallpaperDisposable.set(nil) if case let .file(file) = wallpaper, file.isPattern { - let intensity = CGFloat(file.settings.intensity ?? 50) / 100.0 - if intensity > 0 { - self.updateIsDark(nil) - } else { - self.updateIsDark(calculateWallpaperBrightness(from: gradientColors) <= 0.3) - } + self.updateIsDark(nil) } else { self.updateIsDark(calculateWallpaperBrightness(from: gradientColors) <= 0.3) } diff --git a/versions.json b/versions.json index de62854bd8..08f8cf3a19 100644 --- a/versions.json +++ b/versions.json @@ -1,6 +1,6 @@ { "app": "12.3.1", - "xcode": "26.0", + "xcode": "26.2", "bazel": "8.4.2:45e9388abf21d1107e146ea366ad080eb93cb6a5f3a4a3b048f78de0bc3faffa", "macos": "26" }