mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Fix some formatting
This commit is contained in:
parent
c5bb5935e9
commit
ad7994ce14
@ -59,7 +59,7 @@ extension AlbumDetailView: NSTableViewDelegate {
|
|||||||
let cellView = tableView.makeView(
|
let cellView = tableView.makeView(
|
||||||
withIdentifier: .discNumber,
|
withIdentifier: .discNumber,
|
||||||
owner: self
|
owner: self
|
||||||
) as! NSTableCellView
|
) as! NSTableCellView
|
||||||
|
|
||||||
cellView.textField?.stringValue = "Disc \(disc)"
|
cellView.textField?.stringValue = "Disc \(disc)"
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ extension AlbumDetailView: NSTableViewDelegate {
|
|||||||
let cellView = tableView.makeView(
|
let cellView = tableView.makeView(
|
||||||
withIdentifier: .trackNumber,
|
withIdentifier: .trackNumber,
|
||||||
owner: self
|
owner: self
|
||||||
) as! NSTableCellView
|
) as! NSTableCellView
|
||||||
|
|
||||||
cellView.textField?.stringValue = "\(song.trackNumber)."
|
cellView.textField?.stringValue = "\(song.trackNumber)."
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ extension AlbumDetailView: NSTableViewDelegate {
|
|||||||
let cellView = tableView.makeView(
|
let cellView = tableView.makeView(
|
||||||
withIdentifier: .songTitle,
|
withIdentifier: .songTitle,
|
||||||
owner: self
|
owner: self
|
||||||
) as! AlbumDetailSongTitleView
|
) as! AlbumDetailSongTitleView
|
||||||
|
|
||||||
cellView.setShowArtist(dataSource.showSongArtist)
|
cellView.setShowArtist(dataSource.showSongArtist)
|
||||||
cellView.setSong(song)
|
cellView.setSong(song)
|
||||||
@ -93,7 +93,7 @@ extension AlbumDetailView: NSTableViewDelegate {
|
|||||||
let cellView = tableView.makeView(
|
let cellView = tableView.makeView(
|
||||||
withIdentifier: .songDuration,
|
withIdentifier: .songDuration,
|
||||||
owner: self
|
owner: self
|
||||||
) as! NSTableCellView
|
) as! NSTableCellView
|
||||||
|
|
||||||
cellView.textField?.font = .timerFont
|
cellView.textField?.font = .timerFont
|
||||||
cellView.textField?.stringValue = song.duration.formattedTime
|
cellView.textField?.stringValue = song.duration.formattedTime
|
||||||
|
|||||||
@ -46,12 +46,12 @@ extension MPDClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var albumArtist: String {
|
var albumArtist: String {
|
||||||
let albumArtist = getTag(.albumArtist);
|
let albumArtist = getTag(.albumArtist);
|
||||||
if albumArtist != "" {
|
if albumArtist != "" {
|
||||||
return albumArtist
|
return albumArtist
|
||||||
} else {
|
} else {
|
||||||
return artist
|
return artist
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var date: String {
|
var date: String {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user