From 264c4eed81da7014f1f6164b4cba83b5297c6c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 6 Jan 2026 15:13:27 +0800 Subject: [PATCH] Fix menu button monochrome tint --- ApplicationLibrary/Views/Connections/ConnectionListView.swift | 4 ++-- ApplicationLibrary/Views/Log/LogView.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ApplicationLibrary/Views/Connections/ConnectionListView.swift b/ApplicationLibrary/Views/Connections/ConnectionListView.swift index 584e555..e9c58f6 100644 --- a/ApplicationLibrary/Views/Connections/ConnectionListView.swift +++ b/ApplicationLibrary/Views/Connections/ConnectionListView.swift @@ -115,7 +115,7 @@ public struct ConnectionListView: View { let button = UIButton(type: .system) let config = UIImage.SymbolConfiguration(scale: .large) button.setImage(UIImage(systemName: "line.3.horizontal.circle", withConfiguration: config), for: .normal) - if #available(iOS 17.0, *) { + if #available(iOS 26.0, *) { button.tintColor = colorScheme == .dark ? .white : .black } button.showsMenuAsPrimaryAction = true @@ -143,7 +143,7 @@ public struct ConnectionListView: View { if coordinator.lastColorScheme != colorScheme { coordinator.lastColorScheme = colorScheme - if #available(iOS 17.0, *) { + if #available(iOS 26.0, *) { uiView.tintColor = colorScheme == .dark ? .white : .black } } diff --git a/ApplicationLibrary/Views/Log/LogView.swift b/ApplicationLibrary/Views/Log/LogView.swift index 262528c..3faab0d 100644 --- a/ApplicationLibrary/Views/Log/LogView.swift +++ b/ApplicationLibrary/Views/Log/LogView.swift @@ -86,7 +86,7 @@ private struct LogViewContent: View { let button = UIButton(type: .system) let config = UIImage.SymbolConfiguration(scale: .large) button.setImage(UIImage(systemName: "line.3.horizontal.circle", withConfiguration: config), for: .normal) - if #available(iOS 17.0, *) { + if #available(iOS 26.0, *) { button.tintColor = colorScheme == .dark ? .white : .black } button.showsMenuAsPrimaryAction = true @@ -98,7 +98,7 @@ private struct LogViewContent: View { func updateUIView(_ uiView: UIButton, context _: Context) { uiView.menu = createMenu() - if #available(iOS 17.0, *) { + if #available(iOS 26.0, *) { uiView.tintColor = colorScheme == .dark ? .white : .black } }