added clear logos for giphy stickers

This commit is contained in:
neon443 committed 2026-04-03 12:58:18 +01:00
1 parent 7b91de576a
commit 208f97b102
7 files changed
+29 -6

No files matched your search

@@ -0,0 +1,22 @@
{
"images" : [
{
"filename" : "giphy black.png",
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "giphy.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

+1
View File
@@ -14,6 +14,7 @@ import UniformTypeIdentifiers
struct Emoji: StickerProtocol {
var id: String
var name: String
var typeGlyph: String = "slack.logo"
var localImageURLString: String {
let urlString = remoteImageURL.absoluteString
let split = urlString.split(separator: ".")
+2
View File
@@ -12,6 +12,8 @@ import UniformTypeIdentifiers
struct Gif: StickerProtocol {
var id: String
var name: String
var typeGlyph: String = "giphy.logo"
var localImageURLString: String {
let urlString = remoteImageURL.absoluteString
let split = urlString.split(separator: ".")
@@ -12,6 +12,8 @@ protocol StickerProtocol: Codable, Identifiable, Hashable {
var id: String { get set }
var name: String { get set }
var typeGlyph: String { get }
var localImageURL: URL { get }
var localImageURLString: String { get }
var remoteImageURL: URL { get set }
+2 -6
View File
@@ -34,14 +34,10 @@ struct StickerRow<T: Hoarder>: View {
Button {
showTooltip.toggle()
} label: {
if type(of: sticker) == Emoji.self {
Image("slack.logo")
Image(sticker.typeGlyph)
.resizable().scaledToFit()
.frame(width: 20, height: 20)
.frame(maxHeight: 20)
.foregroundStyle(.gray)
} else if type(of: sticker) == Gif.self {
Text("G")
}
}
.buttonStyle(.borderless)
.alert("From Slack", isPresented: $showTooltip) {
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.