Fix luacheck warnings in themes/xresources/assets.lua
These were introduced by commit 12e1bd6747
.
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
9dba9bbc90
commit
226bb2cc31
|
@ -13,7 +13,7 @@ wibox.widget {
|
|||
draw = function(_, _, cr)
|
||||
assets.gen_logo(cr, 128, 128, nil, "#535d6c")
|
||||
cr:translate(128 + 128/16, 0)
|
||||
assets.gen_awesome_name(cr, 0, 158, nil, "#535d6c", alt_fg, true)
|
||||
assets.gen_awesome_name(cr, 158, nil, "#535d6c", alt_fg)
|
||||
end,
|
||||
widget = wibox.widget.base.make_widget
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ local function make_letter(cr, n, lines, size, bg, fg, alt_fg)
|
|||
end
|
||||
|
||||
lines = lines or {}
|
||||
color = alt_fg or fg
|
||||
local color = alt_fg or fg
|
||||
cr:set_source(gears.color(color))
|
||||
cr:rectangle(
|
||||
0, (size+letter_gap)*n,
|
||||
|
@ -83,7 +83,7 @@ local function make_letter(cr, n, lines, size, bg, fg, alt_fg)
|
|||
cr:set_operator(cairo.Operator.OVER)
|
||||
end
|
||||
|
||||
function theme_assets.gen_awesome_name(cr, width, height, bg, fg, alt_fg, vertical)
|
||||
function theme_assets.gen_awesome_name(cr, height, bg, fg, alt_fg)
|
||||
local ls = height/10 -- letter_size
|
||||
local letter_line = ls/18
|
||||
|
||||
|
@ -178,7 +178,7 @@ function theme_assets.wallpaper(bg, fg, alt_fg, s)
|
|||
cr:set_source(gears.color(bg))
|
||||
cr:paint()
|
||||
|
||||
theme_assets.gen_awesome_name(cr, width, height, bg, fg, alt_fg, true)
|
||||
theme_assets.gen_awesome_name(cr, height, bg, fg, alt_fg)
|
||||
|
||||
return img
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue