From 3987d8abe8f61965ab69594e67205a5418c8ba86 Mon Sep 17 00:00:00 2001 From: Gokul Swaminathan Date: Wed, 25 Nov 2020 16:42:05 -0800 Subject: [PATCH] REVERSE CORNERS IN TABS YESS!!!! --- widget/tabbar/modern.lua | 53 +++++++++++++++++++++++++++++++++------- 1 file changed, 44 insertions(+), 9 deletions(-) diff --git a/widget/tabbar/modern.lua b/widget/tabbar/modern.lua index 1b0d61f..af312e7 100644 --- a/widget/tabbar/modern.lua +++ b/widget/tabbar/modern.lua @@ -129,16 +129,51 @@ local function create(c, focused_bool, buttons) local wid_temp = wibox.widget({ buttons = buttons, { - tab_content, - bg = bg_temp, - shape = helpers.prrect(border_radius, true, true, false, false), - widget = wibox.container.background + { + { + bg = bg_normal, + shape = helpers.prrect(border_radius, false, false, true, + false), + widget = wibox.container.background + }, + bg = bg_temp, + shape = gears.rectangle, + widget = wibox.container.background + }, + width = 10, + height = 40, + strategy = "exact", + layout = wibox.layout.constraint }, - top = dpi(8), - left = dpi(5), - right = dpi(5), - bottom = dpi(0), - widget = wibox.container.margin + { + { + tab_content, + bg = bg_temp, + shape = helpers.prrect(border_radius, true, true, false, false), + widget = wibox.container.background + }, + top = dpi(8), + widget = wibox.container.margin + }, + { + { + { + bg = bg_normal, + shape = helpers.prrect(border_radius, false, false, false, + true), + widget = wibox.container.background + }, + bg = bg_temp, + shape = gears.rectangle, + widget = wibox.container.background + }, + width = 10, + height = 40, + strategy = "exact", + layout = wibox.layout.constraint + }, + + layout = wibox.layout.align.horizontal }) return wid_temp end