new app store assets ready for relese ui updates
This commit is contained in:
+2
-2
@@ -144,12 +144,12 @@ struct TorrentRow: View {
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
(dynamicTypeSize.isAccessibilitySize ? AnyLayout(VStackLayout(alignment: .leading, spacing: 6)) : AnyLayout(HStackLayout(alignment: .top))) {
|
||||
Image(systemName: torrent.complete ? "checkmark.circle.fill" : "arrow.down.circle.fill").foregroundStyle(torrent.complete ? .green : .indigo).font(.title2)
|
||||
Image(systemName: torrent.complete ? "checkmark.circle.fill" : "arrow.down.circle.fill").foregroundStyle(torrent.complete ? .green : .yellow).font(.title2)
|
||||
Text(torrent.name).font(.headline).lineLimit(dynamicTypeSize.isAccessibilitySize ? nil : 2)
|
||||
if !dynamicTypeSize.isAccessibilitySize { Spacer() }
|
||||
Text(torrent.progress, format: .percent.precision(.fractionLength(1))).font(.subheadline.monospacedDigit()).foregroundStyle(.secondary)
|
||||
}
|
||||
ProgressView(value: torrent.complete ? 1 : min(max(torrent.progress, 0), 1)).tint(torrent.complete ? .green : .indigo).accessibilityLabel("Download progress")
|
||||
ProgressView(value: torrent.complete ? 1 : min(max(torrent.progress, 0), 1)).tint(torrent.complete ? .green : .yellow).accessibilityLabel("Download progress")
|
||||
(dynamicTypeSize.isAccessibilitySize ? AnyLayout(VStackLayout(alignment: .leading, spacing: 6)) : AnyLayout(HStackLayout())) {
|
||||
Label(bytes(torrent.dlspeed) + "/s", systemImage: "arrow.down").accessibilityLabel("Download speed").accessibilityValue(bytes(torrent.dlspeed) + " per second")
|
||||
Label(bytes(torrent.upspeed) + "/s", systemImage: "arrow.up").accessibilityLabel("Upload speed").accessibilityValue(bytes(torrent.upspeed) + " per second")
|
||||
|
||||
@@ -98,7 +98,7 @@ struct DetailView: View {
|
||||
ForEach(files) { file in
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
Text(file.name).font(.subheadline)
|
||||
ProgressView(value: file.progress).tint(file.progress >= 1 ? .green : .indigo)
|
||||
ProgressView(value: file.progress).tint(file.progress >= 1 ? .green : .yellow)
|
||||
HStack {
|
||||
Text(bytes(file.size)).font(.caption).foregroundStyle(.secondary)
|
||||
Spacer()
|
||||
|
||||
Reference in New Issue
Block a user