Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
add missing legend title color
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Jan 6, 2021
1 parent 0df8681 commit 86cfd50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/makielayout/defaultattributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ function default_attributes(::Type{Legend}, scene)
titlevalign = :center
"Controls if the legend titles are visible."
titlevisible = true
"The color of the legend titles"
titlecolor = :black
"The group title positions relative to their groups. Can be `:top` or `:left`."
titleposition = :top
"The font size of the entry labels."
Expand Down
4 changes: 2 additions & 2 deletions src/makielayout/layoutables/legend.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Legend(

@extract attrs (
halign, valign, padding, margin,
titlefont, titlesize, titlehalign, titlevalign, titlevisible,
titlefont, titlesize, titlehalign, titlevalign, titlevisible, titlecolor,
labelsize, labelfont, labelcolor, labelhalign, labelvalign,
bgcolor, framecolor, framewidth, framevisible,
patchsize, # the side length of the entry patch area
Expand Down Expand Up @@ -205,7 +205,7 @@ function Legend(
# in case a group has no title
push!(titletexts, nothing)
else
push!(titletexts, Label(scene, text = title, font = titlefont,
push!(titletexts, Label(scene, text = title, font = titlefont, color = titlecolor,
textsize = titlesize, halign = titlehalign, valign = titlevalign))
end

Expand Down

0 comments on commit 86cfd50

Please sign in to comment.