Update WFColorCode to 2.8.0

This commit is contained in:
1024jp 2022-05-31 12:26:53 +09:00
parent b00a688d26
commit 90dd8cdac4
3 changed files with 9 additions and 5 deletions

View File

@ -5,6 +5,11 @@ Change Log
4.2.3 (unreleased)
--------------------------
### Improvements
- [trivial] Change the color names in the Stylesheet Keyword color palette in the color code panel to lower case.
### Fixes
- Fix an issue that letters in the editor were drawn in wrong glyphs when updating the font under very specific conditions.

View File

@ -15,8 +15,8 @@
"repositoryURL": "https://github.com/1024jp/WFColorCode",
"state": {
"branch": null,
"revision": "1df976739b1ba254ef97da917e86b750a4805a47",
"version": "2.7.1"
"revision": "6a0710b8c05affc85cdc206eab6a5e135f49502a",
"version": "2.8.0"
}
},
{

View File

@ -8,7 +8,7 @@
//
// ---------------------------------------------------------------------------
//
// © 2014-2020 1024jp
// © 2014-2022 1024jp
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -46,8 +46,7 @@ final class ColorCodePanelController: NSViewController, NSWindowDelegate {
// MARK: Private Properties
private let stylesheetColorList: NSColorList = NSColor.stylesheetKeywordColors
.reduce(into: NSColorList(name: "Stylesheet Keywords".localized)) { $0.setColor($1.value, forKey: $1.key) }
private let stylesheetColorList: NSColorList = KeywordColor.stylesheetColors .reduce(into: NSColorList(name: "Stylesheet Keywords".localized)) { $0.setColor(NSColor(hex: $1.value)!, forKey: $1.keyword) }
private weak var panel: NSColorPanel?
@objc private dynamic var color: NSColor?