purple accent colour

This commit is contained in:
neon443 committed 2026-04-10 22:02:35 +01:00
1 parent 5ec663af69
commit a304122b43
9 files changed
+87 -15

No files matched your search

@@ -1,6 +1,23 @@
{
"colors" : [
{
"color" : {
"platform" : "ios",
"reference" : "systemPurpleColor"
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"platform" : "ios",
"reference" : "systemPurpleColor"
},
"idiom" : "universal"
}
],
+8
View File
@@ -109,6 +109,9 @@
A9BE30FF2F5FA78E00A57668 /* Hoarder.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9BE30FD2F5FA47100A57668 /* Hoarder.swift */; };
A9C172DC2EB8C9AC008A7885 /* Trie.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C172DB2EB8C9AC008A7885 /* Trie.swift */; };
A9C172DD2EB8C9AC008A7885 /* Trie.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C172DB2EB8C9AC008A7885 /* Trie.swift */; };
A9C52F6B2F8988CE00078588 /* EmptyCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F6A2F8988CD00078588 /* EmptyCollectionView.swift */; };
A9C52F6C2F8988CE00078588 /* EmptyCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F6A2F8988CD00078588 /* EmptyCollectionView.swift */; };
A9C52F6D2F8988CE00078588 /* EmptyCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C52F6A2F8988CD00078588 /* EmptyCollectionView.swift */; };
A9CD6C352EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C342EDDE22800B7F421 /* EmojiPackDetailView.swift */; };
A9CD6C362EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C342EDDE22800B7F421 /* EmojiPackDetailView.swift */; };
A9CD6C382EDDE37500B7F421 /* EmojiPackManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CD6C372EDDE37500B7F421 /* EmojiPackManager.swift */; };
@@ -215,6 +218,7 @@
A9BE30F92F5B03F400A57668 /* Sticker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Sticker.swift; sourceTree = "<group>"; };
A9BE30FD2F5FA47100A57668 /* Hoarder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Hoarder.swift; sourceTree = "<group>"; };
A9C172DB2EB8C9AC008A7885 /* Trie.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Trie.swift; sourceTree = "<group>"; };
A9C52F6A2F8988CD00078588 /* EmptyCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyCollectionView.swift; sourceTree = "<group>"; };
A9CD6C342EDDE22800B7F421 /* EmojiPackDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackDetailView.swift; sourceTree = "<group>"; };
A9CD6C372EDDE37500B7F421 /* EmojiPackManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPackManager.swift; sourceTree = "<group>"; };
A9D15B892EB1142C00404792 /* EmojiPack.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmojiPack.swift; sourceTree = "<group>"; };
@@ -476,6 +480,7 @@
A9BBC5172EB8FA4500FFE82F /* ViewModifiers.swift */,
A9BDEADD2F82BC93002798DF /* NoStickersView.swift */,
A921C2E12ED071C900E57B1A /* ListRow.swift */,
A9C52F6A2F8988CD00078588 /* EmptyCollectionView.swift */,
);
path = Misc;
sourceTree = "<group>";
@@ -650,6 +655,7 @@
A9BDEADE2F82BC93002798DF /* NoStickersView.swift in Sources */,
A955B3F52EC22EE900E1732D /* SearchView.swift in Sources */,
A935437B2EB2A3C800BB80A4 /* FilterCategory.swift in Sources */,
A9C52F6D2F8988CE00078588 /* EmptyCollectionView.swift in Sources */,
A9CD6C352EDDE22800B7F421 /* EmojiPackDetailView.swift in Sources */,
A9F7B3812F8951210071F198 /* EmojiPackImporterView.swift in Sources */,
A9A7A44E2F68383900BB84C6 /* GiphyImages.swift in Sources */,
@@ -690,6 +696,7 @@
A986A6CD2EB659E000B6E0FA /* MessagesViewController.swift in Sources */,
A9A7A4572F69568700BB84C6 /* GifHoarder.swift in Sources */,
A9BE30FF2F5FA78E00A57668 /* Hoarder.swift in Sources */,
A9C52F6C2F8988CE00078588 /* EmptyCollectionView.swift in Sources */,
A9A7A4582F69569100BB84C6 /* Trending.swift in Sources */,
A9A7A4592F69569100BB84C6 /* Pagination.swift in Sources */,
A9A7A45A2F69569100BB84C6 /* Meta.swift in Sources */,
@@ -720,6 +727,7 @@
A9A7A4402F6835F800BB84C6 /* Trending.swift in Sources */,
A9F7B3802F8951210071F198 /* EmojiPackImporterView.swift in Sources */,
A9BE30F72F5B011A00A57668 /* StickerProtocol.swift in Sources */,
A9C52F6B2F8988CE00078588 /* EmptyCollectionView.swift in Sources */,
A9BE30FC2F5B03F400A57668 /* Sticker.swift in Sources */,
A9EC46AE2F6D9E5800E066E6 /* StickerType.swift in Sources */,
A9B9A82F2EB2CCED004C9245 /* EmojiHoarder.swift in Sources */,
+1 -1
View File
@@ -19,7 +19,7 @@ class EmojiHoarder: BaseHoarder {
let endpoint: URL = URL(string: "https://cachet.dunkirk.sh/emojis")!
@Published var emojis: [Emoji] = []
@Published var emojiPacks: [EmojiPack] = [.test]
@Published var emojiPacks: [EmojiPack] = []
@Published var trie: Trie = Trie()
// @Published var downloadedStickers: Set<String> = []
@@ -76,10 +76,10 @@ struct EmojiPackDetailView: View {
.frame(maxWidth: .infinity)
.padding()
.background {
Color.purple.opacity(0.2)
Color.accentColor.opacity(0.2)
.clipShape(RoundedRectangle(cornerRadius: 10))
.blur(radius: 5)
.shadow(color: .purple, radius: 5)
.shadow(color: .accentColor, radius: 5)
}
.padding()
}
@@ -153,7 +153,7 @@ struct EmojiPackDetailView: View {
.navigationTitle(edit ? "Editing" : "Pack Details")
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem() {
ToolbarItem(placement: .topBarLeading) {
Button(
"",
systemImage: edit ? "checkmark" : "pencil"
@@ -166,7 +166,7 @@ struct EmojiPackDetailView: View {
if #available(iOS 19, *) {
ToolbarSpacer()
}
ToolbarItem() {
ToolbarItem(placement: .topBarTrailing) {
ShareLink(item: pack.shareLink()) {
Image(systemName: "square.and.arrow.up")
}
@@ -38,7 +38,7 @@ struct EmojiPackImporterView: View {
}
.modifier(glassButtonIfAv())
.padding(.trailing)
.tint(.purple)
.tint(.accentColor)
}
}
}
@@ -13,6 +13,13 @@ struct EmojiPackManager: View {
var body: some View {
NavigationStack {
List {
if hoarder.emojiPacks.isEmpty {
EmptyCollectionView(
title: "No Emoji Packs",
details: "Create one using the button in the toolbar.",
systemImage: "square.stack.3d.up.slash"
)
}
ForEach($hoarder.emojiPacks) { $pack in
NavigationLink {
EmojiPackDetailView(hoarder: hoarder, pack: $pack)
@@ -28,12 +35,6 @@ struct EmojiPackManager: View {
.tint(.red)
}
}
Spacer()
NavigationLink {
EmojiPackDetailView(hoarder: hoarder, pack: .constant(.test))
} label: {
Text("test")
}
}
.navigationTitle("Emoji Packs")
.navigationBarTitleDisplayMode(.inline)
@@ -0,0 +1,46 @@
//
// EmptyCollectionView.swift
// StickerSlack
//
// Created by neon443 on 10/04/2026.
//
import SwiftUI
struct EmptyCollectionView: View {
@State var title: String
@State var details: String
@State var systemImage: String
var body: some View {
ZStack {
Color.accentColor
.opacity(0.4)
.padding(.horizontal, -15)
.padding(.vertical, -15)
.blur(radius: 5)
HStack {
Image(systemName: systemImage)
.resizable()
.scaledToFit()
.frame(width: 25)
Text(title)
.bold()
.font(.title3)
}
}
.listRowSeparator(.hidden)
HStack {
Spacer()
Text(details)
.multilineTextAlignment(.center)
Spacer()
}
}
}
#Preview {
List {
EmptyCollectionView(title: "details.title", details: "details.body", systemImage: "gear")
}
}
+2 -2
View File
@@ -24,8 +24,8 @@ struct SettingsView: View {
.resizable().scaledToFit()
.frame(width: 100, height: 100)
.clipShape(RoundedRectangle(cornerRadius: 24))
.foregroundStyle(.purple)
.shadow(color: isDark ? .black : .purple, radius: 5)
.foregroundStyle(Color.accentColor)
.shadow(color: isDark ? .black : .accentColor, radius: 5)
.padding(.leading, -1)
.padding(.trailing, 10)
VStack(alignment: .leading) {
+1 -1
View File
@@ -59,7 +59,7 @@ struct WelcomeView: View {
}
}
.padding(.bottom)
.tint(.purple)
.tint(.accentColor)
.interactiveDismissDisabled()
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.