Skip to content

Commit

Permalink
Added Margins for Tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
CedricM9 committed Nov 8, 2021
1 parent b158f1a commit d0325c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion awesome/widgets/bluetooth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ awful.tooltip(
return "Bluetooth is off"
end
end,
preferred_positions = {"right", "left", "top", "bottom"}
preferred_positions = {"right", "left", "top", "bottom"},
margin_leftright = dpi(14),
margin_topbottom = dpi(14)
}
)

Expand Down
4 changes: 2 additions & 2 deletions awesome/widgets/calendar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ awful.tooltip({
return os.date("%B %d, %Y (%A)")
end,
preferred_positions = {"right", "left", "top", "bottom"},
margin_leftright = dpi(12),
margin_topbottom = dpi(12)
margin_leftright = dpi(14),
margin_topbottom = dpi(14)
})

local cal_shape = function(cr, width, height)
Expand Down
4 changes: 2 additions & 2 deletions awesome/widgets/network/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ local return_button = function()
mode = 'outside',
align = 'right',
preferred_positions = {'left', 'right', 'top', 'bottom'},
margin_leftright = dpi(8),
margin_topbottom = dpi(8)
margin_leftright = dpi(14),
margin_topbottom = dpi(14)
}

local check_internet_health = [=[
Expand Down

0 comments on commit d0325c2

Please sign in to comment.