@@ -27,7 +27,7 @@ open class DayStyle: Style {
2727 if let color = UIApplication . shared. delegate? . window?? . tintColor {
2828 tintColor = color
2929 } else {
30- tintColor = . defaultTint
30+ tintColor = . defaultTintColor
3131 }
3232
3333 let phoneTraitCollection = UITraitCollection ( userInterfaceIdiom: . phone)
@@ -231,28 +231,45 @@ open class DayStyle: Style {
231231 TimeRemainingLabel . appearance ( for: compactAndRegularSizeClassTraitCollection) . normalFont = UIFont . systemFont ( ofSize: 28.0 , weight: . medium) . adjustedFont
232232 TimeRemainingLabel . appearance ( for: compactAndCompactSizeClassTraitCollection) . normalFont = UIFont . systemFont ( ofSize: 18.0 , weight: . medium) . adjustedFont
233233 TimeRemainingLabel . appearance ( for: traitCollection) . normalFont = UIFont . systemFont ( ofSize: 28.0 , weight: . medium) . adjustedFont
234- TimeRemainingLabel . appearance ( for: traitCollection) . normalTextColor = . defaultPrimaryText
234+ TimeRemainingLabel . appearance ( for: traitCollection) . normalTextColor = . defaultPrimaryTextColor
235235 TimeRemainingLabel . appearance ( for: traitCollection) . trafficHeavyColor = #colorLiteral( red: 0.91 , green: 0.20 , blue: 0.25 , alpha: 1.0 )
236236 TimeRemainingLabel . appearance ( for: traitCollection) . trafficLowColor = #colorLiteral( red: 0.4666666687 , green: 0.7647058964 , blue: 0.2666666806 , alpha: 1 )
237237 TimeRemainingLabel . appearance ( for: traitCollection) . trafficModerateColor = #colorLiteral( red: 0.95 , green: 0.65 , blue: 0.31 , alpha: 1.0 )
238238 TimeRemainingLabel . appearance ( for: traitCollection) . trafficSevereColor = #colorLiteral( red: 0.7705719471 , green: 0.1753477752 , blue: 0.1177056804 , alpha: 1 )
239- TimeRemainingLabel . appearance ( for: traitCollection) . trafficUnknownColor = . defaultPrimaryText
239+ TimeRemainingLabel . appearance ( for: traitCollection) . trafficUnknownColor = . defaultPrimaryTextColor
240+
241+ TimeRemainingLabel . appearance ( for: regularAndRegularSizeClassTraitCollection,
242+ whenContainedInInstancesOf: [ RoutesPreviewViewController . self] ) . normalFont = UIFont . systemFont ( ofSize: 28.0 , weight: . medium) . adjustedFont
243+ TimeRemainingLabel . appearance ( for: regularAndCompactSizeClassTraitCollection,
244+ whenContainedInInstancesOf: [ RoutesPreviewViewController . self] ) . normalFont = UIFont . systemFont ( ofSize: 28.0 , weight: . medium) . adjustedFont
245+ TimeRemainingLabel . appearance ( for: compactAndRegularSizeClassTraitCollection,
246+ whenContainedInInstancesOf: [ RoutesPreviewViewController . self] ) . normalFont = UIFont . systemFont ( ofSize: 28.0 , weight: . medium) . adjustedFont
247+ TimeRemainingLabel . appearance ( for: compactAndCompactSizeClassTraitCollection,
248+ whenContainedInInstancesOf: [ RoutesPreviewViewController . self] ) . normalFont = UIFont . systemFont ( ofSize: 20.0 , weight: . medium) . adjustedFont
240249
241250 StepsTableHeaderView . appearance ( for: traitCollection) . tintColor = #colorLiteral( red: 0.9675388083 , green: 0.9675388083 , blue: 0.9675388083 , alpha: 1 )
242251 StepsTableHeaderView . appearance ( for: traitCollection) . normalTextColor = #colorLiteral( red: 0.09803921569 , green: 0.09803921569 , blue: 0.09803921569 , alpha: 1 )
243252
244- Button . appearance ( for: traitCollection) . textColor = . defaultPrimaryText
253+ Button . appearance ( for: traitCollection) . textColor = . defaultPrimaryTextColor
254+
255+ CancelButton . appearance ( for: traitCollection) . tintColor = . defaultPrimaryTextColor
245256
246- CancelButton . appearance ( for: traitCollection) . tintColor = . defaultPrimaryText
257+ PreviewButton . appearance ( for: traitCollection) . tintColor = . defaultPrimaryTextColor
258+ StartButton . appearance ( for: traitCollection) . tintColor = . defaultPrimaryTextColor
247259
248260 FloatingButton . appearance ( for: traitCollection) . backgroundColor = #colorLiteral( red: 1 , green: 1 , blue: 1 , alpha: 1 )
249261 FloatingButton . appearance ( for: traitCollection) . tintColor = tintColor
250262 FloatingButton . appearance ( for: traitCollection) . borderWidth = Style . defaultBorderWidth
251- FloatingButton . appearance ( for: traitCollection) . borderColor = #colorLiteral ( red : 0.737254902 , green : 0.7960784314 , blue : 0.8705882353 , alpha : 1 )
263+ FloatingButton . appearance ( for: traitCollection) . borderColor = . defaultBorderColor
252264
253265 DistanceRemainingLabel . appearance ( for: traitCollection) . normalFont = UIFont . systemFont ( ofSize: 18.0 , weight: . medium) . adjustedFont
254266 DistanceRemainingLabel . appearance ( for: traitCollection) . normalTextColor = #colorLiteral( red: 0.431372549 , green: 0.431372549 , blue: 0.431372549 , alpha: 1 )
255267
268+ DistanceRemainingLabel . appearance ( for: traitCollection,
269+ whenContainedInInstancesOf: [ RoutesPreviewViewController . self] ) . normalFont = UIFont . systemFont ( ofSize: 15.0 , weight: . medium) . adjustedFont
270+ DistanceRemainingLabel . appearance ( for: traitCollection,
271+ whenContainedInInstancesOf: [ RoutesPreviewViewController . self] ) . normalTextColor = . defaultPrimaryTextColor
272+
256273 NavigationView . appearance ( for: traitCollection) . backgroundColor = #colorLiteral( red: 0.764706 , green: 0.752941 , blue: 0.733333 , alpha: 1 )
257274
258275 SeparatorView . appearance ( for: traitCollection) . backgroundColor = #colorLiteral( red: 0.737254902 , green: 0.7960784314 , blue: 0.8705882353 , alpha: 1 )
@@ -262,11 +279,18 @@ open class DayStyle: Style {
262279 RatingControl . appearance ( for: traitCollection) . selectedColor = #colorLiteral( red: 0.1205472574 , green: 0.2422055006 , blue: 0.3489340544 , alpha: 1 )
263280
264281 ResumeButton . appearance ( for: traitCollection) . backgroundColor = #colorLiteral( red: 1 , green: 1 , blue: 1 , alpha: 1 )
265- ResumeButton . appearance ( for: traitCollection) . tintColor = . defaultPrimaryText
282+ ResumeButton . appearance ( for: traitCollection) . tintColor = . defaultPrimaryTextColor
266283 ResumeButton . appearance ( for: traitCollection) . borderColor = #colorLiteral( red: 0.737254902 , green: 0.7960784314 , blue: 0.8705882353 , alpha: 1 )
267284 ResumeButton . appearance ( for: traitCollection) . borderWidth = Style . defaultBorderWidth
268285 ResumeButton . appearance ( for: traitCollection) . cornerRadius = 5.0
269286
287+ BackButton . appearance ( for: traitCollection) . backgroundColor = #colorLiteral( red: 1 , green: 1 , blue: 1 , alpha: 1 )
288+ BackButton . appearance ( for: traitCollection) . borderColor = #colorLiteral( red: 0.737254902 , green: 0.7960784314 , blue: 0.8705882353 , alpha: 1 )
289+ BackButton . appearance ( for: traitCollection) . borderWidth = Style . defaultBorderWidth
290+ BackButton . appearance ( for: traitCollection) . cornerRadius = 5.0
291+ BackButton . appearance ( for: traitCollection) . textFont = UIFont . systemFont ( ofSize: 15 , weight: . regular)
292+ BackButton . appearance ( for: traitCollection) . tintColor = . defaultPrimaryTextColor
293+
270294 NextBannerView . appearance ( for: traitCollection) . backgroundColor = #colorLiteral( red: 0.9675388083 , green: 0.9675388083 , blue: 0.9675388083 , alpha: 1 )
271295 NextBannerView . appearance ( for: traitCollection, whenContainedInInstancesOf: [ InstructionsCardContainerView . self] ) . backgroundColor = #colorLiteral( red: 0.9675388083 , green: 0.9675388083 , blue: 0.9675388083 , alpha: 1 )
272296
@@ -278,7 +302,19 @@ open class DayStyle: Style {
278302 InstructionsBannerView . appearance ( for: traitCollection) . backgroundColor = #colorLiteral( red: 1 , green: 1 , blue: 1 , alpha: 1 )
279303
280304 ArrivalTimeLabel . appearance ( for: traitCollection) . normalFont = UIFont . systemFont ( ofSize: 18.0 , weight: . medium) . adjustedFont
281- ArrivalTimeLabel . appearance ( for: traitCollection) . normalTextColor = . defaultPrimaryText
305+ ArrivalTimeLabel . appearance ( for: traitCollection) . normalTextColor = . defaultPrimaryTextColor
306+
307+ ArrivalTimeLabel . appearance ( for: traitCollection,
308+ whenContainedInInstancesOf: [ RoutesPreviewViewController . self] ) . normalFont = UIFont . systemFont ( ofSize: 15.0 , weight: . medium) . adjustedFont
309+ ArrivalTimeLabel . appearance ( for: traitCollection,
310+ whenContainedInInstancesOf: [ RoutesPreviewViewController . self] ) . normalTextColor = . defaultPrimaryTextColor
311+
312+ DestinationLabel . appearance ( for: regularAndRegularSizeClassTraitCollection) . normalFont = UIFont . systemFont ( ofSize: 25.0 , weight: . medium) . adjustedFont
313+ DestinationLabel . appearance ( for: regularAndCompactSizeClassTraitCollection) . normalFont = UIFont . systemFont ( ofSize: 25.0 , weight: . medium) . adjustedFont
314+ DestinationLabel . appearance ( for: compactAndRegularSizeClassTraitCollection) . normalFont = UIFont . systemFont ( ofSize: 25.0 , weight: . medium) . adjustedFont
315+ DestinationLabel . appearance ( for: compactAndCompactSizeClassTraitCollection) . normalFont = UIFont . systemFont ( ofSize: 18.0 , weight: . medium) . adjustedFont
316+ DestinationLabel . appearance ( for: traitCollection) . normalTextColor = . defaultPrimaryTextColor
317+ DestinationLabel . appearance ( for: traitCollection) . numberOfLines = 2
282318
283319 NextInstructionLabel . appearance ( for: traitCollection) . normalFont = UIFont . systemFont ( ofSize: 20.0 , weight: . medium) . adjustedFont
284320 NextInstructionLabel . appearance ( for: traitCollection) . normalTextColor = #colorLiteral( red: 0.09803921569 , green: 0.09803921569 , blue: 0.09803921569 , alpha: 1 )
0 commit comments