|
@@ -80,6 +80,7 @@ let KM_Fill_TickColors = "KM_Fill_TickColors"
|
|
|
let KM_SelfSign_Date_Colors = "KM_SelfSign_Date_Colors"
|
|
|
let KM_SelfSign_Date_Fill_Colors = "KM_SelfSign_Date_Fill_Colors"
|
|
|
|
|
|
+let KM_Background_default_Colors = "KM_Background_default_Colors"
|
|
|
|
|
|
//...
|
|
|
let KMOtherColorsPropertColors = "KMOtherColorsPropertColors"
|
|
@@ -487,6 +488,15 @@ let KMCreateSignDrawColors = "KMCreateSignDrawColors"
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ var backgroundColors: [NSColor] {
|
|
|
+ get {
|
|
|
+ return fetchColors(key: KM_Background_default_Colors)
|
|
|
+ }
|
|
|
+ set {
|
|
|
+ saveColors(colors: newValue, key: KM_Background_default_Colors)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// MARK: - OtherColors
|
|
|
var otherColors: [NSColor] {
|
|
|
get {
|
|
@@ -830,14 +840,15 @@ extension KMAnnotationPropertiesColorManager {
|
|
|
NSColor(red: 255/255.0, green: 222/255.0, blue: 222/255.0, alpha: 1.0),
|
|
|
NSColor(red: 255.0/255.0, green: 244.0/255.0, blue: 204/255.0, alpha: 1.0),
|
|
|
NSColor(red: 229/255.0, green: 219/255.0, blue: 255.0/255.0, alpha: 1.0)]
|
|
|
+ } else if key == KM_Background_default_Colors {
|
|
|
+ return [NSColor(red: 247/255, green: 247/255, blue: 247/255, alpha: 1),
|
|
|
+ NSColor(red: 255/255, green: 222/255, blue: 222/255, alpha: 1),
|
|
|
+ NSColor(red: 211/255, green: 242/255, blue: 255/255, alpha: 1),
|
|
|
+ NSColor(red: 221/255, green: 252/255, blue: 241/255, alpha: 1),
|
|
|
+ NSColor(red: 255/255, green: 244/255, blue: 204/255, alpha: 1)]
|
|
|
} else {
|
|
|
return []
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- func defaultColors(type: KMPropertiesColors) -> [NSColor] {
|
|
|
- var colors: [NSColor] = []
|
|
|
-
|
|
|
- return colors
|
|
|
- }
|
|
|
+
|
|
|
}
|