Use primary color for normal actions
This commit is contained in:
parent
9c916b335e
commit
05697b12cc
|
@ -170,6 +170,12 @@ extension UIBarButtonItem {
|
|||
}
|
||||
}
|
||||
|
||||
extension UIContextualAction {
|
||||
func applyNormal(_ theme: Theme) {
|
||||
backgroundColor = theme.palette.primaryBackground
|
||||
}
|
||||
}
|
||||
|
||||
// XXX: status bar is broken
|
||||
extension MFMailComposeViewController {
|
||||
func apply(_ theme: Theme) {
|
||||
|
|
|
@ -247,12 +247,13 @@ extension ProviderPoolViewController: UITableViewDataSource, UITableViewDelegate
|
|||
self.favoriteGroup(withId: groupId)
|
||||
$2(true)
|
||||
}
|
||||
action.applyNormal(.current)
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
|
||||
let cfg = UISwipeActionsConfiguration(actions: [action])
|
||||
cfg.performsFirstActionWithFullSwipe = true
|
||||
cfg.performsFirstActionWithFullSwipe = false
|
||||
return cfg
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue