Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/widgets/app_launcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ local args = {
app_normal_hover_color = "#111111" -- App normal hover color
app_selected_color = "#FFFFFF" -- App selected color
app_selected_hover_color = "#EEEEEE" -- App selected hover color
app_content_layout = "vertical"|"horizontal" -- App content layout (for icon and app name)
app_content_padding = dpi(10) -- App content padding
app_content_spacing = dpi(10) -- App content spacing
app_show_icon = true -- Should show icon?
Expand Down
3 changes: 2 additions & 1 deletion widget/app_launcher/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ local function create_app_widget(self, entry)
expand = "outside",
nil,
{
layout = wibox.layout.fixed.vertical,
layout = wibox.layout.fixed[self.app_content_layout] or wibox.layout.fixed.vertical,
spacing = self.app_content_spacing,
icon,
{
Expand Down Expand Up @@ -822,6 +822,7 @@ local function new(args)
args.app_selected_hover_color = args.app_selected_hover_color or (color.is_dark(args.app_normal_color) or color.is_opaque(args.app_normal_color)) and
color.rgba_to_hex(color.multiply(color.hex_to_rgba(args.app_selected_color), 2.5)) or
color.rgba_to_hex(color.multiply(color.hex_to_rgba(args.app_selected_color), 0.5))
args.app_content_layout = args.app_content_layout or 'vertical'
args.app_content_padding = args.app_content_padding or dpi(10)
args.app_content_spacing = args.app_content_spacing or dpi(10)
args.app_show_icon = args.app_show_icon == nil and true or args.app_show_icon
Expand Down