added icons for settingsview

This commit is contained in:
neon443
2025-11-22 13:36:18 +00:00
parent c6166e33cb
commit 69b1edce9f
5 changed files with 48 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "StickerSlack-iOS-Dark-1024x1024@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 MiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "StickerSlack-iOS-Default-1024x1024@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

View File

@@ -10,17 +10,21 @@ import SwiftUI
struct SettingsView: View { struct SettingsView: View {
@ObservedObject var hoarder: EmojiHoarder @ObservedObject var hoarder: EmojiHoarder
@Environment(\.colorScheme) var colorScheme
var isDark: Bool {
return colorScheme == .dark
}
var body: some View { var body: some View {
NavigationStack { NavigationStack {
List { List {
Section { Section {
VStack(alignment: .leading) { VStack(alignment: .leading) {
Image(systemName: "app.dashed") Image(isDark ? "icon-dark" : "icon")
.resizable().scaledToFit() .resizable().scaledToFit()
.frame(width: 100, height: 100) .frame(width: 100, height: 100)
.clipShape(RoundedRectangle(cornerRadius: 24)) .clipShape(RoundedRectangle(cornerRadius: 24))
.foregroundStyle(.purple) .foregroundStyle(.purple)
.shadow(color: .purple, radius: 5) .shadow(color: isDark ? .white : .purple, radius: 5)
Text("StickerSlack") Text("StickerSlack")
.font(.title) .font(.title)
.monospaced() .monospaced()