Skip to content

Commit

Permalink
Made capsule and tray sidebar icons heavier to match the look of the …
Browse files Browse the repository at this point in the history
…new Tags icon
  • Loading branch information
vincode-io committed Jun 9, 2024
1 parent e858273 commit e6093d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VinOutlineKit/Sources/VinOutlineKit/AllDocuments.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public final class AllDocuments: Identifiable, DocumentContainer {
public var partialName: String? = VinOutlineKitStringAssets.all

#if canImport(UIKit)
public var image: UIImage? = UIImage(systemName: "tray")!
public var image: UIImage? = UIImage(systemName: "tray")!.applyingSymbolConfiguration(.init(weight: .medium))
#endif

public var itemCount: Int? {
Expand Down
4 changes: 2 additions & 2 deletions VinOutlineKit/Sources/VinOutlineKit/TagDocuments.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ public final class TagDocuments: Identifiable, DocumentContainer {
#if targetEnvironment(macCatalyst)
public var image: UIImage? {
if children.isEmpty {
return UIImage(systemName: "capsule")!.applyingSymbolConfiguration(.init(pointSize: 12))
return UIImage(systemName: "capsule")!.applyingSymbolConfiguration(.init(pointSize: 12, weight: .medium))
} else {
return UIImage(named: "Tags")!.applyingSymbolConfiguration(.init(pointSize: 16, weight: .regular, scale: .small))
}
}
#else
public var image: UIImage? {
if children.isEmpty {
return UIImage(systemName: "capsule")!.applyingSymbolConfiguration(.init(pointSize: 15))
return UIImage(systemName: "capsule")!.applyingSymbolConfiguration(.init(pointSize: 15, weight: .medium))
} else {
return UIImage(named: "Tags")!.applyingSymbolConfiguration(.init(pointSize: 25, weight: .regular, scale: .small))
}
Expand Down

0 comments on commit e6093d1

Please sign in to comment.