fix: global blue highlight, Ctrl+F find bar with prev/next/close buttons

- Change QPalette::Highlight from theme.selection to theme.hover globally
- RcxEditor find: use SCI_SEARCHINTARGET + INDIC_COMPOSITIONTHICK indicator
  (selection rendering is disabled, so findFirst was invisible)
- Re-apply find indicators after applyDocument() refresh cycle
- Add prev/next/close buttons to find bars in both Reclass and C/C++ modes
- Buttons styled with hover/pressed states matching tab styling
This commit is contained in:
IChooseYou
2026-03-02 14:53:14 -07:00
parent efae193520
commit 879e9f4047
6 changed files with 161 additions and 33 deletions

View File

@@ -545,13 +545,12 @@ struct ValueHistory {
fn(values[(start + i) % kCapacity]);
}
// Iterate with timestamps from oldest to newest
// Iterate with timestamps from newest to oldest
template<typename Fn>
void forEachWithTime(Fn&& fn) const {
int n = uniqueCount();
int start = (head + kCapacity - n) % kCapacity;
for (int i = 0; i < n; i++) {
int idx = (start + i) % kCapacity;
int idx = (head + kCapacity - 1 - i) % kCapacity;
fn(values[idx], timestamps[idx]);
}
}