Fix menu button monochrome tint

This commit is contained in:
世界
2026-01-07 16:01:01 +08:00
parent 6e6e181521
commit 264c4eed81
2 changed files with 4 additions and 4 deletions
@@ -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
}
}
+2 -2
View File
@@ -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
}
}