Skip to content

Commit

Permalink
Remove themeManager unused dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
alienator88 committed Jul 30, 2024
1 parent 64ca030 commit 570d4fd
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"location" : "https://github.com/alienator88/AlinFoundation",
"state" : {
"branch" : "main",
"revision" : "c23d071049676e849036bbfecfd6ea48ef3bbe94"
"revision" : "9f761c860e7950f2f0021616a404ba4f07224c28"
}
}
],
Expand Down
Binary file not shown.
1 change: 0 additions & 1 deletion Sentinel/Dashboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ struct Dashboard: View {

@EnvironmentObject var appState: AppState
@EnvironmentObject var updater: Updater
@EnvironmentObject var themeManager: ThemeManager
// @State private var bounce = false

var body: some View {
Expand Down
6 changes: 0 additions & 6 deletions Sentinel/SentinelApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,13 @@ struct SentinelApp: App {
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
@StateObject var appState = AppState()
@StateObject private var updater = Updater(owner: "alienator88", repo: "Sentinel")
@StateObject private var themeManager = ThemeManager.shared

var body: some Scene {
WindowGroup {
Group {
Dashboard()
.environmentObject(appState)
.environmentObject(updater)
.environmentObject(themeManager)
}
.onAppear {
themeManager.displayMode = .dark
}
}
.commands {
Expand All @@ -32,7 +27,6 @@ struct SentinelApp: App {
SettingsView()
.environmentObject(appState)
.environmentObject(updater)
.environmentObject(themeManager)
}


Expand Down
1 change: 0 additions & 1 deletion Sentinel/Updater/SettingsWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import AlinFoundation
struct SettingsView: View {
@EnvironmentObject var appState: AppState
@EnvironmentObject var updater: Updater
@EnvironmentObject var themeManager: ThemeManager

var body: some View {

Expand Down
2 changes: 0 additions & 2 deletions Sentinel/Updater/UpdateSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import AlinFoundation
struct UpdateSettingsTab: View {
@EnvironmentObject var appState: AppState
@EnvironmentObject var updater: Updater
@EnvironmentObject var themeManager: ThemeManager

var body: some View {
VStack {
Expand All @@ -25,7 +24,6 @@ struct UpdateSettingsTab: View {
.frame(height: 400)
.frame(maxWidth: .infinity)
.background(.background.opacity(0.2))
// .backgroundAF(opacity: 0.5)
.clipShape(RoundedRectangle(cornerRadius: 8))


Expand Down

0 comments on commit 570d4fd

Please sign in to comment.