X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=KCD%2FSlotItemLevelView.swift;h=9560138e97652ecdf6cd9474110cbc29ab714f7c;hb=fa6a0a0b51735ab1f9a4caef2dc9bad3ec09bd9e;hp=75117718fedadb0c54a2c3255633b2bb750399ac;hpb=88689f9116566fd3a2919a20d0d434b422ef3c0d;p=kcd%2FKCD.git diff --git a/KCD/SlotItemLevelView.swift b/KCD/SlotItemLevelView.swift index 75117718..9560138e 100644 --- a/KCD/SlotItemLevelView.swift +++ b/KCD/SlotItemLevelView.swift @@ -213,7 +213,9 @@ final class SlotItemLevelView: NSTextField { private var levelColor: NSColor { - return #colorLiteral(red: 0.135, green: 0.522, blue: 0.619, alpha: 1) + return ColorSetManager.current[.slotItemLevelViewLevel] + + } // MARK: - Function @@ -262,9 +264,9 @@ final class SlotItemLevelView: NSTextField { switch level { - case 1, 2, 3: return #colorLiteral(red: 0.257, green: 0.523, blue: 0.643, alpha: 1) + case 1, 2, 3: return ColorSetManager.current[.slotItemLevelViewLowAirLevel] - case 4, 5, 6, 7: return #colorLiteral(red: 0.784, green: 0.549, blue: 0.000, alpha: 1) + case 4, 5, 6, 7: return ColorSetManager.current[.slotItemLevelViewHighAirLevel] default: return nil @@ -277,14 +279,14 @@ final class SlotItemLevelView: NSTextField { case 1, 2, 3: let shadow = NSShadow() - shadow.shadowColor = #colorLiteral(red: 0.095, green: 0.364, blue: 0.917, alpha: 1) + shadow.shadowColor = ColorSetManager.current[.slotItemLevelViewLowAirLevelShadow] shadow.shadowBlurRadius = 4.0 return shadow case 4, 5, 6, 7: let shadow = NSShadow() - shadow.shadowColor = .yellow + shadow.shadowColor = ColorSetManager.current[.slotItemLevelViewHighAirLevelShadow] shadow.shadowBlurRadius = 3.0 return shadow