diff --git a/NextcloudTalk/Chat/BaseChatViewController.swift b/NextcloudTalk/Chat/BaseChatViewController.swift index 074ec59e1..8dafdc3fa 100644 --- a/NextcloudTalk/Chat/BaseChatViewController.swift +++ b/NextcloudTalk/Chat/BaseChatViewController.swift @@ -165,7 +165,12 @@ import SwiftUI self?.tableView?.slk_scrollToBottom(animated: true) }) - button.backgroundColor = .secondarySystemBackground + if #available(iOS 26.0, *) { + button.configuration = .glass() + } else { + button.backgroundColor = .secondarySystemBackground + } + button.tintColor = .systemBlue button.layer.cornerRadius = 8 button.clipsToBounds = true @@ -181,7 +186,12 @@ import SwiftUI private lazy var voiceRecordingLockButton: UIButton = { let button = UIButton(frame: .init(x: 0, y: 0, width: 44, height: 44)) - button.backgroundColor = .secondarySystemBackground + if #available(iOS 26.0, *) { + button.configuration = .glass() + } else { + button.backgroundColor = .secondarySystemBackground + } + button.tintColor = .systemBlue button.layer.cornerRadius = button.frame.size.height / 2 button.clipsToBounds = true diff --git a/NextcloudTalk/Chat/Chat views/OutOfOfficeView.swift b/NextcloudTalk/Chat/Chat views/OutOfOfficeView.swift index 93c6e3ba1..08f1a33d6 100644 --- a/NextcloudTalk/Chat/Chat views/OutOfOfficeView.swift +++ b/NextcloudTalk/Chat/Chat views/OutOfOfficeView.swift @@ -41,11 +41,32 @@ import SwiftyAttributes addSubview(contentView) contentView.frame = frame contentView.autoresizingMask = [.flexibleWidth, .flexibleHeight] - contentView.backgroundColor = .systemBackground - leftIndicator.backgroundColor = NCAppBranding.themeColor() - backgroundView.backgroundColor = NCAppBranding.themeColor().withAlphaComponent(0.3) - wrapperView.backgroundColor = .systemBackground + if #available(iOS 26.0, *) { + let effectView = UIVisualEffectView() + wrapperView.insertSubview(effectView, at: 0) + + let glassEffect = UIGlassEffect(style: .regular) + effectView.effect = glassEffect + effectView.translatesAutoresizingMaskIntoConstraints = false + + NSLayoutConstraint.activate([ + effectView.leftAnchor.constraint(equalTo: wrapperView.leftAnchor), + effectView.rightAnchor.constraint(equalTo: wrapperView.rightAnchor), + effectView.topAnchor.constraint(equalTo: wrapperView.topAnchor), + effectView.bottomAnchor.constraint(equalTo: wrapperView.bottomAnchor) + ]) + + contentView.backgroundColor = .clear + backgroundView.backgroundColor = .clear + wrapperView.backgroundColor = .clear + } else { + contentView.backgroundColor = .systemBackground + backgroundView.backgroundColor = NCAppBranding.elementColorBackground() + wrapperView.backgroundColor = .systemBackground + } + + leftIndicator.backgroundColor = NCAppBranding.elementColor() wrapperView.layer.cornerRadius = 8 wrapperView.layer.masksToBounds = true diff --git a/NextcloudTalk/Chat/Chat views/OutOfOfficeView.xib b/NextcloudTalk/Chat/Chat views/OutOfOfficeView.xib index 87d9a773b..f4ce84cc6 100644 --- a/NextcloudTalk/Chat/Chat views/OutOfOfficeView.xib +++ b/NextcloudTalk/Chat/Chat views/OutOfOfficeView.xib @@ -1,9 +1,9 @@ - + - + @@ -27,13 +27,13 @@ - @@ -119,7 +119,7 @@ - +