mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-03-11 13:26:17 +00:00
added icons for settingsview
This commit is contained in:
21
Resources/Assets.xcassets/icon-dark.imageset/Contents.json
vendored
Normal file
21
Resources/Assets.xcassets/icon-dark.imageset/Contents.json
vendored
Normal 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
|
||||
}
|
||||
}
|
||||
BIN
Resources/Assets.xcassets/icon-dark.imageset/StickerSlack-iOS-Dark-1024x1024@1x.png
vendored
Normal file
BIN
Resources/Assets.xcassets/icon-dark.imageset/StickerSlack-iOS-Dark-1024x1024@1x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 MiB |
21
Resources/Assets.xcassets/icon.imageset/Contents.json
vendored
Normal file
21
Resources/Assets.xcassets/icon.imageset/Contents.json
vendored
Normal 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
|
||||
}
|
||||
}
|
||||
BIN
Resources/Assets.xcassets/icon.imageset/StickerSlack-iOS-Default-1024x1024@1x.png
vendored
Normal file
BIN
Resources/Assets.xcassets/icon.imageset/StickerSlack-iOS-Default-1024x1024@1x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 MiB |
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user