All PanelMainHeaders use same bg color.

This backs out part of the change from the previous commit,
leaving the comment. Following discussion on Discord with
bugadani
This commit is contained in:
Philip Daniels 2022-04-03 16:18:17 +01:00
parent 505c2a6ab2
commit e30b05da85
1 changed files with 2 additions and 6 deletions

View File

@ -519,14 +519,10 @@ fn paint(&mut self, ctx: &mut PaintCtx, data: &LapceTabData, _env: &Env) {
.get_color_unchecked(LapceTheme::LAPCE_DROPDOWN_SHADOW),
);
let bg_color_name = match self.kind {
PanelKind::Terminal => LapceTheme::TERMINAL_BACKGROUND,
_ => LapceTheme::EDITOR_BACKGROUND
};
ctx.fill(
rect,
data.config.get_color_unchecked(bg_color_name),
data.config
.get_color_unchecked(LapceTheme::EDITOR_BACKGROUND),
);
let text_layout = ctx