From 7b0e5843ac23f45e13b87b558e695cd192b69196 Mon Sep 17 00:00:00 2001 From: Thomas Croft Date: Sun, 2 Oct 2022 20:26:23 -0600 Subject: [PATCH] Slider properties documented --- lib/wibox/widget/slider.lua | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/lib/wibox/widget/slider.lua b/lib/wibox/widget/slider.lua index 90e1f76ee..789e902ac 100644 --- a/lib/wibox/widget/slider.lua +++ b/lib/wibox/widget/slider.lua @@ -35,16 +35,12 @@ local slider = {mt={}} -- @propbeautiful -- @see gears.shape --- The slider handle widget - +--- The slider handle widget. +-- --@DOC_wibox_widget_slider_handle_widget_EXAMPLE@ - +-- -- @property handle_widget --- @tparam widget|nil handle_widget --- @propemits true false --- @propbeautiful --- @see wibox.widget - +-- @tparam[opt=nil] widget|nil handle_widget The handle widget --- The slider handle color. -- @@ -110,15 +106,12 @@ local slider = {mt={}} -- @propbeautiful -- @see gears.shape --- The bar widget - +--- The bar widget +-- --@DOC_wibox_widget_slider_bar_widget_EXAMPLE@ -- -- @property bar_widget --- @tparam widget|nil bar_widget --- @propemits true false --- @propbeautiful --- @see wibox.widget +-- @tparam[opt=nil] widget|nil bar_widget The widget that spans the active bar segment --- The bar (background) height. -- @@ -287,12 +280,12 @@ local slider = {mt={}} local properties = { -- Handle handle_shape = shape.rectangle, + handle_widget = false, handle_color = false, handle_margins = {}, handle_width = false, handle_border_width = 0, handle_border_color = false, - handle_widget = false, -- Bar bar_shape = shape.rectangle,