Skip to content

Commit 6b89498

Browse files
committed
background
1 parent e972678 commit 6b89498

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/layout.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export width, height, maxwidth, minwidth, maxheight, minheight,
22
boxsize, hbox, vbox, hskip, vskip, floating, wrap, pad,
33
padinner, alignitems, aligncontent, justifycontent, clip,
4-
container, alignself, floating
4+
container, alignself, floating, flex
55

66
for (fn, prop) in [:width => "width",
77
:height => "height",

src/theme.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
export border, borderstyle, bordercolor, borderwidth, hline, vline,
2-
fontweight
2+
fontweight, background
3+
4+
5+
# TODO: add more background features
6+
# maybe a way to load images?
7+
function background(spec, elem=nothing)
8+
style(elem, "background" => spec)
9+
end
310

411
function _border_prefix(side::Union{Symbol, String})
512
assertoneof(side, ["top", "bottom", "left", "right"], "side")

0 commit comments

Comments
 (0)