Fix black separator line between sidebar and main content in v2.5.5
This commit is contained in:
+7
-2
@@ -82,6 +82,7 @@ pub struct ThemeColors {
|
|||||||
pub bg_card_active: Color32,
|
pub bg_card_active: Color32,
|
||||||
pub bg_hover: Color32,
|
pub bg_hover: Color32,
|
||||||
pub stroke_border: Stroke,
|
pub stroke_border: Stroke,
|
||||||
|
#[allow(dead_code)]
|
||||||
pub stroke_subtle: Stroke,
|
pub stroke_subtle: Stroke,
|
||||||
pub text_primary: Color32,
|
pub text_primary: Color32,
|
||||||
pub text_secondary: Color32,
|
pub text_secondary: Color32,
|
||||||
@@ -5004,9 +5005,13 @@ impl eframe::App for ZeroSendApp {
|
|||||||
style.visuals.window_fill = theme.bg_card;
|
style.visuals.window_fill = theme.bg_card;
|
||||||
style.visuals.override_text_color = Some(theme.text_primary);
|
style.visuals.override_text_color = Some(theme.text_primary);
|
||||||
style.visuals.widgets.noninteractive.bg_fill = theme.bg_card;
|
style.visuals.widgets.noninteractive.bg_fill = theme.bg_card;
|
||||||
|
style.visuals.widgets.noninteractive.bg_stroke = Stroke::NONE;
|
||||||
|
style.visuals.widgets.noninteractive.fg_stroke = Stroke::new(1.0_f32, theme.text_muted);
|
||||||
style.visuals.widgets.inactive.bg_fill = theme.bg_card_secondary;
|
style.visuals.widgets.inactive.bg_fill = theme.bg_card_secondary;
|
||||||
|
style.visuals.widgets.inactive.bg_stroke = Stroke::NONE;
|
||||||
style.visuals.widgets.inactive.rounding = Rounding::same(6.0);
|
style.visuals.widgets.inactive.rounding = Rounding::same(6.0);
|
||||||
style.visuals.widgets.hovered.bg_fill = theme.bg_hover;
|
style.visuals.widgets.hovered.bg_fill = theme.bg_hover;
|
||||||
|
style.visuals.widgets.hovered.bg_stroke = Stroke::NONE;
|
||||||
style.visuals.widgets.hovered.rounding = Rounding::same(6.0);
|
style.visuals.widgets.hovered.rounding = Rounding::same(6.0);
|
||||||
style.visuals.widgets.active.bg_fill = Color32::from_rgb(37, 99, 235);
|
style.visuals.widgets.active.bg_fill = Color32::from_rgb(37, 99, 235);
|
||||||
style.visuals.widgets.active.rounding = Rounding::same(6.0);
|
style.visuals.widgets.active.rounding = Rounding::same(6.0);
|
||||||
@@ -5014,11 +5019,11 @@ impl eframe::App for ZeroSendApp {
|
|||||||
|
|
||||||
SidePanel::left("sidebar_panel")
|
SidePanel::left("sidebar_panel")
|
||||||
.resizable(false)
|
.resizable(false)
|
||||||
.exact_width(195.0)
|
.show_separator_line(false)
|
||||||
|
.exact_width(200.0)
|
||||||
.frame(
|
.frame(
|
||||||
Frame::none()
|
Frame::none()
|
||||||
.fill(theme.bg_sidebar)
|
.fill(theme.bg_sidebar)
|
||||||
.stroke(theme.stroke_subtle)
|
|
||||||
.inner_margin(Margin::same(12.0)),
|
.inner_margin(Margin::same(12.0)),
|
||||||
)
|
)
|
||||||
.show(ctx, |ui| {
|
.show(ctx, |ui| {
|
||||||
|
|||||||
Reference in New Issue
Block a user