Skip to content

Commit

Permalink
chore: [#87] Update navigation bar title and toolbar colors
Browse files Browse the repository at this point in the history
- toolbar 색상과 네비게이션 toolbar 색상 변경
  • Loading branch information
dbqls200 committed May 28, 2024
1 parent 0d636c4 commit 82d49ee
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,51 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "1.000",
"green" : "1.000",
"red" : "1.000"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "light"
}
],
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0x00",
"green" : "0x00",
"red" : "0x00"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "1.000",
"green" : "1.000",
"red" : "1.000"
}
},
"idiom" : "universal"
}
],
Expand Down
1 change: 1 addition & 0 deletions MinGenie/MinGenie/Home/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ struct HomeView: View {
}
}
.background(Color.BG.main)
.tint(Color.accentColor)
.searchable(text: $searchTerm, prompt: "아티스트, 노래")
.onChange(of: storedTrackIDs) {
selectedMusicDataModel.loadTracksByID(storedTrackIDs)
Expand Down
4 changes: 2 additions & 2 deletions MinGenie/MinGenie/Search/Cells/AlbumCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct AlbumCell: View {
Text("\(album.title)")
.font(.body)
.foregroundStyle(Color.Text.black)

HStack {
Text("\(album.artistName)")

Expand All @@ -43,7 +43,7 @@ struct AlbumCell: View {
Divider()
}
.lineLimit(1)

Spacer()

Image(systemName: "chevron.right")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ struct DetailedAlbumView: View {
.background(Color.BG.main)
.lineLimit(1)
.ignoresSafeArea(edges: .top)
.navigationTitle(album.title)
.navigationBarTitleDisplayMode(.inline)
.task {
try? await model.loadTracks(album: album)
}
Expand Down

0 comments on commit 82d49ee

Please sign in to comment.