@@ -22,6 +22,9 @@ public struct InboxView: View, ScreenViewTrackable {
22
22
@ObservedObject private var model : InboxViewModel
23
23
@Environment ( \. viewController) private var controller
24
24
public let screenViewTrackingParameters : ScreenViewTrackingParameters
25
+ private let appSpecificForegroundColor = AppEnvironment . shared. app == . horizon ?
26
+ . backgroundDarkest :
27
+ Color ( Brand . shared. navTextColor. ensureContrast ( against: Brand . shared. navBackground) )
25
28
26
29
public init ( model: InboxViewModel ) {
27
30
self . model = model
@@ -210,7 +213,7 @@ public struct InboxView: View, ScreenViewTrackable {
210
213
} label: {
211
214
// TODO: Remove the condition once horizon-specific logic is no longer needed.
212
215
Image . hamburgerSolid
213
- . foregroundColor ( AppEnvironment . shared . app == . horizon ? . backgroundDarkest : Color ( Brand . shared . navTextColor . ensureContrast ( against : Brand . shared . navBackground ) ) )
216
+ . foregroundColor ( appSpecificForegroundColor )
214
217
}
215
218
. frame ( width: 44 , height: 44 ) . padding ( . leading, - 6 )
216
219
. identifier ( " Inbox.profileButton " )
@@ -223,7 +226,7 @@ public struct InboxView: View, ScreenViewTrackable {
223
226
} label: {
224
227
Image . addSolid
225
228
// TODO: Remove the condition once horizon-specific logic is no longer needed.
226
- . foregroundColor ( AppEnvironment . shared . app == . horizon ? . backgroundDarkest : Color ( Brand . shared . navTextColor . ensureContrast ( against : Brand . shared . navBackground ) ) )
229
+ . foregroundColor ( appSpecificForegroundColor )
227
230
}
228
231
. frame ( width: 44 , height: 44 ) . padding ( . trailing, - 6 )
229
232
. identifier ( " Inbox.newMessageButton " )
0 commit comments