Skip to content

Commit 363ecad

Browse files
KristofferCtkelman
authored andcommitted
Change default warn color to yellow (#18453)
* Change default warn color to yellow * add news entry * das * foo * Update client.jl * Update NEWS.md * fix typo
1 parent 630960e commit 363ecad

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

NEWS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ Library improvements
6060
Therefore, light versions of the colors are now supported.
6161
For the available colors see the help entry on `print_with_color`.
6262

63-
* The default color for info messages has been changed from blue to cyan ([#18442]).
64-
This can be changed back to the original color by setting the environment variable `JULIA_INFO_COLOR` to `"blue"`.
65-
One way of doing this is by adding `ENV["JULIA_INFO_COLOR"] = :blue` to the `.juliarc.jl` file.
63+
* The default color for info messages has been changed from blue to cyan and for warning messages from red to yellow.
64+
This can be changed back to the original colors by setting the environment variables `JULIA_INFO_COLOR` to `"blue"` and `JULIA_WARN_COLOR` to `"red"`.
65+
One way of doing this is by adding for example `ENV["JULIA_INFO_COLOR"] = :blue` and `ENV["JULIA_WARN_COLOR"] = :red` to the `.juliarc.jl` file.
6666
For more information regarding customizing colors in the REPL, see this [manual section]( http://docs.julialang.org/en/latest/manual/interacting-with-julia/#customizing-colors).
6767

6868
* Iteration utilities that wrap iterators and return other iterators (`enumerate`, `zip`, `rest`,

base/client.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ will print text with all text properties (like boldness) reset.
5656
text_colors
5757

5858
have_color = false
59-
default_color_warn = :light_red
59+
default_color_warn = :yellow
6060
default_color_error = :light_red
6161
default_color_info = :cyan
6262
if is_windows()

base/pkg/entry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function status(io::IO, pkg::AbstractString, ver::VersionNumber, fix::Bool)
179179
finalize(prepo)
180180
end
181181
else
182-
print_with_color(:yellow, io, "non-repo (unregistered)")
182+
print_with_color(Base.warn_color(), io, "non-repo (unregistered)")
183183
end
184184
println(io)
185185
end

base/test.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ type Broken <: Result
140140
orig_expr
141141
end
142142
function Base.show(io::IO, t::Broken)
143-
print_with_color(:yellow, io, "Test Broken\n"; bold = true)
143+
print_with_color(Base.warn_color(), io, "Test Broken\n"; bold = true)
144144
if t.test_type == :skipped && !(t.orig_expr === nothing)
145145
println(io, " Skipped: ", t.orig_expr)
146146
elseif !(t.orig_expr === nothing)
@@ -489,7 +489,7 @@ function print_test_results(ts::DefaultTestSet, depth_pad=0)
489489
print_with_color(Base.error_color(), lpad("Error",error_width," "), " "; bold = true)
490490
end
491491
if broken_width > 0
492-
print_with_color(:yellow, lpad("Broken",broken_width," "), " "; bold = true)
492+
print_with_color(Base.warn_color(), lpad("Broken",broken_width," "), " "; bold = true)
493493
end
494494
if total_width > 0
495495
print_with_color(Base.info_color(), lpad("Total",total_width, " "); bold = true)
@@ -619,7 +619,7 @@ function print_counts(ts::DefaultTestSet, depth, align,
619619

620620
nb = broken + c_broken
621621
if nb > 0
622-
print_with_color(:yellow, lpad(string(nb), broken_width, " "), " ")
622+
print_with_color(Base.warn_color(), lpad(string(nb), broken_width, " "), " ")
623623
elseif broken_width > 0
624624
# None broken at this level, but some at another level
625625
print(lpad(" ", broken_width), " ")

0 commit comments

Comments
 (0)