PrefUI // Disable Windows Aero glass effect.

- This causes legibility issues with grey texts shown in textField, hence the removal of it.
This commit is contained in:
ShikiSuen 2022-12-06 15:32:05 +08:00
parent 7b3509fcdf
commit 21b231c392
8 changed files with 1 additions and 12 deletions

View File

@ -29,11 +29,7 @@ final class PreferencesTabViewController: NSViewController, PreferencesStyleCont
}
override func loadView() {
let newView = NSVisualEffectView()
newView.material = NSVisualEffectView.Material.sidebar
newView.blendingMode = NSVisualEffectView.BlendingMode.behindWindow
newView.state = NSVisualEffectView.State.active
view = newView
view = NSView()
view.translatesAutoresizingMaskIntoConstraints = false
}

View File

@ -177,7 +177,6 @@ struct VwrPrefPaneCassette: View {
}
}
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
}
}

View File

@ -118,7 +118,6 @@ struct VwrPrefPaneDevZone: View {
}
}
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
}
}

View File

@ -194,7 +194,6 @@ struct VwrPrefPaneDictionary: View {
}
}
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
}
}

View File

@ -281,7 +281,6 @@ struct VwrPrefPaneExperience: View {
}
}
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
}
}

View File

@ -195,7 +195,6 @@ struct VwrPrefPaneGeneral: View {
}
}
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
}
}

View File

@ -154,7 +154,6 @@ struct VwrPrefPaneKeyboard: View {
}
}
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
}
}

View File

@ -44,7 +44,6 @@ struct VwrPrefPanePhrases: View {
}
}
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
}
}