forked from organicmaps/organicmaps
[MAPSME-5490] [ios] Removed «start_from_my_position» title from button.
This commit is contained in:
parent
4265c34d5b
commit
3492db082c
2 changed files with 12 additions and 11 deletions
|
@ -8,15 +8,16 @@ final class RouteManagerHeaderView: UIView {
|
|||
}
|
||||
@IBOutlet private weak var addLocationButton: UIButton! {
|
||||
didSet {
|
||||
addLocationButton.setTitle(L("start_from_my_position"), for: .normal)
|
||||
addLocationButton.setTitleColor(UIColor.linkBlue(), for: .normal)
|
||||
addLocationButton.setTitleColor(UIColor.buttonDisabledBlueText(), for: .disabled)
|
||||
addLocationButton.tintColor = UIColor.linkBlue()
|
||||
|
||||
let flipLR = CGAffineTransform(scaleX: -1.0, y: 1.0)
|
||||
addLocationButton.transform = flipLR
|
||||
addLocationButton.titleLabel?.transform = flipLR
|
||||
addLocationButton.imageView?.transform = flipLR
|
||||
// TODO(igrechuhin): Uncomment when start_from_my_position translation is ready.
|
||||
// addLocationButton.setTitle(L("start_from_my_position"), for: .normal)
|
||||
// addLocationButton.setTitleColor(UIColor.linkBlue(), for: .normal)
|
||||
// addLocationButton.setTitleColor(UIColor.buttonDisabledBlueText(), for: .disabled)
|
||||
// addLocationButton.tintColor = UIColor.linkBlue()
|
||||
//
|
||||
// let flipLR = CGAffineTransform(scaleX: -1.0, y: 1.0)
|
||||
// addLocationButton.transform = flipLR
|
||||
// addLocationButton.titleLabel?.transform = flipLR
|
||||
// addLocationButton.imageView?.transform = flipLR
|
||||
}
|
||||
}
|
||||
@IBOutlet weak var separator: UIView! {
|
||||
|
|
|
@ -107,10 +107,10 @@
|
|||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0Fo-Ae-QrQ">
|
||||
<rect key="frame" x="285" y="0.0" width="74" height="48"/>
|
||||
<rect key="frame" x="331" y="0.0" width="28" height="48"/>
|
||||
<inset key="contentEdgeInsets" minX="8" minY="0.0" maxX="0.0" maxY="0.0"/>
|
||||
<inset key="imageEdgeInsets" minX="-8" minY="0.0" maxX="0.0" maxY="0.0"/>
|
||||
<state key="normal" title="Button" image="ic_get_position"/>
|
||||
<state key="normal" image="ic_get_position"/>
|
||||
<connections>
|
||||
<action selector="onAdd" destination="-1" eventType="touchUpInside" id="zGx-NU-Hzq"/>
|
||||
</connections>
|
||||
|
|
Loading…
Add table
Reference in a new issue