Skip to content

Commit 7d0c9d4

Browse files
committed
fix mgr
1 parent eac5049 commit 7d0c9d4

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

lara/views/tweaks/TweaksView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct TweaksView: View {
2222
NavigationLink("Liquid Glass", destination: LiquidGlassView())
2323
.disabled(!mgr.vfsready)
2424
if doubleSystemVersion() < 26.0 {
25-
NavigationLink("SB Customizer", destination: SpringBoardView())
25+
NavigationLink("SB Customizer", destination: SpringBoardView(mgr: mgr))
2626
.disabled(!mgr.vfsready)
2727
}
2828
}

lara/views/tweaks/sbcustomizer/SpringBoardView.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ struct SpringBoardView: View {
6363
// .init(value: getDefaultStr(forKey: "ShortcutBanner"), key: "ShortcutBanner", title: NSLocalizedString("Shortcut Notification Banner", comment: "Springboard tool"), imageName: "pencil.slash", fileType: .springboard, options: ["Visible", "Disabled"], minimumOS: 16)
6464
]
6565

66+
let mgr: laramgr
6667
let replacementPaths: [String: [String]] = [
6768
SpringBoardOptions.DockHidden.rawValue: ["CoreMaterial.framework/dockDark.materialrecipe", "CoreMaterial.framework/dockLight.materialrecipe"],
6869
SpringBoardOptions.HomeBarHidden.rawValue: ["MaterialKit.framework/Assets.car"],
@@ -303,8 +304,4 @@ func colortohex(_ color: Color) -> String {
303304
var r: CGFloat = 0, g: CGFloat = 0, b: CGFloat = 0, a: CGFloat = 0
304305
ui.getRed(&r, green: &g, blue: &b, alpha: &a)
305306
return String(format: "#%02X%02X%02X (%02X)", Int(r*255), Int(g*255), Int(b*255), Int(a*255))
306-
}
307-
308-
#Preview {
309-
SpringBoardView()
310-
}
307+
}

0 commit comments

Comments
 (0)