Skip to content

Commit

Permalink
Fix FontColor
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzukihashi committed Mar 13, 2020
1 parent 14cfe22 commit b9102ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/NeumorphismManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public class NeumorphismManager: NeumorphismManagable, ObservableObject {

public func fontColor(lightColor: Color? = nil, darkColor: Color? = nil) -> Color {
if isDark {
return lightColor ?? self.lightColor
return lightColor ?? self.color.lighterColor()
} else {
return darkColor ?? self.darkColor
return darkColor ?? self.color.darkerColor()
}
}
}

0 comments on commit b9102ed

Please sign in to comment.