forked from rooootdev/lara
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTweaksView.swift
More file actions
79 lines (71 loc) · 3.39 KB
/
Copy pathTweaksView.swift
File metadata and controls
79 lines (71 loc) · 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//
// TweaksView.swift
// lara
//
// Created by lunginspector on 5/3/26.
//
import SwiftUI
struct TweaksView: View {
@AppStorage("logsdisplaymode") private var selectedlogsdisplaymode: logsdisplaymode = .toolbar
@ObservedObject var mgr: laramgr
var body: some View {
NavigationStack {
List {
Section(header: HeaderLabel(text: "SpringBoard", icon: "house")) {
NavigationLink("RemoteCall Customizer", destination: RemoteView(mgr: mgr))
.disabled(!mgr.rcready)
NavigationLink("DarkBoard", destination: DarkBoardView())
.disabled(true)
NavigationLink("Liquid Glass", destination: LiquidGlassView())
.disabled(!mgr.vfsready)
if doubleSystemVersion() < 26.0 {
NavigationLink("SB Customizer", destination: SpringBoardView(mgr: mgr))
.disabled(!mgr.vfsready)
}
}
Section(header: HeaderLabel(text: "Lock Screen", icon: "lock")) {
NavigationLink("Passcode Theme", destination: PasscodeView(mgr: mgr))
.disabled(!mgr.sbxready)
}
Section(header: HeaderLabel(text: "Apps", icon: "app")) {
NavigationLink("Card Overwrite", destination: CardView())
.disabled(!mgr.vfsready)
NavigationLink("3 App Bypass", destination: AppsView())
.disabled(!mgr.sbxready)
NavigationLink("Unblacklist", destination: WhitelistView())
.disabled(!mgr.sbxready)
NavigationLink("JIT Enabler", destination: JitView())
.disabled(!mgr.sbxready)
}
Section(header: HeaderLabel(text: "User Interface", icon: "eye")) {
NavigationLink("dirtyZero", destination: dirtyZeroView())
.disabled(!mgr.vfsready)
NavigationLink("MobileGestalt", destination: GestaltView(mgr: laramgr()))
.disabled(!mgr.sbxready)
NavigationLink("Font Overwrite", destination: FontPicker(mgr: mgr))
.disabled(!mgr.vfsready)
NavigationLink("SystemColor Patcher", destination: SystemColor(mgr: mgr))
.disabled(!mgr.sbxready || !mgr.vfsready)
}
Section(header: HeaderLabel(text: "System", icon: "gear")) {
NavigationLink("VarClean", destination: VarCleanView())
.disabled(!mgr.sbxready)
NavigationLink("Custom Overwrite", destination: CustomView(mgr: mgr))
.disabled(!mgr.vfsready)
}
NavigationLink("Extra Tools", destination: ToolsView())
}
.disabled(!mgr.dsready)
.navigationTitle("Tweaks")
.toolbar {
if selectedlogsdisplaymode == .toolbar {
Button(action: {
mgr.showLogs.toggle()
}) {
Image(systemName: "terminal")
}
}
}
}
}
}