1
1
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:
Tae Won Ha 2023-11-13 18:59:15 +01:00
parent 5c045c49aa
commit bdcd4f3466
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
3 changed files with 6 additions and 3 deletions

View File

@ -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() {

View File

@ -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)

View File

@ -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