Skip to content

Commit

Permalink
Change colors to be more readable in light themes (#10890)
Browse files Browse the repository at this point in the history
Some of the text colors used by dune tend not to be readable on
default light-themes terminals. Of course it will always be possible
to configure your terminal so that some colors are too light/dark to
read, but some of the preset themes on macos are unable to display
some colors commonly used by dune.

Signed-off-by: Stephen Sherratt <[email protected]>
  • Loading branch information
gridbugs authored Sep 11, 2024
1 parent 629f83e commit c50d37b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions doc/changes/10890.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Change some colors to improve readability in light-mode terminals
(#10890, @gridbugs)
6 changes: 3 additions & 3 deletions otherlibs/stdune/src/user_message.ml
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ module Print_config = struct
| Kwd -> [ `Bold; `Fg_blue ]
| Id -> [ `Bold; `Fg_yellow ]
| Prompt -> [ `Bold; `Fg_green ]
| Hint -> [ `Italic; `Fg_white ]
| Details -> [ `Dim; `Fg_white ]
| Ok -> [ `Dim; `Fg_green ]
| Hint -> [ `Italic ]
| Details -> [ `Dim ]
| Ok -> [ `Fg_green ]
| Debug -> [ `Underline; `Fg_bright_cyan ]
| Success -> [ `Bold; `Fg_green ]
| Ansi_styles l -> l
Expand Down

0 comments on commit c50d37b

Please sign in to comment.