Skip to content

Commit

Permalink
fix cell colours on ipad
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Oct 12, 2023
1 parent 641ef76 commit a2c42a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DuckDuckGo/AutocompleteViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ extension AutocompleteViewController: UITableViewDataSource {
cell.updateFor(query: query, suggestion: suggestions[indexPath.row], with: currentTheme, isAddressBarAtBottom: isAddressBarAtBottom)
cell.plusButton.tag = indexPath.row

let backgroundColor = indexPath.row == selectedItem ? currentTheme.tableCellSelectedColor : UIColor(designSystemColor: .background)
let baseBackgroundColor = isPad ? UIColor(designSystemColor: .panel) : UIColor(designSystemColor: .background)
let backgroundColor = indexPath.row == selectedItem ? currentTheme.tableCellSelectedColor : baseBackgroundColor

cell.backgroundColor = backgroundColor
cell.tintColor = currentTheme.autocompleteCellAccessoryColor
Expand Down

0 comments on commit a2c42a3

Please sign in to comment.