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:
Uli Schlachter 2016-12-18 18:57:58 +01:00
parent 9dba9bbc90
commit 226bb2cc31
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ wibox.widget {
draw = function(_, _, cr) draw = function(_, _, cr)
assets.gen_logo(cr, 128, 128, nil, "#535d6c") assets.gen_logo(cr, 128, 128, nil, "#535d6c")
cr:translate(128 + 128/16, 0) 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, end,
widget = wibox.widget.base.make_widget widget = wibox.widget.base.make_widget
} }

View File

@ -61,7 +61,7 @@ local function make_letter(cr, n, lines, size, bg, fg, alt_fg)
end end
lines = lines or {} lines = lines or {}
color = alt_fg or fg local color = alt_fg or fg
cr:set_source(gears.color(color)) cr:set_source(gears.color(color))
cr:rectangle( cr:rectangle(
0, (size+letter_gap)*n, 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) cr:set_operator(cairo.Operator.OVER)
end 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 ls = height/10 -- letter_size
local letter_line = ls/18 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:set_source(gears.color(bg))
cr:paint() 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 return img
end end