mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 12:30:29 +00:00
create placeholder app icon view
This commit is contained in:
parent
7067fcf207
commit
40deb46ef2
2 changed files with 58 additions and 1 deletions
53
StikJIT/Views/AppIconView.swift
Normal file
53
StikJIT/Views/AppIconView.swift
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
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()
|
||||
}
|
||||
|
|
@ -23,6 +23,7 @@ struct SettingsView: View {
|
|||
@State private var importProgress: Float = 0.0
|
||||
@State private var is_lc = false
|
||||
@State private var showColorPickerPopup = false
|
||||
@State private var showingAppIconSheet = false
|
||||
|
||||
@StateObject private var mountProg = MountingProgress.shared
|
||||
|
||||
|
|
@ -123,7 +124,7 @@ struct SettingsView: View {
|
|||
.buttonStyle(PlainButtonStyle())
|
||||
|
||||
Button(action: {
|
||||
// App Icon button - placeholder for now
|
||||
showingAppIconSheet = true
|
||||
}) {
|
||||
HStack {
|
||||
Image(systemName: "app")
|
||||
|
|
@ -150,6 +151,9 @@ struct SettingsView: View {
|
|||
.padding(.vertical, 20)
|
||||
.padding(.horizontal, 16)
|
||||
}
|
||||
.sheet(isPresented: $showingAppIconSheet) {
|
||||
AppIconView()
|
||||
}
|
||||
|
||||
SettingsCard {
|
||||
VStack(alignment: .leading, spacing: 20) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue