Increase default icon brightness
This commit is contained in:
parent
8ba15c6234
commit
8eb99b01c3
|
@ -18,7 +18,9 @@ import AppKit
|
|||
|
||||
public class ColorHash {
|
||||
|
||||
public static let defaultLS = [CGFloat(0.45), CGFloat(0.6), CGFloat(0.75)]
|
||||
public static let defaultSaturation = [CGFloat(0.35), CGFloat(0.5), CGFloat(0.65)]
|
||||
public static let defaultBrightness = [CGFloat(0.5), CGFloat(0.65), CGFloat(0.80)]
|
||||
|
||||
let seed = CGFloat(131.0)
|
||||
let seed2 = CGFloat(137.0)
|
||||
let maxSafeInteger = 9007199254740991.0 / CGFloat(137.0)
|
||||
|
@ -28,7 +30,7 @@ public class ColorHash {
|
|||
public private(set) var brightness: [CGFloat]
|
||||
public private(set) var saturation: [CGFloat]
|
||||
|
||||
public init(_ str: String, _ saturation: [CGFloat] = defaultLS, _ brightness: [CGFloat] = defaultLS) {
|
||||
public init(_ str: String, _ saturation: [CGFloat] = defaultSaturation, _ brightness: [CGFloat] = defaultBrightness) {
|
||||
self.str = str
|
||||
self.saturation = saturation
|
||||
self.brightness = brightness
|
||||
|
|
Loading…
Reference in New Issue