fix: timeline gap wrong theme color issue

This commit is contained in:
CMK 2021-07-08 17:07:53 +08:00
parent d9c0c75782
commit 20b3bed99f
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ final class SawToothView: UIView {
} }
bezierPath.addLine(to: CGPoint(x: 0, y: bottomY)) bezierPath.addLine(to: CGPoint(x: 0, y: bottomY))
bezierPath.close() bezierPath.close()
ThemeService.shared.currentTheme.value.systemBackgroundColor.setFill() ThemeService.shared.currentTheme.value.tableViewCellBackgroundColor.setFill()
bezierPath.fill() bezierPath.fill()
bezierPath.lineWidth = 0 bezierPath.lineWidth = 0
bezierPath.stroke() bezierPath.stroke()

View File

@ -86,7 +86,7 @@ class TimelineLoaderTableViewCell: UITableViewCell {
loadMoreButton.heightAnchor.constraint(equalToConstant: TimelineLoaderTableViewCell.buttonHeight).priority(.required - 1), loadMoreButton.heightAnchor.constraint(equalToConstant: TimelineLoaderTableViewCell.buttonHeight).priority(.required - 1),
]) ])
// use stack view to alignlment content center // use stack view to alignment content center
stackView.spacing = 4 stackView.spacing = 4
stackView.axis = .horizontal stackView.axis = .horizontal
stackView.alignment = .center stackView.alignment = .center
@ -127,7 +127,7 @@ class TimelineLoaderTableViewCell: UITableViewCell {
} }
private func setupBackgroundColor(theme: Theme) { private func setupBackgroundColor(theme: Theme) {
loadMoreButton.backgroundColor = theme.systemBackgroundColor loadMoreButton.backgroundColor = theme.tableViewCellBackgroundColor
} }
} }