Fix loading of themes

Fix #3053 

Needs test
This commit is contained in:
Simon Christ 2020-10-12 13:58:17 +02:00 committed by GitHub
parent 2ef13c19ea
commit eea8ac6d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,9 +15,10 @@ end
function __init__()
user_defaults = _plots_defaults()
if haskey(user_defaults, :theme)
theme(pop!(user_defaults, :theme))
theme(pop!(user_defaults, :theme); user_defaults...)
else
default(; user_defaults...)
end
default(; user_defaults...)
insert!(Base.Multimedia.displays, findlast(x -> x isa Base.TextDisplay || x isa REPL.REPLDisplay, Base.Multimedia.displays) + 1, PlotsDisplay())