panel switcher background

This commit is contained in:
Dongdong Zhou 2022-07-23 21:53:35 +01:00
parent 722c67883d
commit b2f7b47d53
1 changed files with 9 additions and 0 deletions

View File

@ -1052,6 +1052,15 @@ fn paint(&mut self, ctx: &mut PaintCtx, data: &LapceTabData, _env: &Env) {
}
let rect = ctx.size().to_rect();
ctx.fill(
rect,
data.config
.get_color_unchecked(if self.position.is_bottom() {
LapceTheme::EDITOR_BACKGROUND
} else {
LapceTheme::PANEL_BACKGROUND
}),
);
let shadow_width = data.config.ui.drop_shadow_width() as f64;
match self.position {
PanelPosition::LeftTop | PanelPosition::RightTop => {