fix
This commit is contained in:
parent
00a722f407
commit
2d90e70b69
@ -25,26 +25,9 @@ struct SettingsView: View {
|
|||||||
NavigationSplitView(columnVisibility: $columnVisibility) {
|
NavigationSplitView(columnVisibility: $columnVisibility) {
|
||||||
List(MenuItem.allCases, id: \.self, selection: $selectedMenu) { menu in
|
List(MenuItem.allCases, id: \.self, selection: $selectedMenu) { menu in
|
||||||
HStack(alignment: .center) {
|
HStack(alignment: .center) {
|
||||||
// Rectangle()
|
|
||||||
// .frame(width: 3, height: 25)
|
|
||||||
// .foregroundColor(self.selectedMenu == menu ? .black : .clear)
|
|
||||||
|
|
||||||
Text(menu.rawValue)
|
Text(menu.rawValue)
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
// .contentShape(Rectangle())
|
|
||||||
// .onTapGesture {
|
|
||||||
// self.selectedMenu = menu
|
|
||||||
// }
|
|
||||||
// .onHover { inside in
|
|
||||||
// hovering = inside
|
|
||||||
// if inside {
|
|
||||||
// NSCursor.pointingHand.push()
|
|
||||||
// } else {
|
|
||||||
// NSCursor.pop()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
.listStyle(.sidebar)
|
.listStyle(.sidebar)
|
||||||
.frame(minWidth: 180, idealWidth: 200, maxWidth: 250)
|
.frame(minWidth: 180, idealWidth: 200, maxWidth: 250)
|
||||||
|
|||||||
@ -43,7 +43,7 @@ struct punchnetApp: App {
|
|||||||
var body: some Scene {
|
var body: some Scene {
|
||||||
WindowGroup(id: "mainWindow") {
|
WindowGroup(id: "mainWindow") {
|
||||||
// RootView()
|
// RootView()
|
||||||
RegisterRootView()
|
SettingsView()
|
||||||
.navigationTitle("")
|
.navigationTitle("")
|
||||||
.environment(self.appContext)
|
.environment(self.appContext)
|
||||||
.environment(self.userContext)
|
.environment(self.userContext)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user