Skip to content

Commit

Permalink
Improve tabbar's layout with modern style (BlingCorp#209)
Browse files Browse the repository at this point in the history
* Change the title expansion setting to allow buttons to be displayed

* Add padding between the icon and the title of the focused client

---------

Co-authored-by: Camille Le Bon <[email protected]>
  • Loading branch information
Docteur-Lalla and Camille Le Bon authored May 22, 2023
1 parent 6779170 commit 401985a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions widget/tabbar/modern.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ local function create(c, focused_bool, buttons, inactive_bool)
},
text_temp,
nill,
expand = "none",
expand = "inside",
layout = wibox.layout.align.horizontal,
})

Expand All @@ -131,9 +131,10 @@ local function create(c, focused_bool, buttons, inactive_bool)
tab_content = wibox.widget({
{
awful.widget.clienticon(c),
top = dpi(10),
top = dpi(6),
left = dpi(15),
bottom = dpi(10),
right = dpi(10),
bottom = dpi(6),
widget = wibox.container.margin,
},
text_temp,
Expand All @@ -144,7 +145,7 @@ local function create(c, focused_bool, buttons, inactive_bool)
bottom = dpi(10),
widget = wibox.container.margin,
},
expand = "none",
expand = "inside",
layout = wibox.layout.align.horizontal,
})
end
Expand Down

0 comments on commit 401985a

Please sign in to comment.