Skip to content

Commit 9be5522

Browse files
authored
[selection] highlight clarity (#342)
1 parent 1d3d028 commit 9be5522

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Changed repository link in search to file tree + move external link to code host logo. [#340](https://github.com/sourcebot-dev/sourcebot/pull/340)
1212
- Added a basic file search dialog when browsing a repository. [#341](https://github.com/sourcebot-dev/sourcebot/pull/341)
1313

14+
### Fixed
15+
- Text highlighting clarity. [#342](https://github.com/sourcebot-dev/sourcebot/pull/342)
16+
1417
## [4.2.0] - 2025-06-09
1518

1619
### Added

packages/web/src/app/globals.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,4 +251,20 @@
251251
/* Optionally, customize color or thickness: */
252252
/* text-decoration-color: #0070f3; */
253253
/* text-decoration-thickness: 2px; */
254+
}
255+
256+
.cm-editor .cm-selectionBackground,
257+
.cm-editor .cm-line::selection,
258+
.cm-editor .cm-selectionLayer .cm-selectionBackground,
259+
.cm-content ::selection {
260+
background: var(--editor-selection-highlight, #ffe066) !important;
261+
color: var(--editor-selection-highlight-foreground, #222) !important;
262+
}
263+
264+
.dark .cm-editor .cm-selectionBackground,
265+
.dark .cm-editor .cm-line::selection,
266+
.dark .cm-editor .cm-selectionLayer .cm-selectionBackground,
267+
.dark .cm-content ::selection {
268+
background: var(--editor-selection-highlight, #2563eb) !important;
269+
color: var(--editor-selection-highlight-foreground, #fff) !important;
254270
}

0 commit comments

Comments
 (0)