fix: Color of activity indicators in some view controllers

Signed-off-by: Ivan Sein <[email protected]>
This commit is contained in:
Ivan Sein committed 2025-10-29 13:27:03 +01:00
1 parent 31b78c396a
commit ef7586b6b1
9 files changed
+26 -9

No files matched your search

@@ -51,7 +51,9 @@ import UIKit
super.viewDidLoad()
self.creatingPollIndicatorView = UIActivityIndicatorView()
self.creatingPollIndicatorView.color = NCAppBranding.themeTextColor()
if #unavailable(iOS 26.0) {
self.creatingPollIndicatorView.color = NCAppBranding.themeTextColor()
}
self.setMoreOptionsButton()
@@ -48,7 +48,9 @@ import UIKit
super.viewDidLoad()
self.activityIndicatorView = UIActivityIndicatorView()
self.activityIndicatorView.color = NCAppBranding.themeTextColor()
if #unavailable(iOS 26.0) {
self.activityIndicatorView.color = NCAppBranding.themeTextColor()
}
self.setMoreOptionsButton()
+1 -1
View File
@@ -2411,7 +2411,7 @@ import SwiftUI
if #unavailable(iOS 26.0) {
cancelButton.tintColor = NCAppBranding.themeTextColor()
}
roomInfo.modalPresentationStyle = .pageSheet
let navController = UINavigationController(rootViewController: roomInfo)
@@ -69,7 +69,9 @@ import UIKit
self.translateTextView.layer.cornerRadius = 8
self.modifyingProfileView = UIActivityIndicatorView()
self.modifyingProfileView.color = NCAppBranding.themeTextColor()
if #unavailable(iOS 26.0) {
self.modifyingProfileView.color = NCAppBranding.themeTextColor()
}
self.navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .cancel, target: self, action: #selector(self.cancelButtonPressed))
if #unavailable(iOS 26.0) {
@@ -46,7 +46,9 @@ class FederationInvitationTableViewController: UITableViewController, Federation
self.backgroundView.placeholderView.isHidden = true
self.backgroundView.loadingView.startAnimating()
self.modifyingViewIndicator.color = NCAppBranding.themeTextColor()
if #unavailable(iOS 26.0) {
self.modifyingViewIndicator.color = NCAppBranding.themeTextColor()
}
}
override func viewWillAppear(_ animated: Bool) {
@@ -36,7 +36,9 @@
self.backgroundView.setImage(UIImage(systemName: "person.badge.minus"))
self.backgroundView.loadingView.startAnimating()
self.modifyingViewIndicator.color = NCAppBranding.themeTextColor()
if #unavailable(iOS 26.0) {
self.modifyingViewIndicator.color = NCAppBranding.themeTextColor()
}
}
override func viewWillAppear(_ animated: Bool) {
@@ -65,7 +65,9 @@ enum RoomAvatarInfoSection: Int {
self.tableView.register(TextViewTableViewCell.self, forCellReuseIdentifier: TextViewTableViewCell.identifier)
self.tableView.tableHeaderView = self.headerView
self.modifyingView.color = NCAppBranding.themeTextColor()
if #unavailable(iOS 26.0) {
self.modifyingView.color = NCAppBranding.themeTextColor()
}
if let serverCapabilities = NCDatabaseManager.sharedInstance().serverCapabilities(forAccountId: self.room.accountId) {
self.descriptionMaxLength = serverCapabilities.descriptionLength
@@ -97,7 +97,9 @@ enum RoomVisibilityOption: Int {
self.createButton.isEnabled = false
self.navigationItem.rightBarButtonItem = self.createButton
self.modifyingView.color = NCAppBranding.themeTextColor()
if #unavailable(iOS 26.0) {
self.modifyingView.color = NCAppBranding.themeTextColor()
}
self.headerView.editView.isHidden = !NCDatabaseManager.sharedInstance().serverHasTalkCapability(kCapabilityConversationAvatars, forAccountId: self.account.accountId)
// Need to have an explicit size here for the header view
@@ -66,7 +66,10 @@ class UserProfileTableViewController: UITableViewController, DetailedOptionsSele
}
modifyingProfileView = UIActivityIndicatorView()
modifyingProfileView.color = NCAppBranding.themeTextColor()
if #unavailable(iOS 26.0) {
modifyingProfileView.color = NCAppBranding.themeTextColor()
}
tableView.keyboardDismissMode = UIScrollView.KeyboardDismissMode.onDrag
tableView.register(TextFieldTableViewCell.self, forCellReuseIdentifier: TextFieldTableViewCell.identifier)
NotificationCenter.default.addObserver(self, selector: #selector(userProfileImageUpdated), name: NSNotification.Name.NCUserProfileImageUpdated, object: nil)