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:
parent
7b3509fcdf
commit
21b231c392
|
@ -29,11 +29,7 @@ final class PreferencesTabViewController: NSViewController, PreferencesStyleCont
|
||||||
}
|
}
|
||||||
|
|
||||||
override func loadView() {
|
override func loadView() {
|
||||||
let newView = NSVisualEffectView()
|
view = NSView()
|
||||||
newView.material = NSVisualEffectView.Material.sidebar
|
|
||||||
newView.blendingMode = NSVisualEffectView.BlendingMode.behindWindow
|
|
||||||
newView.state = NSVisualEffectView.State.active
|
|
||||||
view = newView
|
|
||||||
view.translatesAutoresizingMaskIntoConstraints = false
|
view.translatesAutoresizingMaskIntoConstraints = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -177,7 +177,6 @@ struct VwrPrefPaneCassette: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
||||||
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,6 @@ struct VwrPrefPaneDevZone: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
||||||
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,6 @@ struct VwrPrefPaneDictionary: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
||||||
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -281,7 +281,6 @@ struct VwrPrefPaneExperience: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
||||||
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -195,7 +195,6 @@ struct VwrPrefPaneGeneral: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
||||||
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,6 @@ struct VwrPrefPaneKeyboard: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
||||||
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ struct VwrPrefPanePhrases: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
.frame(maxHeight: contentMaxHeight).fixedSize(horizontal: false, vertical: true)
|
||||||
.background(VisualEffectView(material: .sidebar, blendingMode: .behindWindow))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue