mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 20:30:30 +00:00
60 lines
1.7 KiB
Swift
60 lines
1.7 KiB
Swift
//
|
|
// AppIconView.swift
|
|
// StikJIT
|
|
//
|
|
// Created by neoarz on 4/12/25.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct AppIconView: View {
|
|
@Environment(\.dismiss) private var dismiss
|
|
@AppStorage("customAccentColor") private var customAccentColorHex: String = ""
|
|
|
|
private var accentColor: Color {
|
|
if customAccentColorHex.isEmpty {
|
|
return .blue
|
|
} else {
|
|
return Color(hex: customAccentColorHex) ?? .blue
|
|
}
|
|
}
|
|
|
|
var body: some View {
|
|
NavigationView {
|
|
ZStack {
|
|
Color(UIColor.systemBackground)
|
|
.ignoresSafeArea()
|
|
|
|
VStack(spacing: 24) {
|
|
Image(systemName: "hammer.fill")
|
|
.font(.system(size: 60))
|
|
.foregroundColor(accentColor)
|
|
.padding(.bottom, 8)
|
|
|
|
Text("Work in Progress")
|
|
.font(.system(size: 24, weight: .bold))
|
|
.multilineTextAlignment(.center)
|
|
|
|
Text("App icon customization coming soon!")
|
|
.font(.system(size: 17))
|
|
.foregroundColor(.secondary)
|
|
.multilineTextAlignment(.center)
|
|
}
|
|
.padding()
|
|
}
|
|
.navigationTitle("App Icon")
|
|
.navigationBarTitleDisplayMode(.inline)
|
|
.toolbar {
|
|
ToolbarItem(placement: .navigationBarTrailing) {
|
|
Button("Done") {
|
|
dismiss()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
AppIconView()
|
|
}
|