Skip to content

Commit d42f299

Browse files
committed
mbg fix?
1 parent eac5049 commit d42f299

2 files changed

Lines changed: 12 additions & 23 deletions

File tree

lara/views/tweaks/TweaksView.swift

Lines changed: 2 additions & 2 deletions
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
}
@@ -46,7 +46,7 @@ struct TweaksView: View {
4646
Section(header: HeaderLabel(text: "User Interface", icon: "eye")) {
4747
NavigationLink("dirtyZero", destination: dirtyZeroView())
4848
.disabled(!mgr.vfsready)
49-
NavigationLink("MobileGestalt", destination: GestaltView(mgr: laramgr()))
49+
NavigationLink("MobileGestalt", destination: GestaltView(mgr: mgr))
5050
.disabled(!mgr.sbxready)
5151
NavigationLink("Font Overwrite", destination: FontPicker(mgr: mgr))
5252
.disabled(!mgr.vfsready)

lara/views/tweaks/sbcustomizer/SpringBoardView.swift

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,6 @@
88
import SwiftUI
99
import UIKit
1010

11-
enum SpringBoardOptions: String, CaseIterable {
12-
case DockHidden = "DockHidden"
13-
case HomeBarHidden = "HomeBar"
14-
case FolderBGHidden = "FolderBGHidden"
15-
case FolderBlurDisabled = "FolderBlurDisabled"
16-
case SwitcherBlurDisabled = "SwitcherBlurDisabled"
17-
case CCModuleBackgroundDisabled = "CCModuleBackgroundDisabled"
18-
case PodBackgroundDisabled = "PodBackgroundDisabled"
19-
case NotifBackgroundDisabled = "NotifBackgroundDisabled"
20-
case ShortcutBanner = "ShortcutBanner"
21-
}
22-
2311
enum OverwritingFileTypes {
2412
case springboard
2513
case cc
@@ -63,16 +51,17 @@ struct SpringBoardView: View {
6351
// .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)
6452
]
6553

54+
let mgr: laramgr
6655
let replacementPaths: [String: [String]] = [
67-
SpringBoardOptions.DockHidden.rawValue: ["CoreMaterial.framework/dockDark.materialrecipe", "CoreMaterial.framework/dockLight.materialrecipe"],
68-
SpringBoardOptions.HomeBarHidden.rawValue: ["MaterialKit.framework/Assets.car"],
69-
SpringBoardOptions.FolderBGHidden.rawValue: ["SpringBoardHome.framework/folderLight.materialrecipe", "SpringBoardHome.framework/folderDark.materialrecipe", "SpringBoardHome.framework/folderDarkSimplified.materialrecipe"],
70-
SpringBoardOptions.FolderBlurDisabled.rawValue: ["SpringBoardHome.framework/folderExpandedBackgroundHome.materialrecipe", "SpringBoardHome.framework/folderExpandedBackgroundHomeSimplified.materialrecipe"],
71-
SpringBoardOptions.SwitcherBlurDisabled.rawValue: ["SpringBoard.framework/homeScreenBackdrop-application.materialrecipe", "SpringBoard.framework/homeScreenBackdrop-switcher.materialrecipe"],
72-
SpringBoardOptions.CCModuleBackgroundDisabled.rawValue: ["CoreMaterial.framework/modules.materialrecipe"],
73-
SpringBoardOptions.PodBackgroundDisabled.rawValue: ["SpringBoardHome.framework/podBackgroundViewLight.visualstyleset", "SpringBoardHome.framework/podBackgroundViewDark.visualstyleset"],
74-
SpringBoardOptions.NotifBackgroundDisabled.rawValue: ["CoreMaterial.framework/plattersDark.materialrecipe", "CoreMaterial.framework/platters.materialrecipe"],
75-
SpringBoardOptions.ShortcutBanner.rawValue: ["SpringBoard.framework/BannersAuthorizedBundleIDs.plist"]
56+
"DockHidden": ["CoreMaterial.framework/dockDark.materialrecipe", "CoreMaterial.framework/dockLight.materialrecipe"],
57+
"HomeBar": ["MaterialKit.framework/Assets.car"],
58+
"FolderBGHidden": ["SpringBoardHome.framework/folderLight.materialrecipe", "SpringBoardHome.framework/folderDark.materialrecipe", "SpringBoardHome.framework/folderDarkSimplified.materialrecipe"],
59+
"FolderBlurDisabled": ["SpringBoardHome.framework/folderExpandedBackgroundHome.materialrecipe", "SpringBoardHome.framework/folderExpandedBackgroundHomeSimplified.materialrecipe"],
60+
"SwitcherBlurDisabled": ["SpringBoard.framework/homeScreenBackdrop-application.materialrecipe", "SpringBoard.framework/homeScreenBackdrop-switcher.materialrecipe"],
61+
"CCModuleBackgroundDisabled": ["CoreMaterial.framework/modules.materialrecipe"],
62+
"PodBackgroundDisabled": ["SpringBoardHome.framework/podBackgroundViewLight.visualstyleset", "SpringBoardHome.framework/podBackgroundViewDark.visualstyleset"],
63+
"NotifBackgroundDisabled": ["CoreMaterial.framework/plattersDark.materialrecipe", "CoreMaterial.framework/platters.materialrecipe"],
64+
"ShortcutBanner": ["SpringBoard.framework/BannersAuthorizedBundleIDs.plist"]
7665
]
7766

7867
var body: some View {

0 commit comments

Comments
 (0)