Skip to content

Commit

Permalink
ProView.swift -> ExpertView.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Feb 18, 2024
1 parent 187876d commit 6b3cbf4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/apps/SettingsWindow/src/View/ContentMainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ enum NavigationTag: String {
case misc
case uninstall
case log
case pro
case expert
case action
}

Expand All @@ -29,7 +29,7 @@ struct ContentMainView: View {
if settings.unsafeUI {
Button(
action: {
contentViewStates.navigationSelection = .pro
contentViewStates.navigationSelection = .expert
},
label: {
HStack {
Expand Down Expand Up @@ -206,14 +206,14 @@ struct ContentMainView: View {

Button(
action: {
contentViewStates.navigationSelection = .pro
contentViewStates.navigationSelection = .expert
},
label: {
SidebarLabelView(text: "Pro", systemImage: "flame", padding: 2.0)
SidebarLabelView(text: "Expert", systemImage: "flame", padding: 2.0)
}
)
.sidebarButtonStyle(
selected: contentViewStates.navigationSelection == .pro)
selected: contentViewStates.navigationSelection == .expert)

Button(
action: {
Expand Down Expand Up @@ -271,8 +271,8 @@ struct ContentMainView: View {
UninstallView()
case .log:
LogView()
case .pro:
ProView()
case .expert:
ExpertView()
case .action:
ActionView()
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import SwiftUI

struct ProView: View {
struct ExpertView: View {
@ObservedObject private var settings = LibKrbn.Settings.shared

var body: some View {
VStack(alignment: .leading, spacing: 24.0) {
GroupBox(label: Text("Pro mode")) {
GroupBox(label: Text("Expert mode")) {
VStack(alignment: .leading, spacing: 12.0) {
HStack {
Toggle(isOn: $settings.unsafeUI) {
Expand Down Expand Up @@ -69,8 +69,8 @@ struct ProView: View {
}
}

struct ProView_Previews: PreviewProvider {
struct ExpertView_Previews: PreviewProvider {
static var previews: some View {
ProView()
ExpertView()
}
}

0 comments on commit 6b3cbf4

Please sign in to comment.