Skip to content

Commit

Permalink
Update All chats screen with latest design #6407
Browse files Browse the repository at this point in the history
- Update after code review
  • Loading branch information
gileluard committed Aug 1, 2022
1 parent cd68bae commit 6e93716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
10 changes: 1 addition & 9 deletions Riot/Managers/Theme/Themes/DarkTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,7 @@ class DarkTheme: NSObject, Theme {

navigationBar.standardAppearance = appearance

if BuildSettings.newAppLayoutEnabled {
appearance.configureWithOpaqueBackground()
appearance.backgroundColor = baseColor
appearance.shadowColor = nil
appearance.titleTextAttributes = [
NSAttributedString.Key.foregroundColor: textPrimaryColor
]
}
navigationBar.scrollEdgeAppearance = modernScrollEdgeAppearance ? nil : appearance
navigationBar.scrollEdgeAppearance = modernScrollEdgeAppearance || BuildSettings.newAppLayoutEnabled ? nil : appearance
} else {
navigationBar.titleTextAttributes = [
NSAttributedString.Key.foregroundColor: textPrimaryColor
Expand Down
11 changes: 1 addition & 10 deletions Riot/Managers/Theme/Themes/DefaultTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,7 @@ class DefaultTheme: NSObject, Theme {
]

navigationBar.standardAppearance = appearance

if BuildSettings.newAppLayoutEnabled {
appearance.configureWithOpaqueBackground()
appearance.backgroundColor = baseColor
appearance.shadowColor = nil
appearance.titleTextAttributes = [
NSAttributedString.Key.foregroundColor: textPrimaryColor
]
}
navigationBar.scrollEdgeAppearance = modernScrollEdgeAppearance ? nil : appearance
navigationBar.scrollEdgeAppearance = modernScrollEdgeAppearance || BuildSettings.newAppLayoutEnabled ? nil : appearance
} else {
navigationBar.titleTextAttributes = [
NSAttributedString.Key.foregroundColor: textPrimaryColor
Expand Down

0 comments on commit 6e93716

Please sign in to comment.