Clip around the active tab

This commit is contained in:
Dániel Buga 2022-05-05 18:37:21 +02:00
parent bf18a04f34
commit b2626cecaa
1 changed files with 4 additions and 1 deletions

View File

@ -534,7 +534,10 @@ fn paint(&mut self, ctx: &mut PaintCtx, data: &LapceWindowData, env: &Env) {
} }
} }
self.tabs[data.active].paint(ctx, data, env); ctx.with_save(|ctx| {
ctx.clip(self.tabs[data.active].layout_rect());
self.tabs[data.active].paint(ctx, data, env);
});
let line_color = data.config.get_color_unchecked(LapceTheme::LAPCE_BORDER); let line_color = data.config.get_color_unchecked(LapceTheme::LAPCE_BORDER);
if self.tabs.len() > 1 { if self.tabs.len() > 1 {