Skip to content

Commit bb7ad6a

Browse files
committed
Update Player View layout
1 parent 18337a8 commit bb7ad6a

4 files changed

Lines changed: 186 additions & 189 deletions

File tree

Views/Library/FilterSidebarView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ struct FilterSidebarView: View {
124124
.buttonStyle(.borderless)
125125
}
126126
}
127-
.padding(.horizontal, 6) // Match Folders view
128-
.padding(.vertical, 2) // Match Folders view
127+
.padding(.horizontal, 10)
128+
.padding(.vertical, 5)
129129
.background(Color(NSColor.textBackgroundColor))
130130
.cornerRadius(4)
131131

@@ -140,8 +140,8 @@ struct FilterSidebarView: View {
140140
.buttonStyle(.borderless)
141141
.help("Sort \(sortAscending ? "descending" : "ascending")")
142142
}
143-
.padding(.horizontal, 12)
144-
.padding(.vertical, 8)
143+
.padding(.horizontal, 10)
144+
.padding(.vertical, 5)
145145
.background(Color(NSColor.controlBackgroundColor).opacity(0.5))
146146
}
147147

Views/Library/LibraryView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,15 @@ struct LibraryView: View {
187187
.font(.headline)
188188
}
189189
}
190-
.padding(.leading, 16)
191-
.padding(.vertical, 10)
190+
.padding(.horizontal, 15)
191+
.padding(.vertical, 8)
192192

193193
Spacer()
194194

195195
Text("\(cachedFilteredTracks.count) tracks")
196196
.font(.caption)
197197
.foregroundColor(.secondary)
198-
.padding(.trailing, 16)
198+
.padding(.trailing, 15)
199199
.padding(.vertical, 10)
200200
}
201201
}

Views/Main/PlayQueueView.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ struct PlayQueueView: View {
1313
queueHeader
1414

1515
Divider()
16+
.frame(height: 1)
17+
.overlay(Color(NSColor.controlColor).opacity(0.2))
1618

1719
// Queue list
1820
if playlistManager.currentQueue.isEmpty {
@@ -42,7 +44,7 @@ struct PlayQueueView: View {
4244
.font(.headline)
4345
}
4446
.padding(.leading, 15)
45-
.padding(.vertical, 10)
47+
.padding(.vertical, 8)
4648

4749
Spacer()
4850

@@ -64,8 +66,8 @@ struct PlayQueueView: View {
6466
.help("Clear Queue")
6567
}
6668
}
67-
.padding(.trailing, 15)
68-
.padding(.vertical, 9)
69+
.padding(.horizontal, 15)
70+
.padding(.vertical, 5)
6971
}
7072
.background(Color(NSColor.windowBackgroundColor))
7173
}

0 commit comments

Comments
 (0)