Skip to content

Commit e531f15

Browse files
authored
Merge pull request #2104 from RCGV1/agent/firmware-update-affordance
Use update icon for firmware notice
2 parents e8bbbc7 + 7a3c189 commit e531f15

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

Meshtastic/Model/Firmware/FirmwareUpdateNotifier.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ struct FirmwareUpdateNotificationSource {
2424
}
2525

2626
struct FirmwareUpdateNotice: Equatable {
27+
static let symbolName = "arrow.triangle.2.circlepath"
28+
2729
let notificationKey: String
2830
let deviceName: String
2931
let currentVersion: String

Meshtastic/Views/Connect/Connect.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,9 +840,9 @@ private struct FirmwareUpdateConnectNotice: View {
840840
var body: some View {
841841
Button(action: action) {
842842
HStack(alignment: .top, spacing: 12) {
843-
Image(systemName: "exclamationmark.triangle.fill")
843+
Image(systemName: FirmwareUpdateNotice.symbolName)
844844
.font(.title3)
845-
.foregroundColor(.orange)
845+
.foregroundColor(.accentColor)
846846
.padding(.top, 2)
847847
.accessibilityHidden(true)
848848
VStack(alignment: .leading, spacing: 2) {

MeshtasticTests/FirmwareUpdateNotifierTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,8 @@ struct FirmwareUpdateNotifierTests {
151151
#expect(appOTANotice?.accessibilityHint == "Opens Firmware Updates")
152152
#expect(flasherNotice?.accessibilityHint == "Opens Meshtastic Flasher")
153153
}
154+
155+
@Test func updateNudgeUsesAnUpdateAffordance() {
156+
#expect(FirmwareUpdateNotice.symbolName == "arrow.triangle.2.circlepath")
157+
}
154158
}

0 commit comments

Comments
 (0)