better tab legibility

This commit is contained in:
Michael Kirk 2021-02-26 15:57:46 -08:00 committed by Dustin Carlino
parent cf69dd0370
commit 7f3c07f601

View File

@ -711,9 +711,19 @@ fn make_tabs(
);
hyperlinks.insert(name.to_string(), link);
}
{
// stop-gap color that is semi-legible across themes until the tab redesign is completed
let tab_bg = ctx
.style()
.btn_solid
.bg
.lerp(ctx.style().btn_solid.fg, 0.3)
.alpha(1.0);
// TODO Centered, but actually, we need to set the padding of each button to divide the
// available space evenly. Fancy fill rules... hmmm.
Widget::custom_row(row).bg(Color::grey(0.8)).margin_vert(16)
Widget::custom_row(row).bg(tab_bg).margin_vert(16)
}
}
fn header_btns(ctx: &EventCtx) -> Widget {