From 20b3bed99fa19b87bf38d381e901902879291ea4 Mon Sep 17 00:00:00 2001 From: CMK Date: Thu, 8 Jul 2021 17:07:53 +0800 Subject: [PATCH] fix: timeline gap wrong theme color issue --- Mastodon/Scene/Share/View/Decoration/SawToothView.swift | 2 +- .../View/TableviewCell/TimelineLoaderTableViewCell.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Mastodon/Scene/Share/View/Decoration/SawToothView.swift b/Mastodon/Scene/Share/View/Decoration/SawToothView.swift index 94dab47fa..e344b62ef 100644 --- a/Mastodon/Scene/Share/View/Decoration/SawToothView.swift +++ b/Mastodon/Scene/Share/View/Decoration/SawToothView.swift @@ -52,7 +52,7 @@ final class SawToothView: UIView { } bezierPath.addLine(to: CGPoint(x: 0, y: bottomY)) bezierPath.close() - ThemeService.shared.currentTheme.value.systemBackgroundColor.setFill() + ThemeService.shared.currentTheme.value.tableViewCellBackgroundColor.setFill() bezierPath.fill() bezierPath.lineWidth = 0 bezierPath.stroke() diff --git a/Mastodon/Scene/Share/View/TableviewCell/TimelineLoaderTableViewCell.swift b/Mastodon/Scene/Share/View/TableviewCell/TimelineLoaderTableViewCell.swift index b18314df2..8c329d31e 100644 --- a/Mastodon/Scene/Share/View/TableviewCell/TimelineLoaderTableViewCell.swift +++ b/Mastodon/Scene/Share/View/TableviewCell/TimelineLoaderTableViewCell.swift @@ -86,7 +86,7 @@ class TimelineLoaderTableViewCell: UITableViewCell { 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.axis = .horizontal stackView.alignment = .center @@ -127,7 +127,7 @@ class TimelineLoaderTableViewCell: UITableViewCell { } private func setupBackgroundColor(theme: Theme) { - loadMoreButton.backgroundColor = theme.systemBackgroundColor + loadMoreButton.backgroundColor = theme.tableViewCellBackgroundColor } }