mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-03 13:19:00 +03:00
Remove some warnings
This commit is contained in:
parent
5c045c49aa
commit
bdcd4f3466
@ -90,7 +90,7 @@ final class AdvancedPref: PrefPane, UiComponent, NSTextFieldDelegate {
|
||||
self.useInteractiveZshCheckbox.boolState = self.useInteractiveZsh
|
||||
self.useLiveResizeCheckbox.boolState = self.useLiveResize
|
||||
self.drawsParallelCheckbox.boolState = self.drawsParallel
|
||||
self.nvimBinaryField.string = self.nvimBinary ?? ""
|
||||
self.nvimBinaryField.string = self.nvimBinary
|
||||
}
|
||||
|
||||
private func addViews() {
|
||||
|
@ -102,7 +102,7 @@ extension MainWindow {
|
||||
for: .setTheme(Theme(from: nvimTheme, additionalColorDict: colors))
|
||||
)
|
||||
)
|
||||
}, onError: {
|
||||
}, onFailure: {
|
||||
_ in self.log.trace("oops couldn't set theme")
|
||||
})
|
||||
.disposed(by: self.disposeBag)
|
||||
|
@ -39,7 +39,10 @@ struct Theme: CustomStringConvertible {
|
||||
var background = NSColor.textBackgroundColor
|
||||
|
||||
var highlightForeground = NSColor.selectedMenuItemTextColor
|
||||
var highlightBackground = NSColor.selectedMenuItemColor
|
||||
// NSColor.selectedMenuItemColor is deprecated. The doc says that
|
||||
// NSVisualEffectView.Material.selection should be used instead, but I don't know how to get
|
||||
// an NSColor from it.
|
||||
var highlightBackground = NSColor.selectedContentBackgroundColor
|
||||
|
||||
var directoryForeground = NSColor.textColor
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user