mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-24 22:11:07 +01:00
Fill poll view
This commit is contained in:
parent
21d54cc546
commit
90a2a19bb1
@ -94,7 +94,6 @@ public struct StatusPollView: View {
|
|||||||
Text("\(percentForOption(option: option))%")
|
Text("\(percentForOption(option: option))%")
|
||||||
.font(.scaledSubheadline)
|
.font(.scaledSubheadline)
|
||||||
}
|
}
|
||||||
.frame(height: .pollBarHeight)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.accessibilityElement(children: .combine)
|
.accessibilityElement(children: .combine)
|
||||||
@ -186,7 +185,6 @@ public struct StatusPollView: View {
|
|||||||
let width = widthForOption(option: option, proxy: proxy)
|
let width = widthForOption(option: option, proxy: proxy)
|
||||||
Rectangle()
|
Rectangle()
|
||||||
.foregroundColor(theme.tintColor)
|
.foregroundColor(theme.tintColor)
|
||||||
.frame(height: .pollBarHeight)
|
|
||||||
.frame(width: width)
|
.frame(width: width)
|
||||||
if width != proxy.size.width {
|
if width != proxy.size.width {
|
||||||
Spacer()
|
Spacer()
|
||||||
@ -197,21 +195,21 @@ public struct StatusPollView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.foregroundColor(theme.tintColor.opacity(0.40))
|
.foregroundColor(theme.tintColor.opacity(0.40))
|
||||||
.frame(height: .pollBarHeight)
|
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 8))
|
.clipShape(RoundedRectangle(cornerRadius: 8))
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
buttonImage
|
buttonImage
|
||||||
Text(option.title)
|
Text(option.title)
|
||||||
.foregroundColor(theme.labelColor)
|
.foregroundColor(theme.labelColor)
|
||||||
.font(.scaledBody)
|
.font(.scaledBody)
|
||||||
|
.lineLimit(3)
|
||||||
.minimumScaleFactor(0.7)
|
.minimumScaleFactor(0.7)
|
||||||
}
|
}
|
||||||
.padding(.leading, 12)
|
.padding(.leading, 12)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(height: .pollBarHeight)
|
|
||||||
}
|
}
|
||||||
.buttonStyle(.borderless)
|
.buttonStyle(.borderless)
|
||||||
|
.frame(minHeight: .pollBarHeight)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user