fix: timeline gap wrong theme color issue
This commit is contained in:
parent
d9c0c75782
commit
20b3bed99f
|
@ -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()
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue