Skip to content

Commit

Permalink
Fix crash in initial window
Browse files Browse the repository at this point in the history
  • Loading branch information
lhc70000 committed Oct 7, 2020
1 parent 553e6c9 commit da3de15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iina/InitialWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class InitialWindowController: NSWindowController {
window.appearance = NSAppearance(iinaTheme: theme)
if #available(macOS 10.16, *) {
let gradientLayer = CAGradientLayer()
gradientLayer.colors = window.appearance!.isDark ?
gradientLayer.colors = window.effectiveAppearance.isDark ?
[NSColor.black.withAlphaComponent(0.4).cgColor, NSColor.black.withAlphaComponent(0).cgColor] :
[NSColor.black.withAlphaComponent(0.1).cgColor, NSColor.black.withAlphaComponent(0).cgColor]
leftOverlayView.wantsLayer = true
Expand Down

0 comments on commit da3de15

Please sign in to comment.