fix: battery indicator height
This commit is contained in:
parent
c54ddeb38a
commit
25064dff8a
1 changed files with 21 additions and 17 deletions
|
|
@ -684,23 +684,27 @@ impl cosmic::Application for CosmicBatteryApplet {
|
|||
.size(16)
|
||||
.width(Length::Fill)
|
||||
.align_x(Alignment::Start),
|
||||
container(vertical_space().width(Length::Fixed(0.0)))
|
||||
.padding(4)
|
||||
.class(cosmic::style::Container::Custom(Box::new(|theme| {
|
||||
container::Style {
|
||||
text_color: Some(Color::TRANSPARENT),
|
||||
background: Some(Background::Color(
|
||||
theme.cosmic().accent_color().into(),
|
||||
)),
|
||||
border: Border {
|
||||
radius: 4.0.into(),
|
||||
width: 0.0,
|
||||
color: Color::TRANSPARENT,
|
||||
},
|
||||
shadow: Default::default(),
|
||||
icon_color: Some(Color::TRANSPARENT),
|
||||
}
|
||||
},))),
|
||||
container(
|
||||
vertical_space()
|
||||
.width(Length::Fixed(0.0))
|
||||
.height(Length::Fixed(0.0))
|
||||
)
|
||||
.padding(4)
|
||||
.class(cosmic::style::Container::Custom(Box::new(|theme| {
|
||||
container::Style {
|
||||
text_color: Some(Color::TRANSPARENT),
|
||||
background: Some(Background::Color(
|
||||
theme.cosmic().accent_color().into(),
|
||||
)),
|
||||
border: Border {
|
||||
radius: 4.0.into(),
|
||||
width: 0.0,
|
||||
color: Color::TRANSPARENT,
|
||||
},
|
||||
shadow: Default::default(),
|
||||
icon_color: Some(Color::TRANSPARENT),
|
||||
}
|
||||
},))),
|
||||
]
|
||||
.align_y(Alignment::Center),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue