Skip to content

Commit 30a37b2

Browse files
committed
Tune search line highlight color
Ref: #462 (comment)
1 parent f0dbca4 commit 30a37b2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎internal/styling.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ func configureHighlighting(terminalBackground *twin.Color, configureSearchHitLin
264264
}
265265

266266
if plainBg != twin.ColorDefault && hitBg != twin.ColorDefault {
267-
// We have two real colors. Mix them! I got to "0.2" by testing some
268-
// numbers. 0.2 is visible but not too strong.
269-
theme.searchHitLineBackground = ptr.To(plainBg.Mix(hitBg, 0.2))
267+
// We have two real colors. Mix them! "0.15" comes from:
268+
// https://github.com/walles/moor/issues/462#issuecomment-5652900991
269+
theme.searchHitLineBackground = ptr.To(plainBg.Mix(hitBg, 0.15))
270270

271271
log.Trace("Search hit line background set to mixed color: ", *theme.searchHitLineBackground)
272272
} else {

0 commit comments

Comments
 (0)