fix: battery indicator height

This commit is contained in:
Ashley Wulber 2025-03-15 12:03:36 -04:00 committed by Michael Murphy
parent c54ddeb38a
commit 25064dff8a

View file

@ -684,23 +684,27 @@ impl cosmic::Application for CosmicBatteryApplet {
.size(16) .size(16)
.width(Length::Fill) .width(Length::Fill)
.align_x(Alignment::Start), .align_x(Alignment::Start),
container(vertical_space().width(Length::Fixed(0.0))) container(
.padding(4) vertical_space()
.class(cosmic::style::Container::Custom(Box::new(|theme| { .width(Length::Fixed(0.0))
container::Style { .height(Length::Fixed(0.0))
text_color: Some(Color::TRANSPARENT), )
background: Some(Background::Color( .padding(4)
theme.cosmic().accent_color().into(), .class(cosmic::style::Container::Custom(Box::new(|theme| {
)), container::Style {
border: Border { text_color: Some(Color::TRANSPARENT),
radius: 4.0.into(), background: Some(Background::Color(
width: 0.0, theme.cosmic().accent_color().into(),
color: Color::TRANSPARENT, )),
}, border: Border {
shadow: Default::default(), radius: 4.0.into(),
icon_color: Some(Color::TRANSPARENT), width: 0.0,
} color: Color::TRANSPARENT,
},))), },
shadow: Default::default(),
icon_color: Some(Color::TRANSPARENT),
}
},))),
] ]
.align_y(Alignment::Center), .align_y(Alignment::Center),
) )