2016-08-05 00:12:59 +02:00
|
|
|
--DOC_HIDE_ALL
|
2018-07-24 14:12:44 +02:00
|
|
|
--DOC_GEN_IMAGE
|
2016-08-05 00:12:59 +02:00
|
|
|
local parent = ...
|
|
|
|
local wibox = require("wibox")
|
|
|
|
local beautiful = require("beautiful")
|
|
|
|
|
|
|
|
local function gen(val)
|
|
|
|
return wibox.widget {
|
|
|
|
bar_border_color = beautiful.border_color,
|
|
|
|
bar_border_width = 2,
|
|
|
|
handle_width = val,
|
|
|
|
value = 50,
|
|
|
|
handle_color = beautiful.bg_normal,
|
|
|
|
handle_border_color = beautiful.border_color,
|
|
|
|
handle_border_width = 2,
|
|
|
|
widget = wibox.widget.slider,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
local l = wibox.layout {
|
|
|
|
gen(0), gen(10), gen(30), gen(50),
|
|
|
|
forced_height = 30,
|
|
|
|
forced_width = 400,
|
|
|
|
spacing = 5,
|
|
|
|
layout = wibox.layout.flex.horizontal
|
|
|
|
}
|
|
|
|
|
|
|
|
parent:add(l)
|
2016-12-31 13:59:38 +01:00
|
|
|
|
|
|
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|