From b8aae54352ff5d463882257cdb40e87425904a7f Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Sat, 11 May 2024 15:48:48 +0900 Subject: [PATCH] Match theme selection color to the theme dark/light mode --- CHANGELOG.md | 1 + .../Resources/en.lproj/pgs/releasenotes.html | 1 + .../Resources/ja.lproj/pgs/releasenotes.html | 1 + CotEditor/Sources/EditorTextView.swift | 2 +- CotEditor/Sources/LayoutManager.swift | 9 ++- CotEditor/Sources/NSAppearance.swift | 71 ++++++++++++++++++- CotEditor/Sources/Theme.swift | 51 ++++++++----- CotEditor/Sources/ThemeEditorView.swift | 2 +- 8 files changed, 114 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b08869645..bd7c47c294 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ ### Improvements - Display the current editor mode in the document inspector. +- Use more appropriate system color for the selection background when dark mode or not differs between the editor and theme. - Improve VoiceOver support. - Deprecate exact recalculation of insertion points when documents are updated by external processes to improve application stability. - Improve stability of application launch behavior. diff --git a/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html b/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html index 4aba6cc33f..f492afa1a7 100644 --- a/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html +++ b/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html @@ -37,6 +37,7 @@

Improvements