Permalink
Browse files

Update keyRecord view backgroud color on updateLayer()

Fix keyRecord view background color does not change when the system
theme changes.
Ref: #2273
  • Loading branch information...
alejx committed Feb 6, 2019
1 parent 62f8f47 commit d54924757466444c3a7526de7c5b148c114fd06b
Showing with 4 additions and 0 deletions.
  1. +4 −0 iina/KeyRecordView.swift
@@ -44,6 +44,10 @@ class KeyRecordView: NSView {
layer?.cornerRadius = 4
}

override func updateLayer() {
layer?.backgroundColor = NSColor.keyRecordViewBackgroundActive.cgColor
}

override var acceptsFirstResponder: Bool {
return true
}

0 comments on commit d549247

Please sign in to comment.