use the adjusted primary color for highlighting at search

This commit is contained in:
tibbi 2022-03-21 14:19:24 +01:00
parent e94b4d9f4b
commit 34d7d06cd6
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:0ed7becb4d'
implementation 'com.github.SimpleMobileTools:Simple-Commons:47f816b35e'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.documentfile:documentfile:1.0.1'

View File

@ -487,7 +487,7 @@ class MainActivity : SimpleActivity() {
if (text.isNotBlank() && text.length > 1) {
searchMatches = noteView.value.searchMatches(text)
noteView.highlightText(text, config.primaryColor)
noteView.highlightText(text, getAdjustedPrimaryColor())
}
currentTextFragment?.setTextWatcher()