1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-15 06:40:32 +05:30

Minor controls bar changes

This commit is contained in:
Arkadiusz Fal 2022-06-25 18:54:05 +02:00
parent 96ba994bf5
commit b199af05b8

View File

@ -221,10 +221,24 @@ struct ControlsBar: View {
.foregroundColor(model.currentVideo.isNil ? .secondary : .accentColor) .foregroundColor(model.currentVideo.isNil ? .secondary : .accentColor)
.lineLimit(1) .lineLimit(1)
HStack(spacing: 2) {
Text(model.currentVideo?.author ?? "") Text(model.currentVideo?.author ?? "")
.font(.system(size: 12)) .font(.system(size: 12))
.foregroundColor(.secondary)
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) .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")