Skip to content

Commit

Permalink
unimportant
Browse files Browse the repository at this point in the history
  • Loading branch information
capr committed Jan 22, 2016
1 parent 8ddd280 commit 56e0a1f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nw_demo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,19 @@ function win:repaint()
cr:rel_line_to(w - titlebar_x, 0)
cr:rel_line_to(0, -titlebar_h - 0)
cr:close_path()
local pat = cairo.linear_pattern(0, 0, 0, titlebar_h)
pat:add_color_stop_rgba(1, unpack(titlebar_color1))
pat:add_color_stop_rgba(0, unpack(titlebar_color2))
local pat = cairo.linear_gradient(0, 0, 0, titlebar_h)
pat:add_color_stop(1, unpack(titlebar_color1))
pat:add_color_stop(0, unpack(titlebar_color2))
cr:source(pat)
cr:fill()
pat:unref()
else
--buttons background
local r = border_radius
round_rect(cr, 0, r, r, 0, unpack(buttons_rect))
local pat = cairo.linear_pattern(0, 0, 0, titlebar_h)
pat:add_color_stop_rgba(1, unpack(titlebar_color1))
pat:add_color_stop_rgba(0, unpack(titlebar_color2))
local pat = cairo.linear_gradient(0, 0, 0, titlebar_h)
pat:add_color_stop(1, unpack(titlebar_color1))
pat:add_color_stop(0, unpack(titlebar_color2))
cr:source(pat)
cr:fill()
pat:unref()
Expand Down

0 comments on commit 56e0a1f

Please sign in to comment.