mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
* Bump version * iOS 26 styled keyboard toolbar Update tips backgrounds * Link the logo to the about page * Remove double logo on node list, update scary location log message, update tls toggle visibility and keyboard scroll dismiss on mqtt config * Remove redundant colorScheme check
53 lines
1.2 KiB
Swift
53 lines
1.2 KiB
Swift
//
|
|
// MeshtasticLogo.swift
|
|
// Meshtastic
|
|
//
|
|
// Copyright(c) Garth Vander Houwen 10/6/22.
|
|
//
|
|
import SwiftUI
|
|
|
|
struct MeshtasticLogo: View {
|
|
|
|
@Environment(\.colorScheme) var colorScheme
|
|
|
|
var body: some View {
|
|
#if targetEnvironment(macCatalyst)
|
|
VStack {
|
|
Link(destination: URL(string: "meshtastic:///settings/about")!) {
|
|
if #available(iOS 26.0, macOS 26.0, *) {
|
|
Image(colorScheme == .dark ? "logo-white" : "logo-black")
|
|
.resizable()
|
|
.foregroundColor(.accentColor)
|
|
.scaledToFit()
|
|
} else {
|
|
Image("logo-white")
|
|
.resizable()
|
|
.foregroundColor(.accentColor)
|
|
.scaledToFit()
|
|
}
|
|
}
|
|
}
|
|
.padding(.bottom, 5)
|
|
.padding(.top, 5)
|
|
#else
|
|
if #available(iOS 26.0, macOS 26.0, *) {
|
|
VStack {
|
|
Link(destination: URL(string: "meshtastic:///settings/about")!) {
|
|
Image(colorScheme == .dark ? "logo-white" : "logo-black")
|
|
.resizable()
|
|
.scaledToFit()
|
|
}
|
|
}
|
|
} else {
|
|
VStack {
|
|
Link(destination: URL(string: "meshtastic:///settings/about")!) {
|
|
Image(colorScheme == .dark ? "logo-white" : "logo-black")
|
|
.resizable()
|
|
.scaledToFit()
|
|
}
|
|
}
|
|
.padding(.bottom, 5)
|
|
}
|
|
#endif
|
|
}
|
|
}
|