Skip to content

Commit

Permalink
[FIX] DO-NOTTO-DO#84 - 추천뷰 Background Color 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongdung-eo committed Jan 13, 2023
1 parent 5218a1c commit b3c5c53
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ extension AchievementViewController {
extension AchievementViewController: FSCalendarDelegate, FSCalendarDataSource {
func calendarCurrentPageDidChange(_ calendar: FSCalendar) {
calendarView.calendar.reloadData()
reloadMonthData()
calendarView.headerLabel.text = calendarView.dateFormatter.string(from: calendar.currentPage)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CustomTabBarCell: UICollectionViewCell {

// MARK: - UI Components

private var bgView = UIView()
private var backGroundView = UIView()
private var icImage = UIImageView()
private var titleLabel = UILabel()

Expand Down Expand Up @@ -46,10 +46,10 @@ extension CustomTabBarCell {
}

private func setLayout() {
addSubview(bgView)
bgView.addSubviews(icImage, titleLabel)
addSubview(backGroundView)
backGroundView.addSubviews(icImage, titleLabel)

bgView.snp.makeConstraints {
backGroundView.snp.makeConstraints {
$0.height.equalTo(82.adjusted)
$0.width.equalTo(69.adjusted)
$0.centerX.centerY.equalToSuperview()
Expand All @@ -74,13 +74,13 @@ extension CustomTabBarCell {
titleLabel.textColor = .nottodoGray1
titleLabel.font = .PretendardBold(size: 12.adjusted)
icImage.image = UIImage(named: item.activeImage)
bgView.backgroundColor = .yellow_mild
backGroundView.backgroundColor = .yellow_mild
} else {
titleLabel.text = item.name
titleLabel.textColor = .nottodoGray2
titleLabel.font = .PretendardMedium(size: 12.adjusted)
icImage.image = UIImage(named: item.image)
bgView.backgroundColor = .clear
backGroundView.backgroundColor = .clear
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ extension RecommendViewController {
}

contentsCollectionView.do {
$0.backgroundColor = .systemGray6
$0.backgroundColor = .BG
$0.showsHorizontalScrollIndicator = false
$0.isPagingEnabled = true
}
Expand Down

0 comments on commit b3c5c53

Please sign in to comment.