@@ -910,28 +910,36 @@ final class StatusTableViewController: LoopChartsTableViewController {
910910 private class MuteAlertsWarningCell : UITableViewCell {
911911 var formattedAlertMuteEndTime : String = NSLocalizedString ( " Unknown " , comment: " label for when the alert mute end time is unknown " )
912912
913+ fileprivate class GradientView : UIView {
914+ override static var layerClass : AnyClass { CAGradientLayer . self }
915+ }
916+
913917 override func updateConfiguration( using state: UICellConfigurationState ) {
914918 super. updateConfiguration ( using: state)
915919
916920 let adjustViewForNarrowDisplay = bounds. width < 350
917921
918922 var contentConfig = defaultContentConfiguration ( ) . updated ( for: state)
919923 let title = NSMutableAttributedString ( string: NSLocalizedString ( " All Alerts Muted " , comment: " Warning text for when alerts are muted " ) )
920- contentConfig. image = UIImage ( systemName: " speaker.slash.fill " )
924+ let image = UIImage ( systemName: " speaker.slash.fill " , withConfiguration: UIImage . SymbolConfiguration ( pointSize: 25 , weight: . thin, scale: . large) )
925+ contentConfig. image = image
921926 contentConfig. imageProperties. tintColor = . white
922927 contentConfig. attributedText = title
923928 contentConfig. textProperties. color = . white
924- contentConfig. textProperties. font = . systemFont( ofSize: adjustViewForNarrowDisplay ? 16 : 18 , weight: . bold )
929+ contentConfig. textProperties. font = . systemFont( ofSize: adjustViewForNarrowDisplay ? 16 : 18 , weight: . semibold )
925930 contentConfig. textProperties. adjustsFontSizeToFitWidth = true
926931 contentConfig. secondaryText = String ( format: NSLocalizedString ( " Until %1$@ " , comment: " indication of when alerts will be unmuted (1: time when alerts unmute) " ) , formattedAlertMuteEndTime)
927932 contentConfig. secondaryTextProperties. color = . white
928933 contentConfig. secondaryTextProperties. font = . systemFont( ofSize: adjustViewForNarrowDisplay ? 13 : 15 )
929934 contentConfiguration = contentConfig
930935
936+ let backgroundGradient = GradientView ( )
937+ ( backgroundGradient. layer as? CAGradientLayer ) ? . colors = [ UIColor . warning. cgColor, UIColor . warning. withAlphaComponent ( 0.9 ) . cgColor]
938+
931939 var backgroundConfig = backgroundConfiguration? . updated ( for: state)
932- backgroundConfig? . backgroundColor = . warning . withAlphaComponent ( 0.8 )
940+ backgroundConfig? . customView = backgroundGradient
933941 backgroundConfiguration = backgroundConfig
934- backgroundConfiguration? . backgroundInsets = NSDirectionalEdgeInsets ( top: 0 , leading: 10 , bottom: 5 , trailing: 10 )
942+ backgroundConfiguration? . backgroundInsets = NSDirectionalEdgeInsets ( top: 0 , leading: 5 , bottom: 5 , trailing: 5 )
935943 backgroundConfiguration? . cornerRadius = 10
936944
937945 let unmuteIndicator = UIImage ( systemName: " stop.circle " ) ? . withTintColor ( . white)
@@ -953,6 +961,7 @@ final class StatusTableViewController: LoopChartsTableViewController {
953961 } else {
954962 let cell = tableView. dequeueReusableCell ( withIdentifier: MuteAlertsWarningCell . className, for: indexPath) as! MuteAlertsWarningCell
955963 cell. formattedAlertMuteEndTime = alertMuter. formattedEndTime
964+ cell. selectionStyle = . none
956965 return cell
957966 }
958967 case . hud:
0 commit comments