Skip to content

Commit c50d37b

Browse files
authored
Change colors to be more readable in light themes (#10890)
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]>
1 parent 629f83e commit c50d37b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

doc/changes/10890.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Change some colors to improve readability in light-mode terminals
2+
(#10890, @gridbugs)

otherlibs/stdune/src/user_message.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ module Print_config = struct
159159
| Kwd -> [ `Bold; `Fg_blue ]
160160
| Id -> [ `Bold; `Fg_yellow ]
161161
| Prompt -> [ `Bold; `Fg_green ]
162-
| Hint -> [ `Italic; `Fg_white ]
163-
| Details -> [ `Dim; `Fg_white ]
164-
| Ok -> [ `Dim; `Fg_green ]
162+
| Hint -> [ `Italic ]
163+
| Details -> [ `Dim ]
164+
| Ok -> [ `Fg_green ]
165165
| Debug -> [ `Underline; `Fg_bright_cyan ]
166166
| Success -> [ `Bold; `Fg_green ]
167167
| Ansi_styles l -> l

0 commit comments

Comments
 (0)