mirror of
https://github.com/yattee/yattee.git
synced 2024-12-24 22:43:41 +00:00
Minor controls bar changes
This commit is contained in:
parent
96ba994bf5
commit
b199af05b8
@ -221,10 +221,24 @@ struct ControlsBar: View {
|
|||||||
.foregroundColor(model.currentVideo.isNil ? .secondary : .accentColor)
|
.foregroundColor(model.currentVideo.isNil ? .secondary : .accentColor)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
|
|
||||||
Text(model.currentVideo?.author ?? "")
|
HStack(spacing: 2) {
|
||||||
.font(.system(size: 12))
|
Text(model.currentVideo?.author ?? "")
|
||||||
.foregroundColor(.secondary)
|
.font(.system(size: 12))
|
||||||
.lineLimit(1)
|
|
||||||
|
if let channel = model.currentVideo?.channel,
|
||||||
|
let subsriptions = channel.subscriptionsString
|
||||||
|
{
|
||||||
|
HStack(spacing: 2) {
|
||||||
|
Image(systemName: "person.2.fill")
|
||||||
|
|
||||||
|
Text(subsriptions)
|
||||||
|
}
|
||||||
|
.padding(.leading, 4)
|
||||||
|
.font(.system(size: 9))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.lineLimit(1)
|
||||||
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
@ -246,7 +260,7 @@ struct ControlsBar: View {
|
|||||||
.indicator(.activity)
|
.indicator(.activity)
|
||||||
} else {
|
} else {
|
||||||
ZStack {
|
ZStack {
|
||||||
Color(white: 0.8)
|
Color(white: 0.6)
|
||||||
.opacity(0.5)
|
.opacity(0.5)
|
||||||
|
|
||||||
Image(systemName: "play.rectangle")
|
Image(systemName: "play.rectangle")
|
||||||
|
Loading…
Reference in New Issue
Block a user