mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Clean up the circle text a bit
This commit is contained in:
parent
58e7a53c30
commit
b7aa76564f
1 changed files with 11 additions and 2 deletions
|
|
@ -16,11 +16,20 @@ struct CircleText: View {
|
|||
Circle()
|
||||
.fill(color)
|
||||
.frame(width: circleSize, height: circleSize)
|
||||
#if os(macOS)
|
||||
Text(text)
|
||||
.frame(width: circleSize * 0.96, height: circleSize * 0.96, alignment: .center)
|
||||
.frame(width: circleSize * 0.95, height: circleSize * 0.95, alignment: .center)
|
||||
.foregroundColor(color.isLight() ? .black : .white)
|
||||
.font(.system(size: 3000))
|
||||
.minimumScaleFactor(0.002)
|
||||
.minimumScaleFactor(0.001)
|
||||
#else
|
||||
Text(text)
|
||||
.frame(width: circleSize * 0.95, height: circleSize * 0.95, alignment: .center)
|
||||
.foregroundColor(color.isLight() ? .black : .white)
|
||||
.font(.system(size: 5000))
|
||||
.minimumScaleFactor(0.001)
|
||||
#endif
|
||||
|
||||
}
|
||||
.aspectRatio(1, contentMode: .fit)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue