Skip to content

Commit a9d54a3

Browse files
committed
Remove LaneView styling in case if it's contained in LanesView, since it has no effect.
1 parent 3a75f43 commit a9d54a3

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Sources/MapboxNavigation/DayStyle.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,6 @@ open class DayStyle: Style {
262262
LaneView.appearance(for: phoneTraitCollection).secondaryColor = .defaultLaneArrowSecondary
263263
LaneView.appearance(for: phoneTraitCollection).primaryColorHighlighted = .defaultLaneArrowPrimaryHighlighted
264264
LaneView.appearance(for: phoneTraitCollection).secondaryColorHighlighted = .defaultLaneArrowSecondaryHighlighted
265-
LaneView.appearance(for: phoneTraitCollection, whenContainedInInstancesOf: [LanesView.self]).primaryColor = .defaultLaneArrowPrimary
266-
LaneView.appearance(for: phoneTraitCollection, whenContainedInInstancesOf: [LanesView.self]).secondaryColor = .defaultLaneArrowSecondary
267-
LaneView.appearance(for: phoneTraitCollection, whenContainedInInstancesOf: [LanesView.self]).primaryColorHighlighted = .defaultLaneArrowPrimaryHighlighted
268-
LaneView.appearance(for: phoneTraitCollection, whenContainedInInstancesOf: [LanesView.self]).secondaryColorHighlighted = .defaultLaneArrowSecondaryHighlighted
269265

270266
LanesView.appearance(for: phoneTraitCollection).backgroundColor = #colorLiteral(red: 0.968627451, green: 0.968627451, blue: 0.968627451, alpha: 1)
271267

@@ -413,7 +409,7 @@ open class DayStyle: Style {
413409
defaultInstructionColor = UIColor.white
414410

415411
defaultLaneViewPrimaryColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
416-
defaultLaneViewSecondaryColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 0.3)
412+
defaultLaneViewSecondaryColor = #colorLiteral(red: 0.4198532104, green: 0.4398920536, blue: 0.4437610507, alpha: 1)
417413

418414
defaultLaneArrowPrimaryHighlightedColor = .defaultLaneArrowPrimaryHighlighted
419415
defaultLaneArrowSecondaryHighlightedColor = .defaultLaneArrowSecondaryHighlighted

Sources/MapboxNavigation/NightStyle.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ open class NightStyle: DayStyle {
5252
DismissButton.appearance(for: phoneTraitCollection).textColor = #colorLiteral(red: 0.9842069745, green: 0.9843751788, blue: 0.9841964841, alpha: 1)
5353

5454
LaneView.appearance(for: phoneTraitCollection).primaryColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
55-
LaneView.appearance(for: phoneTraitCollection).secondaryColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 0.3)
56-
LaneView.appearance(for: phoneTraitCollection, whenContainedInInstancesOf: [LanesView.self]).primaryColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
57-
LaneView.appearance(for: phoneTraitCollection, whenContainedInInstancesOf: [LanesView.self]).secondaryColor = #colorLiteral(red: 0.4198532104, green: 0.4398920536, blue: 0.4437610507, alpha: 1)
55+
LaneView.appearance(for: phoneTraitCollection).secondaryColor = #colorLiteral(red: 0.4198532104, green: 0.4398920536, blue: 0.4437610507, alpha: 1)
56+
5857
LanesView.appearance(for: phoneTraitCollection).backgroundColor = backgroundColor
5958

6059
StepsBackgroundView.appearance(for: phoneTraitCollection).backgroundColor = backgroundColor

0 commit comments

Comments
 (0)