Improve tabbar's layout with modern style (#209)

* 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 <camille.le-bon@inria.fr>
This commit is contained in:
Camille Le Bon 2023-05-22 10:52:30 +02:00 committed by GitHub
parent 677917056d
commit 401985a327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -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,
})
@ -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,
@ -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