refactor: use v0.4 new API

This commit is contained in:
sxyazi
2025-01-02 23:14:00 +08:00
parent 71c4fc2e6f
commit 600614a9dc

View File

@@ -17,9 +17,9 @@ local function setup(_, opts)
local c = self._chunks
self._chunks = {
c[1]:padding(ui.Padding.y(1)),
c[2]:padding(ui.Padding(c[1].w > 0 and 0 or 1, c[3].w > 0 and 0 or 1, 1, 1)),
c[3]:padding(ui.Padding.y(1)),
c[1]:pad(ui.Pad.y(1)),
c[2]:pad(ui.Pad(1, c[3].w > 0 and 0 or 1, 1, c[1].w > 0 and 0 or 1)),
c[3]:pad(ui.Pad.y(1)),
}
local style = THEME.manager.border_style