diff --git a/Resources/Assets.xcassets/icon-dark.imageset/Contents.json b/Resources/Assets.xcassets/icon-dark.imageset/Contents.json new file mode 100644 index 0000000..9bbf745 --- /dev/null +++ b/Resources/Assets.xcassets/icon-dark.imageset/Contents.json @@ -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 + } +} diff --git a/Resources/Assets.xcassets/icon-dark.imageset/StickerSlack-iOS-Dark-1024x1024@1x.png b/Resources/Assets.xcassets/icon-dark.imageset/StickerSlack-iOS-Dark-1024x1024@1x.png new file mode 100644 index 0000000..93e2853 Binary files /dev/null and b/Resources/Assets.xcassets/icon-dark.imageset/StickerSlack-iOS-Dark-1024x1024@1x.png differ diff --git a/Resources/Assets.xcassets/icon.imageset/Contents.json b/Resources/Assets.xcassets/icon.imageset/Contents.json new file mode 100644 index 0000000..3346991 --- /dev/null +++ b/Resources/Assets.xcassets/icon.imageset/Contents.json @@ -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 + } +} diff --git a/Resources/Assets.xcassets/icon.imageset/StickerSlack-iOS-Default-1024x1024@1x.png b/Resources/Assets.xcassets/icon.imageset/StickerSlack-iOS-Default-1024x1024@1x.png new file mode 100644 index 0000000..be357d6 Binary files /dev/null and b/Resources/Assets.xcassets/icon.imageset/StickerSlack-iOS-Default-1024x1024@1x.png differ diff --git a/StickerSlack/SwiftUI/SettingsView.swift b/StickerSlack/SwiftUI/SettingsView.swift index d33df8a..5efd748 100644 --- a/StickerSlack/SwiftUI/SettingsView.swift +++ b/StickerSlack/SwiftUI/SettingsView.swift @@ -10,17 +10,21 @@ import SwiftUI struct SettingsView: View { @ObservedObject var hoarder: EmojiHoarder + @Environment(\.colorScheme) var colorScheme + var isDark: Bool { + return colorScheme == .dark + } var body: some View { NavigationStack { List { Section { VStack(alignment: .leading) { - Image(systemName: "app.dashed") + Image(isDark ? "icon-dark" : "icon") .resizable().scaledToFit() .frame(width: 100, height: 100) .clipShape(RoundedRectangle(cornerRadius: 24)) .foregroundStyle(.purple) - .shadow(color: .purple, radius: 5) + .shadow(color: isDark ? .white : .purple, radius: 5) Text("StickerSlack") .font(.title) .monospaced()