mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-13 00:33:28 +01:00
[CHANGE] Replace system image name strings with SFSymbols
This commit is contained in:
committed by
Joe Mattiello
parent
bcd54067d3
commit
5697c4c063
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import SFSafeSymbols
|
||||
|
||||
struct AddSourceView: View {
|
||||
|
||||
@@ -28,7 +29,7 @@ struct AddSourceView: View {
|
||||
Text("Please enter the source url here. Then, tap continue to validate and add the source in the next step.")
|
||||
|
||||
HStack(alignment: .top) {
|
||||
Image(systemName: "exclamationmark.triangle.fill")
|
||||
Image(systemSymbol: .exclamationmarkTriangleFill)
|
||||
|
||||
Text("Be careful with unvalidated third-party sources! Make sure to only add sources that you trust.")
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import SFSafeSymbols
|
||||
import AltStoreCore
|
||||
|
||||
struct BrowseView: View {
|
||||
@@ -76,7 +77,7 @@ struct BrowseView: View {
|
||||
SwiftUI.Button {
|
||||
|
||||
} label: {
|
||||
Image(systemName: "line.3.horizontal.decrease.circle")
|
||||
Image(systemSymbol: .lineHorizontal3DecreaseCircle)
|
||||
.imageScale(.large)
|
||||
}
|
||||
|
||||
@@ -127,7 +128,7 @@ struct PromotedCategoryView: View {
|
||||
}
|
||||
|
||||
HStack {
|
||||
Image(systemName: "dpad.right.filled")
|
||||
Image(systemSymbol: .dpadRightFill)
|
||||
Text("Games &\nEmulators")
|
||||
.multilineTextAlignment(.leading)
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import SFSafeSymbols
|
||||
import AltStoreCore
|
||||
|
||||
struct ConfirmAddSourceView: View {
|
||||
@@ -64,7 +65,7 @@ struct ConfirmAddSourceView: View {
|
||||
SwiftUI.Button {
|
||||
confirmationHandler(fetchedSource)
|
||||
} label: {
|
||||
Label(title: { Text("Add Source") }, icon: { Image(systemName: "plus") })
|
||||
Label("Add Source", systemSymbol: .plus)
|
||||
}
|
||||
.buttonStyle(FilledButtonStyle())
|
||||
.padding()
|
||||
@@ -75,7 +76,7 @@ struct ConfirmAddSourceView: View {
|
||||
SwiftUI.Button {
|
||||
|
||||
} label: {
|
||||
Image(systemName: "xmark.circle.fill")
|
||||
Image(systemSymbol: .xmarkCircleFill)
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import SFSafeSymbols
|
||||
import AltStoreCore
|
||||
import CoreData
|
||||
|
||||
@@ -57,7 +58,7 @@ struct SourcesView: View {
|
||||
SwiftUI.Button {
|
||||
self.removeSource(source)
|
||||
} label: {
|
||||
Label("Remove", systemImage: "trash")
|
||||
Label("Remove", systemSymbol: .trash)
|
||||
}
|
||||
}))
|
||||
}
|
||||
@@ -85,7 +86,7 @@ struct SourcesView: View {
|
||||
SwiftUI.Button {
|
||||
self.isShowingAddSourceAlert = true
|
||||
} label: {
|
||||
Image(systemName: "plus")
|
||||
Image(systemSymbol: .plus)
|
||||
}
|
||||
.sheet(isPresented: self.$isShowingAddSourceAlert) {
|
||||
NavigationView {
|
||||
|
||||
Reference in New Issue
Block a user