mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix .isDark(name:)
This commit is contained in:
parent
9a4b38d5cc
commit
53e6dcd500
@ -18,6 +18,7 @@ Change Log
|
||||
|
||||
- [beta] Fix an issue that the visibility of the inspector was not saved.
|
||||
- [beta] Fix an issue that the font preference update was not applied immediately to opened documents.
|
||||
- [beta] Fix an issue that themes did not switch by the appearance change.
|
||||
|
||||
|
||||
### Known Issues
|
||||
|
@ -156,7 +156,7 @@ final class ThemeManager: SettingFileManaging {
|
||||
/// return whether given setting name is dark theme
|
||||
func isDark(name: String) -> Bool {
|
||||
|
||||
name.contains(/(Dark)$/)
|
||||
name.hasSuffix("(Dark)")
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user