mirror of https://github.com/lapce/lapce.git
panel switcher background
This commit is contained in:
parent
722c67883d
commit
b2f7b47d53
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue