Skip to content

Commit

Permalink
fix side menu system icons bundle ref
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Mattiello <[email protected]>
  • Loading branch information
JoeMatt committed Nov 15, 2024
1 parent b2d1bec commit 3f86849
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions PVUI/Sources/PVSwiftUI/SideMenu/SideMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,22 +111,28 @@ SideMenuView: SwiftUI.View {
LazyVStack(alignment: .leading, spacing: 0) {
Divider()
.foregroundStyle(themeManager.currentPalette.menuDivider.swiftUIColor)
MenuItemView(icon: .named("prov_settings_gear"), rowTitle: "Settings") {
delegate.didTapSettings()
}
Divider()
.foregroundStyle(themeManager.currentPalette.menuDivider.swiftUIColor)

MenuItemView(icon: .named("prov_home_icon"), rowTitle: "Home") {
delegate.didTapHome()
}

Divider()
.foregroundStyle(themeManager.currentPalette.menuDivider.swiftUIColor)
MenuItemView(icon: .named("prov_add_games_icon"), rowTitle: "Add Games") {
delegate?.didTapAddGames()

MenuItemView(icon: .named("prov_settings_gear"), rowTitle: "Settings") {
delegate.didTapSettings()
}

// Divider()
// .foregroundStyle(themeManager.currentPalette.menuDivider.swiftUIColor)
//
// MenuItemView(icon: .named("prov_add_games_icon"), rowTitle: "Add Games") {
// delegate?.didTapAddGames()
// }
Divider()
.foregroundStyle(themeManager.currentPalette.menuDivider.swiftUIColor)
MenuItemView(icon: .sfSymbol("checklist"), rowTitle: "Import Queue") {

MenuItemView(icon: .sfSymbol("checklist"), rowTitle: "Add Games") {
delegate.didTapImports()
}
#if canImport(FreemiumKit)
Expand All @@ -144,7 +150,7 @@ SideMenuView: SwiftUI.View {
ForEach(sortedConsoles(), id: \.self) { console in
Divider()
.foregroundStyle(themeManager.currentPalette.menuDivider.swiftUIColor)
MenuItemView(icon: .named(console.iconName), rowTitle: console.name) {
MenuItemView(icon: .named(console.iconName, PVUIBase.BundleLoader.myBundle), rowTitle: console.name) {
delegate.didTapConsole(with: console.identifier)
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3f86849

Please sign in to comment.