doc: Document taglist theme variables
This commit is contained in:
parent
6e829ce104
commit
9e8c4a71e3
|
@ -30,6 +30,143 @@ end
|
|||
local taglist = { mt = {} }
|
||||
taglist.filter = {}
|
||||
|
||||
--- The tag list main foreground (text) color.
|
||||
-- @beautiful beautiful.taglist_fg_focus
|
||||
-- @param[opt=fg_focus] color
|
||||
-- @see gears.color
|
||||
|
||||
--- The tag list main background color.
|
||||
-- @beautiful beautiful.taglist_bg_focus
|
||||
-- @param[opt=bg_focus] color
|
||||
-- @see gears.color
|
||||
|
||||
--- The tag list urgent elements foreground (text) color.
|
||||
-- @beautiful beautiful.taglist_fg_urgent
|
||||
-- @param[opt=fg_urgent] color
|
||||
-- @see gears.color
|
||||
|
||||
--- The tag list urgent elements background color.
|
||||
-- @beautiful beautiful.taglist_bg_urgent
|
||||
-- @param[opt=bg_urgent] color
|
||||
-- @see gears.color
|
||||
|
||||
--- The tag list occupied elements background color.
|
||||
-- @beautiful beautiful.taglist_bg_occupied
|
||||
-- @param color
|
||||
-- @see gears.color
|
||||
|
||||
--- The tag list occupied elements foreground (text) color.
|
||||
-- @beautiful beautiful.taglist_fg_occupied
|
||||
-- @param color
|
||||
-- @see gears.color
|
||||
|
||||
--- The tag list empty elements background color.
|
||||
-- @beautiful beautiful.taglist_bg_empty
|
||||
-- @param color
|
||||
-- @see gears.color
|
||||
|
||||
--- The tag list empty elements foreground (text) color.
|
||||
-- @beautiful beautiful.taglist_fg_empty
|
||||
-- @param color
|
||||
-- @see gears.color
|
||||
|
||||
--- The selected elements background image.
|
||||
-- @beautiful beautiful.taglist_squares_sel
|
||||
-- @param surface
|
||||
-- @see gears.surface
|
||||
|
||||
--- The unselected elements background image.
|
||||
-- @beautiful beautiful.taglist_squares_unsel
|
||||
-- @param surface
|
||||
-- @see gears.surface
|
||||
|
||||
--- The selected empty elements background image.
|
||||
-- @beautiful beautiful.taglist_squares_sel_empty
|
||||
-- @param surface
|
||||
-- @see gears.surface
|
||||
|
||||
--- The unselected empty elements background image.
|
||||
-- @beautiful beautiful.taglist_squares_unsel_empty
|
||||
-- @param surface
|
||||
-- @see gears.surface
|
||||
|
||||
--- If the background images can be resized.
|
||||
-- @beautiful beautiful.taglist_squares_resize
|
||||
-- @param boolean
|
||||
|
||||
--- Do not display the tag icons, even if they are set.
|
||||
-- @beautiful beautiful.taglist_disable_icon
|
||||
-- @param boolean
|
||||
|
||||
--- The taglist font.
|
||||
-- @beautiful beautiful.taglist_font
|
||||
-- @param string
|
||||
|
||||
--- The main shape used for the elements.
|
||||
-- This will be the fallback for state specific shapes.
|
||||
-- To get a shape for the whole taglist, use `wibox.container.background`.
|
||||
-- @beautiful beautiful.taglist_shape
|
||||
-- @param[opt=rectangle] gears.shape
|
||||
-- @see gears.shape
|
||||
-- @see beautiful.taglist_shape_empty
|
||||
-- @see beautiful.taglist_shape_focus
|
||||
-- @see beautiful.taglist_shape_urgent
|
||||
|
||||
--- The shape elements border width.
|
||||
-- @beautiful beautiful.taglist_shape_border_width
|
||||
-- @param[opt=0] number
|
||||
-- @see wibox.container.background
|
||||
|
||||
--- The elements shape border color.
|
||||
-- @beautiful beautiful.taglist_shape_border_color
|
||||
-- @param color
|
||||
-- @see gears.color
|
||||
|
||||
--- The shape used for the empty elements.
|
||||
-- @beautiful beautiful.taglist_shape_empty
|
||||
-- @param[opt=rectangle] gears.shape
|
||||
-- @see gears.shape
|
||||
|
||||
--- The shape used for the empty elements border width.
|
||||
-- @beautiful beautiful.taglist_shape_border_width_empty
|
||||
-- @param[opt=0] number
|
||||
-- @see wibox.container.background
|
||||
|
||||
--- The empty elements shape border color.
|
||||
-- @beautiful beautiful.taglist_shape_border_color_empty
|
||||
-- @param color
|
||||
-- @see gears.color
|
||||
|
||||
--- The shape used for the selected elements.
|
||||
-- @beautiful beautiful.taglist_shape_focus
|
||||
-- @param[opt=rectangle] gears.shape
|
||||
-- @see gears.shape
|
||||
|
||||
--- The shape used for the selected elements border width.
|
||||
-- @beautiful beautiful.taglist_shape_border_width_focus
|
||||
-- @param[opt=0] number
|
||||
-- @see wibox.container.background
|
||||
|
||||
--- The selected elements shape border color.
|
||||
-- @beautiful beautiful.taglist_shape_border_color_focus
|
||||
-- @param color
|
||||
-- @see gears.color
|
||||
|
||||
--- The shape used for the urgent elements.
|
||||
-- @beautiful beautiful.taglist_shape_urgent
|
||||
-- @param[opt=rectangle] gears.shape
|
||||
-- @see gears.shape
|
||||
|
||||
--- The shape used for the urgent elements border width.
|
||||
-- @beautiful beautiful.taglist_shape_border_width_urgent
|
||||
-- @param[opt=0] number
|
||||
-- @see wibox.container.background
|
||||
|
||||
--- The urgents elements shape border color.
|
||||
-- @beautiful beautiful.taglist_shape_border_color_urgent
|
||||
-- @param color
|
||||
-- @see gears.color
|
||||
|
||||
local instances = nil
|
||||
|
||||
function taglist.taglist_label(t, args)
|
||||
|
@ -219,6 +356,7 @@ end
|
|||
-- @param[opt] base_widget.squares_unsel_empty A user provided image for unselected squares for empty tags.
|
||||
-- @param[opt] base_widget.squares_resize True or false to resize squares.
|
||||
-- @param base_widget.font The font.
|
||||
-- @function awful.taglist
|
||||
function taglist.new(screen, filter, buttons, style, update_function, base_widget)
|
||||
screen = get_screen(screen)
|
||||
local uf = update_function or common.list_update
|
||||
|
|
Loading…
Reference in New Issue