mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Working Headphone HUDs and other stuff
This commit is contained in:
parent
9ea2cce485
commit
4bb67c2cd3
7 changed files with 113 additions and 18 deletions
|
|
@ -4,6 +4,7 @@ struct LockScreenWeatherWidget: View {
|
|||
let snapshot: LockScreenWeatherSnapshot
|
||||
|
||||
var body: some View {
|
||||
let segments = infoSegments
|
||||
HStack(spacing: 8) {
|
||||
Image(systemName: snapshot.symbolName)
|
||||
.font(.system(size: 26, weight: .medium))
|
||||
|
|
@ -12,12 +13,15 @@ struct LockScreenWeatherWidget: View {
|
|||
.font(.system(size: 24, weight: .semibold, design: .rounded))
|
||||
.kerning(-0.4)
|
||||
|
||||
ForEach(Array(infoSegments.enumerated()), id: \.offset) { _, segment in
|
||||
HStack(spacing: 4) {
|
||||
Text("•")
|
||||
.font(.system(size: 22, weight: .semibold, design: .rounded))
|
||||
segmentView(for: segment)
|
||||
if !segments.isEmpty {
|
||||
Color.clear.frame(width: 6)
|
||||
}
|
||||
|
||||
ForEach(Array(segments.enumerated()), id: \.offset) { index, segment in
|
||||
if index > 0 {
|
||||
Color.clear.frame(width: 12)
|
||||
}
|
||||
segmentView(for: segment)
|
||||
}
|
||||
}
|
||||
.foregroundStyle(Color.white.opacity(0.65))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue