Skip to content

Commit

Permalink
No longer specify "white" as a color for packages in status and in pr…
Browse files Browse the repository at this point in the history
…ogress bar (#2521)
  • Loading branch information
KristofferC authored Apr 27, 2021
1 parent af63ee0 commit 7fe84c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MiniProgressBars.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ using Printf
Base.@kwdef mutable struct MiniProgressBar
max::Int = 1.0
header::String = ""
color::Symbol = :white
color::Symbol = :nothing
width::Int = 40
current::Int = 0.0
prev::Int = 0.0
Expand Down
2 changes: 1 addition & 1 deletion src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ function stat_rep(x::PackageSpec; name=true)
return join(filter(!isempty, [name,version,repo,path,pinned]), " ")
end

print_single(io::IO, pkg::PackageSpec) = printstyled(io, stat_rep(pkg); color=:white)
print_single(io::IO, pkg::PackageSpec) = print(io, stat_rep(pkg))

is_instantiated(::Nothing) = false
is_instantiated(x::PackageSpec) = x.version != VersionSpec() || is_stdlib(x.uuid)
Expand Down

0 comments on commit 7fe84c1

Please sign in to comment.