Skip to content

Commit

Permalink
Convert asset string names to Swift symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
chickdan committed Jan 24, 2024
1 parent 1ec4df9 commit 4d71752
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Swiftfin tvOS/Views/BasicAppSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct BasicAppSettingsView: View {
var body: some View {
SplitFormWindowView()
.descriptionView {
Image("jellyfin-blob-blue")
Image(.jellyfinBlobBlue)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(maxWidth: 400)
Expand Down
2 changes: 1 addition & 1 deletion Swiftfin tvOS/Views/ServerListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct ServerListView: View {
SplitFormWindowView()
.descriptionView {
VStack {
Image("jellyfin-blob-blue")
Image(.jellyfinBlobBlue)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(maxWidth: 400)
Expand Down
2 changes: 1 addition & 1 deletion Swiftfin tvOS/Views/SettingsView/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct SettingsView: View {
var body: some View {
SplitFormWindowView()
.descriptionView {
Image("jellyfin-blob-blue")
Image(.jellyfinBlobBlue)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(maxWidth: 400)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Swiftfin/Views/AboutAppView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct AboutAppView: View {

ChevronButton(title: L10n.sourceCode)
.leadingView {
Image("logo.github")
Image(.logoGithub)
.resizable()
.frame(width: 20, height: 20)
.foregroundColor(.primary)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ extension ItemView.AboutView {
VStack {
Group {
if criticRating >= 60 {
Image("tomato.fresh")
Image(.tomatoFresh)
.symbolRenderingMode(.multicolor)
.foregroundStyle(.green, .red)
} else {
Image("tomato.rotten")
Image(.tomatoRotten)
.symbolRenderingMode(.monochrome)
.foregroundColor(.green)
}
Expand Down
4 changes: 2 additions & 2 deletions Swiftfin/Views/LiveTVChannelItemWideElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ struct LiveTVChannelItemWideElement: View {
programLabel(
timeText: currentProgramText.timeDisplay,
titleText: currentProgramText.title,
color: Color("TextHighlightColor")
color: Color(.textHighlight)
)
if !nextProgramsText.isEmpty {
let nextItem = nextProgramsText[0]
Expand Down Expand Up @@ -132,7 +132,7 @@ struct LiveTVChannelItemWideElement: View {
.background {
RoundedRectangle(cornerRadius: 10, style: .continuous)
.fill(Color("BackgroundColor"))
.shadow(color: Color("ShadowColor"), radius: 4, x: 0, y: 0)
.shadow(color: Color(.shadow), radius: 4, x: 0, y: 0)
}
}

Expand Down

0 comments on commit 4d71752

Please sign in to comment.