Skip to content

Commit

Permalink
Use different highlight and text colors for selected text while searc…
Browse files Browse the repository at this point in the history
…hing

Fix #159
  • Loading branch information
Cuperino committed Oct 18, 2023
1 parent 0f7780d commit cfc20e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/prompter/Prompter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,10 @@ Flickable {

selectByMouse: !root.__isMobile
persistentSelection: true
selectionColor: "#333d9ef3"
selectedTextColor: selectionColor
//selectionColor: document.textBackground
//selectedTextColor: document.textColor
selectionColor: find.isOpen ? "#d8ecfd" : "#333d9ef3"
selectedTextColor: find.isOpen ? "#163a58" : selectionColor
// selectionColor: find.isOpen ? (document.regularMarker | document.namedMarker ? "#d8ecfd" : document.textColor) : "#333d9ef3"
// selectedTextColor: find.isOpen ? (document.regularMarker | document.namedMarker ? "#163a58" : document.textBackground) : selectionColor
leftPadding: 14
rightPadding: 14
topPadding: 0
Expand Down

0 comments on commit cfc20e8

Please sign in to comment.