Configurable app Launcher layout (#221)
This commit is contained in:
parent
1f6bd0d5ef
commit
c42d64222a
|
@ -119,6 +119,7 @@ local args = {
|
|||
app_icon_width = dpi(70) -- App icon wigth
|
||||
app_icon_height = dpi(70) -- App icon height
|
||||
app_show_name = true -- Should show app name?
|
||||
app_name_layout = wibox.layout.fixed.vertical -- App name layout
|
||||
app_name_generic_name_spacing = dpi(0) -- Generic name spacing (If show_generic_name)
|
||||
app_name_halign = "center" -- App name horizontal alignment
|
||||
app_name_font = "Comic Sans" -- App name font
|
||||
|
|
|
@ -171,7 +171,7 @@ local function create_app_widget(self, entry)
|
|||
expand = "outside",
|
||||
nil,
|
||||
{
|
||||
layout = wibox.layout.fixed.vertical,
|
||||
layout = self.app_name_layout,
|
||||
spacing = self.app_content_spacing,
|
||||
icon,
|
||||
{
|
||||
|
@ -829,6 +829,7 @@ local function new(args)
|
|||
args.app_icon_width = args.app_icon_width or dpi(70)
|
||||
args.app_icon_height = args.app_icon_height or dpi(70)
|
||||
args.app_show_name = args.app_show_name == nil and true or args.app_show_name
|
||||
args.app_name_layout = args.app_name_layout or wibox.layout.fixed.vertical
|
||||
args.app_name_generic_name_spacing = args.app_name_generic_name_spacing or dpi(0)
|
||||
args.app_name_halign = args.app_name_halign or "center"
|
||||
args.app_name_font = args.app_name_font or beautiful.font
|
||||
|
|
Loading…
Reference in New Issue