Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Jul 15, 2023
1 parent 7f41b45 commit 4c8d648
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FSNotes/Business/SidebarItemType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ enum SidebarItemType: Int {
guard let icon = icon else { return nil }

let image = NSImage(named: icon)

if UserDefaults.standard.value(forKey: "AppleAccentColor") != nil {
return image?.tint(color: NSColor.controlAccentColor)
} else if white && !NSAppearance.current.isDark {
return image?.tint(color: .white)
} else {
return image?.tint(color: NSColor(red: 0.00, green: 0.57, blue: 1.00, alpha: 1.00))
}
Expand Down

0 comments on commit 4c8d648

Please sign in to comment.