Skip to content

Commit

Permalink
fix: plain colour background layer not covering whole viewport (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinSilvester committed Sep 29, 2024
1 parent 92541f6 commit 0821460
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions config/appearance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ return {
},
{
source = { Color = colors.background },
height = '100%',
width = '100%',
height = '120%',
width = '120%',
vertical_offset = '-10%',
horizontal_offset = '-10%',
opacity = 0.96,
},
},
Expand Down
9 changes: 5 additions & 4 deletions utils/backdrops.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function BackDrops:init()
current_idx = 1,
files = {},
focus_color = colors.background,
focus_on = false
focus_on = false,
}
local backdrops = setmetatable(inital, self)
wezterm.GLOBAL.background = nil
Expand Down Expand Up @@ -68,8 +68,10 @@ function BackDrops:_set_opt(window)
},
{
source = { Color = colors.background },
height = '100%',
width = '100%',
height = '120%',
width = '120%',
vertical_offset = '-10%',
horizontal_offset = '-10%',
opacity = 0.96,
},
},
Expand Down Expand Up @@ -170,5 +172,4 @@ function BackDrops:toggle_focus(window)
end
end


return BackDrops:init()

0 comments on commit 0821460

Please sign in to comment.