Skip to content

Commit

Permalink
[Fix/#29] 아이콘 색상 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kms0233 committed Jan 16, 2025
1 parent 72f822c commit 37e3f70
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 35 deletions.
2 changes: 0 additions & 2 deletions Gongbaek_iOS/Gongbaek_iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Global/Component/BottomSheet/.gitkeep,
Global/Component/Box/.gitkeep,
Global/Component/Modal/.gitkeep,
Global/Component/Others/.gitkeep,
Network/Service/DTO/Filling/.gitkeep,
Presentation/Home/View/.gitkeep,
Expand Down
11 changes: 1 addition & 10 deletions Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/LocationBox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,14 @@ struct LocationBox: View {
Image(.icPlace16)
.resizable()
.frame(width: 16, height: 16)
.foregroundColor(iconColor)
.foregroundColor(.gray05)

Text(text)
.font(font)
.foregroundColor(textColor)
}
}

private var iconColor: Color {
switch state {
case .gray:
return .gray05
case .white:
return .grayWhite
}
}

private var textColor: Color {
switch state {
case .gray:
Expand Down
13 changes: 2 additions & 11 deletions Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/PersonBox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,14 @@ struct PersonBox: View {
Image(.icPeople18)
.resizable()
.frame(width: 16, height: 16)
.foregroundColor(iconColor)
.foregroundColor(.gray05)

Text(text)
.font(font)
.foregroundColor(textColor)
}
}

private var iconColor: Color {
switch state {
case .gray:
return .gray05
case .white:
return .grayWhite
}
}

private var textColor: Color {
switch state {
case .gray:
Expand Down
15 changes: 3 additions & 12 deletions Gongbaek_iOS/Gongbaek_iOS/Global/Component/Box/TimeBox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,14 @@ struct TimeBox: View {
Image(.icTime16)
.resizable()
.frame(width: 16, height: 16)
.foregroundColor(iconColor)
.foregroundColor(.gray05)

Text(text)
.font(font)
.foregroundColor(textColor)
}
}

private var iconColor: Color {
switch state {
case .gray:
return .gray05
case .white:
return .grayWhite
}
}


private var textColor: Color {
switch state {
case .gray:
Expand Down

0 comments on commit 37e3f70

Please sign in to comment.