Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-Fabi committed Sep 2, 2024
1 parent 199c034 commit 34398d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions WaiterRobot/Ui/Order/ProductListItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ struct ProductListItem: View {
var foregroundColor: Color {
if product.soldOut {
.blackWhite
}

if let backgroundColor {
} else if let backgroundColor {
backgroundColor.getContentColor(lightColorScheme: .black, darkColorScheme: .white)
} else {
Color.blackWhite
.blackWhite
}
}

Expand Down
2 changes: 1 addition & 1 deletion WaiterRobot/Ui/Settings/SwitchThemeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct SwitchThemeView: View {
}

var body: some View {
Picker(localize.settings.darkMode.title(), selection: $selectedTheme) {
Picker(localize.settings.general.darkMode.title(), selection: $selectedTheme) {
ForEach(AppTheme.companion.valueList(), id: \.name) { theme in
Text(theme.settingsText()).tag(theme)
}
Expand Down

0 comments on commit 34398d8

Please sign in to comment.