mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-07 13:03:54 +00:00
[ios] remove primary green background from the search screen header
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
2299de287f
commit
7be49ab00a
@@ -4,6 +4,7 @@ enum GlobalStyleSheet: String, CaseIterable {
|
||||
case tableViewCell = "MWMTableViewCell"
|
||||
case defaultTableViewCell
|
||||
case tableViewHeaderFooterView = "TableViewHeaderFooterView"
|
||||
case defaultSearchBar
|
||||
case searchBar = "SearchBar"
|
||||
case navigationBar = "NavigationBar"
|
||||
case navigationBarItem = "NavigationBarItem"
|
||||
@@ -95,6 +96,14 @@ extension GlobalStyleSheet: IStyleSheet {
|
||||
s.font = fonts.medium14
|
||||
s.fontColor = colors.blackSecondaryText
|
||||
}
|
||||
case .defaultSearchBar:
|
||||
return .add { s in
|
||||
s.backgroundColor = colors.pressBackground
|
||||
s.barTintColor = colors.clear
|
||||
s.fontColor = colors.blackPrimaryText
|
||||
s.fontColorDetailed = UIColor.white
|
||||
s.tintColor = colors.blackSecondaryText
|
||||
}
|
||||
case .searchBar:
|
||||
return .add { s in
|
||||
s.backgroundColor = colors.white
|
||||
@@ -224,10 +233,11 @@ extension GlobalStyleSheet: IStyleSheet {
|
||||
}
|
||||
case .tabView:
|
||||
return .add { s in
|
||||
s.backgroundColor = colors.pressBackground
|
||||
s.barTintColor = colors.primary
|
||||
s.tintColor = colors.white
|
||||
s.fontColor = colors.whitePrimaryText
|
||||
s.backgroundColor = colors.white
|
||||
s.barTintColor = colors.white
|
||||
s.tintColor = colors.linkBlue
|
||||
s.fontColor = colors.blackSecondaryText
|
||||
s.fontColorHighlighted = colors.linkBlue
|
||||
s.font = fonts.medium14
|
||||
}
|
||||
case .dialogView:
|
||||
|
||||
@@ -21,8 +21,12 @@ class TabViewRenderer {
|
||||
if let tintColor = style.tintColor {
|
||||
control.tintColor = tintColor
|
||||
}
|
||||
if let font = style.font, let fontColor = style.fontColorHighlighted {
|
||||
control.selectedHeaderTextAttributes = [.foregroundColor: fontColor,
|
||||
.font: font]
|
||||
}
|
||||
if let font = style.font, let fontColor = style.fontColor {
|
||||
control.headerTextAttributes = [.foregroundColor: fontColor,
|
||||
control.deselectedHeaderTextAttributes = [.foregroundColor: fontColor,
|
||||
.font: font]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@ extension SearchStyleSheet: IStyleSheet {
|
||||
}
|
||||
case .searchCancelButton:
|
||||
return .add { s in
|
||||
s.fontColor = colors.whitePrimaryText
|
||||
s.fontColorHighlighted = colors.whitePrimaryTextHighlighted
|
||||
s.fontColor = colors.linkBlue
|
||||
s.fontColorHighlighted = colors.linkBlueHighlighted
|
||||
s.font = fonts.regular17
|
||||
s.backgroundColor = .clear
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user