Fix .isDark(name:)

This commit is contained in:
1024jp 2023-09-15 19:17:43 +09:00
parent 9a4b38d5cc
commit 53e6dcd500
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)")
}