forked from organicmaps/organicmaps
parent
382dffe7db
commit
6a27a50321
2 changed files with 7 additions and 4 deletions
|
@ -32,7 +32,10 @@ class UISearchBarRenderer: UIViewRenderer {
|
|||
searchTextField?.backgroundColor = backgroundColor
|
||||
}
|
||||
if let barTintColor = style.barTintColor {
|
||||
control.backgroundImage = barTintColor.getImage()
|
||||
let position = control.delegate?.position?(for: control) ?? control.barPosition
|
||||
control.setBackgroundImage(barTintColor.getImage(), for: position, barMetrics: .defaultPrompt)
|
||||
control.setBackgroundImage(barTintColor.getImage(), for: position, barMetrics: .default)
|
||||
control.backgroundColor = barTintColor
|
||||
}
|
||||
if let tintColor = style.tintColor {
|
||||
control.tintColor = tintColor
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
extension UITableView {
|
||||
@objc override func applyTheme() {
|
||||
for style in StyleManager.shared.getStyle(styleName)
|
||||
where !style.isEmpty && !style.hasExclusion(view: self) {
|
||||
if styleName.isEmpty {
|
||||
styleName = "TableView"
|
||||
}
|
||||
for style in StyleManager.shared.getStyle(styleName) {
|
||||
for style in StyleManager.shared.getStyle(styleName)
|
||||
where !style.isEmpty && !style.hasExclusion(view: self) {
|
||||
UITableViewRenderer.render(self, style: style)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue