[selection] highlight clarity (#342)

This commit is contained in:
drew-u410 2025-06-10 12:23:03 -04:00 committed by GitHub
parent 1d3d028b7a
commit 9be5522c7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View file

@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changed repository link in search to file tree + move external link to code host logo. [#340](https://github.com/sourcebot-dev/sourcebot/pull/340) - Changed repository link in search to file tree + move external link to code host logo. [#340](https://github.com/sourcebot-dev/sourcebot/pull/340)
- Added a basic file search dialog when browsing a repository. [#341](https://github.com/sourcebot-dev/sourcebot/pull/341) - Added a basic file search dialog when browsing a repository. [#341](https://github.com/sourcebot-dev/sourcebot/pull/341)
### Fixed
- Text highlighting clarity. [#342](https://github.com/sourcebot-dev/sourcebot/pull/342)
## [4.2.0] - 2025-06-09 ## [4.2.0] - 2025-06-09
### Added ### Added

View file

@ -252,3 +252,19 @@
/* text-decoration-color: #0070f3; */ /* text-decoration-color: #0070f3; */
/* text-decoration-thickness: 2px; */ /* text-decoration-thickness: 2px; */
} }
.cm-editor .cm-selectionBackground,
.cm-editor .cm-line::selection,
.cm-editor .cm-selectionLayer .cm-selectionBackground,
.cm-content ::selection {
background: var(--editor-selection-highlight, #ffe066) !important;
color: var(--editor-selection-highlight-foreground, #222) !important;
}
.dark .cm-editor .cm-selectionBackground,
.dark .cm-editor .cm-line::selection,
.dark .cm-editor .cm-selectionLayer .cm-selectionBackground,
.dark .cm-content ::selection {
background: var(--editor-selection-highlight, #2563eb) !important;
color: var(--editor-selection-highlight-foreground, #fff) !important;
}