background: Update all users so they don't use the deprecated name.

This is done before deprecating the API so no commit ever use the
deprecated name.
This commit is contained in:
Emmanuel Lepage Vallee 2019-04-05 16:52:01 -04:00
parent 81ff4d730c
commit eb1c45b656
11 changed files with 85 additions and 95 deletions

View File

@ -465,7 +465,7 @@ end
-- @param number
function tooltip:set_border_width(val)
self.widget.shape_border_width = val
self.widget.border_width = val
end
--- The border color.
@ -476,7 +476,7 @@ end
-- @param gears.color
function tooltip:set_border_color(val)
self.widget.shape_border_color = val
self.widget.border_color = val
end
--- Set the margins around the left and right of the tooltip textbox
@ -693,8 +693,8 @@ function tooltip.new(args)
id = 'background_role',
bg = bg,
shape = self._private.shape,
shape_border_width = border_width,
shape_border_color = border_color,
border_width = border_width,
border_color = border_color,
widget = wibox.container.background,
}
self.textbox = self.widget:get_children_by_id('text_role')[1]

View File

@ -39,14 +39,12 @@ local calendar_popup = { offset = 0, mt = {} }
local properties = { "markup", "fg_color", "bg_color", "shape", "padding", "border_width", "border_color", "opacity" }
local styles = { "year", "month", "yearheader", "monthheader", "header", "weekday", "weeknumber", "normal", "focus" }
--- The generic calendar style table.
--
-- Each table property can also be defined by `beautiful.calendar_[flag]_[property]=val`.
-- @beautiful beautiful.calendar_style
-- @tparam cell_properties table Table of cell style properties
--- Cell properties.
-- @field markup Markup function or format string
-- @field fg_color Text foreground color
@ -69,8 +67,6 @@ local styles = { "year", "month", "yearheader", "monthheader", "header", "weekda
-- @field focus Current day cell properties table
-- @table cell_flags
--- Create a container for the grid layout
-- @tparam table tprops Table of calendar container properties.
-- @treturn function Embedding function widget,flag,date -> widget
@ -99,8 +95,8 @@ local function embed(tprops)
widget = wibox.container.margin
},
shape = props.shape or gears.shape.rectangle,
shape_border_color = props.border_color,
shape_border_width = props.border_width,
border_color = props.border_color,
border_width = props.border_width,
fg = props.fg_color,
bg = props.bg_color,
opacity = props.opacity,
@ -111,7 +107,6 @@ local function embed(tprops)
return fn
end
--- Parse the properties of the cell type and set default values
-- @tparam string cell The cell type
-- @tparam table args Table of properties to enforce
@ -165,7 +160,6 @@ local function parse_all_options(args)
return props
end
--- Make the geometry of a wibox
-- @tparam widget widget Calendar widget
-- @tparam object screen Screen where to display the calendar (default to focused)
@ -236,14 +230,12 @@ function calendar_popup:call_calendar(offset, position, screen)
return self
end
--- Toggle calendar visibility
function calendar_popup:toggle()
self:call_calendar(0)
self.visible = not self.visible
end
--- Attach the calendar to a widget to display at a specific position.
--
-- local mytextclock = wibox.widget.textclock()
@ -286,7 +278,6 @@ function calendar_popup:attach(widget, position, args)
return self
end
--- Return a new calendar wibox by type.
--
-- A calendar widget displaying a `month` or a `year`
@ -385,7 +376,6 @@ function calendar_popup.month(args)
return get_cal_wibox("month", args)
end
--- A year calendar wibox.
--
-- It is highly customizable using the same options as for the widgets.

View File

@ -149,8 +149,8 @@ function common.list_update(w, buttons, label, data, objects, args)
end
cache.bgb.shape = item_args.shape
cache.bgb.shape_border_width = item_args.shape_border_width
cache.bgb.shape_border_color = item_args.shape_border_color
cache.bgb.border_width = item_args.shape_border_width
cache.bgb.border_color = item_args.shape_border_color
end

View File

@ -198,8 +198,8 @@ local function create_info(text, x, y, width, height)
forced_width = width,
forced_height = height,
shape = gears.shape.rectangle,
shape_border_width = 1,
shape_border_color = beautiful.border_color,
border_width = 1,
border_color = beautiful.border_color,
bg = "#ffff0055",
widget = wibox.container.background
}, {x = x, y = y})

View File

@ -141,8 +141,8 @@ local function client_widget(c, col, label)
},
layout = wibox.layout.stack
},
shape_border_width = bw,
shape_border_color = beautiful.border_color,
border_width = bw,
border_color = beautiful.border_color,
shape_clip = true,
fg = beautiful.fg_normal or "#000000",
bg = col,

View File

@ -26,8 +26,8 @@ end --DOC_HIDE
filter = awful.widget.tasklist.filter.currenttags,
buttons = tasklist_buttons,
style = {
shape_border_width = 1,
shape_border_color = "#777777",
border_width = 1,
border_color = "#777777",
shape = gears.shape.rounded_bar,
},
layout = {

View File

@ -32,8 +32,8 @@ parent : setup {
},
shape = gears.shape.hexagon,
bg = beautiful.bg_normal,
shape_border_color = beautiful.border_color,
shape_border_width = beautiful.border_width,
border_color = beautiful.border_color,
border_width = beautiful.border_width,
widget = wibox.container.background
},
spacing = 10,

View File

@ -18,8 +18,8 @@ return {
widget = wibox.widget.textbox,
},
shape = gears.shape.circle,
shape_border_width = 5,
shape_border_color = "#ff0000",
border_width = 5,
border_color = "#ff0000",
bg = beautiful.bg_highlight,
widget = wibox.container.background
}

View File

@ -13,8 +13,8 @@ local container = wibox.widget {
{
{
before,
shape_border_color = beautiful.border_color,
shape_border_width = beautiful.border_width,
border_color = beautiful.border_color,
border_width = beautiful.border_width,
shape = shape.rounded_rect,
widget = wibox.container.background,
},
@ -30,8 +30,8 @@ local container = wibox.widget {
widget = wibox.widget.textbox,
},
bg = beautiful.bg_normal,
shape_border_color = beautiful.border_color,
shape_border_width = beautiful.border_width,
border_color = beautiful.border_color,
border_width = beautiful.border_width,
widget = wibox.container.background,
shape = shape.transform(shape.arrow)
: rotate_at(15,15,math.pi/2)
@ -46,8 +46,8 @@ local container = wibox.widget {
{
{
after,
shape_border_color = beautiful.border_color,
shape_border_width = beautiful.border_width,
border_color = beautiful.border_color,
border_width = beautiful.border_width,
shape = shape.rounded_rect,
widget = wibox.container.background,
},

View File

@ -15,8 +15,8 @@ local function create_arrow(text) --DOC_HIDE
}, --DOC_HIDE
shape = gears.shape.arrow, --DOC_HIDE
bg = beautiful.bg_normal, --DOC_HIDE
shape_border_color = beautiful.border_color, --DOC_HIDE
shape_border_width = beautiful.border_width, --DOC_HIDE
border_color = beautiful.border_color, --DOC_HIDE
border_width = beautiful.border_width, --DOC_HIDE
widget = wibox.container.background --DOC_HIDE
}, --DOC_HIDE
strategy = 'exact', --DOC_HIDE

View File

@ -68,8 +68,8 @@ beautiful.bg_focus = "#b9214f" --DOC_HIDE
widget = wibox.container.margin
},
shape = props.shape,
shape_border_color = props.border_color or "#b9214f",
shape_border_width = props.border_width or 0,
border_color = props.border_color or "#b9214f",
border_width = props.border_width or 0,
fg = props.fg_color or "#999999",
bg = props.bg_color or default_bg,
widget = wibox.container.background