mirror of https://github.com/lapce/lapce.git
Clip around the active tab
This commit is contained in:
parent
bf18a04f34
commit
b2626cecaa
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue