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
|
// XXX: status bar is broken
|
||||||
extension MFMailComposeViewController {
|
extension MFMailComposeViewController {
|
||||||
func apply(_ theme: Theme) {
|
func apply(_ theme: Theme) {
|
||||||
|
|
|
@ -247,12 +247,13 @@ extension ProviderPoolViewController: UITableViewDataSource, UITableViewDelegate
|
||||||
self.favoriteGroup(withId: groupId)
|
self.favoriteGroup(withId: groupId)
|
||||||
$2(true)
|
$2(true)
|
||||||
}
|
}
|
||||||
|
action.applyNormal(.current)
|
||||||
} else {
|
} else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
let cfg = UISwipeActionsConfiguration(actions: [action])
|
let cfg = UISwipeActionsConfiguration(actions: [action])
|
||||||
cfg.performsFirstActionWithFullSwipe = true
|
cfg.performsFirstActionWithFullSwipe = false
|
||||||
return cfg
|
return cfg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue