Configurable app Launcher layout (#221)

This commit is contained in:
PassiveLemon 2024-02-21 07:47:02 -05:00 committed by GitHub
parent 1f6bd0d5ef
commit c42d64222a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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