mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Size updates for larger short name
This commit is contained in:
parent
a3964edb86
commit
cbd6b2c242
4 changed files with 13 additions and 7 deletions
|
|
@ -8,7 +8,7 @@ import SwiftUI
|
|||
struct CircleText: View {
|
||||
var text: String
|
||||
var color: Color
|
||||
var circleSize: CGFloat? = 50
|
||||
var circleSize: CGFloat? = 60
|
||||
var fontSize: CGFloat? = 22
|
||||
|
||||
var body: some View {
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ struct Contacts: View {
|
|||
|
||||
VStack {
|
||||
|
||||
CircleText(text: user.shortName ?? "???", color: Color.blue)
|
||||
CircleText(text: user.shortName ?? "????", color: Color.blue)
|
||||
}
|
||||
.padding(.trailing)
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ struct UserMessageList: View {
|
|||
if currentUser { Spacer(minLength:50) }
|
||||
|
||||
if !currentUser {
|
||||
CircleText(text: message.fromUser?.shortName ?? "????", color: currentUser ? .accentColor : Color(.darkGray), circleSize: 36, fontSize: 16).padding(.all, 5)
|
||||
CircleText(text: message.fromUser?.shortName ?? "????", color: currentUser ? .accentColor : Color(.darkGray), circleSize: 46, fontSize: 16).padding(.all, 5)
|
||||
}
|
||||
|
||||
VStack(alignment: currentUser ? .trailing : .leading) {
|
||||
|
|
@ -444,7 +444,7 @@ struct UserMessageList: View {
|
|||
|
||||
HStack {
|
||||
|
||||
CircleText(text: user.shortName ?? "???", color: .blue, circleSize: 42, fontSize: 20).fixedSize()
|
||||
CircleText(text: user.shortName ?? "???", color: .blue, circleSize: 42, fontSize: 16).fixedSize()
|
||||
Text(user.longName ?? "Unknown").font(.headline).fixedSize()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,13 @@ struct PowerConfig: View {
|
|||
VStack {
|
||||
|
||||
Form {
|
||||
|
||||
|
||||
Section(header: Text("Warning")) {
|
||||
|
||||
Text("These power settings are designed for and and are only useful in very specific mostly solar use cases and should not be enabled by the majority of users, expecially if you are using your device as a messaging handset paired with a phone.")
|
||||
.font(.callout)
|
||||
.listRowSeparator(.visible)
|
||||
}
|
||||
Section(header: Text("States")) {
|
||||
|
||||
Toggle(isOn: $isPowerSaving) {
|
||||
|
|
@ -30,7 +36,7 @@ struct PowerConfig: View {
|
|||
}
|
||||
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
|
||||
.disabled(isAlwaysPowered)
|
||||
Text("If set, we are powered from a low-current source (i.e. solar), so even if it looks like we have power flowing in we should try to minimize power consumption as much as possible.")
|
||||
Text("If set, we are powered from a low-current source (i.e. solar) and do not intend on using a client to connect via BLE, WiFi or Serial. This setting is assumed and unnessary if you have turned on Router mode.")
|
||||
.font(.caption)
|
||||
.listRowSeparator(.visible)
|
||||
|
||||
|
|
@ -40,7 +46,7 @@ struct PowerConfig: View {
|
|||
}
|
||||
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
|
||||
.disabled(isPowerSaving)
|
||||
Text("Circumvents the logic block for determining whether the device is powered or not. Useful for devices with finicky ADC issues on the battery sense pins, or no battery pin at all.")
|
||||
Text("Circumvents the logic block for determining whether the device is powered or not. Useful for devices with finicky ADC issues on the battery sense pins, or no battery pin at all. This mode increases battery use substantially")
|
||||
.font(.caption)
|
||||
.listRowSeparator(.visible)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue