Fix scroll widget
This commit is contained in:
parent
1a72280ccb
commit
ace65ad586
1
init.lua
1
init.lua
|
@ -9,4 +9,5 @@ return {
|
||||||
style = require( "radical.style" ),
|
style = require( "radical.style" ),
|
||||||
item_style = require( "radical.item_style" ),
|
item_style = require( "radical.item_style" ),
|
||||||
widgets = require( "radical.widgets" ),
|
widgets = require( "radical.widgets" ),
|
||||||
|
tooltip = require( "radical.tooltip" )
|
||||||
}
|
}
|
|
@ -10,11 +10,11 @@ local module = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
local function draw(data,item,is_focussed,is_pressed)
|
local function draw(data,item,is_focussed,is_pressed,col)
|
||||||
if is_focussed or (item._tmp_menu) then
|
if is_focussed or (item._tmp_menu) then
|
||||||
item.widget:set_bg(data.bg_focus)
|
item.widget:set_bg(col or data.bg_focus)
|
||||||
else
|
else
|
||||||
item.widget:set_bg(nil)
|
item.widget:set_bg(col or nil)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ local isinit = false
|
||||||
|
|
||||||
local function init()
|
local function init()
|
||||||
local size = beautiful.menu_height or 16
|
local size = beautiful.menu_height or 16
|
||||||
arr_down = cairo.ImageSurface(cairo.Format.ARGB32, size,size)
|
arr_down = cairo.ImageSurface(cairo.Format.ARGB32, 10,size)
|
||||||
arr_up = cairo.ImageSurface(cairo.Format.ARGB32, size,size)
|
arr_up = cairo.ImageSurface(cairo.Format.ARGB32, 10,size)
|
||||||
local cr2 = cairo.Context(arr_down)
|
local cr2 = cairo.Context(arr_down)
|
||||||
local cr = cairo.Context(arr_up)
|
local cr = cairo.Context(arr_up)
|
||||||
cr:set_source(color(beautiful.fg_normal))
|
cr:set_source(color(beautiful.fg_normal))
|
||||||
|
|
Loading…
Reference in New Issue