stack_hover: Fix styling
This commit is contained in:
parent
88b7dbbd05
commit
a416a5d6a8
1 changed files with 3 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ impl Program for StackHoverInternal {
|
||||||
.force_svg(true)
|
.force_svg(true)
|
||||||
.style(theme::Svg::Symbolic)
|
.style(theme::Svg::Symbolic)
|
||||||
.apply(container)
|
.apply(container)
|
||||||
.padding(8)
|
.padding([0, 8, 0, 0])
|
||||||
.width(Length::Shrink)
|
.width(Length::Shrink)
|
||||||
.apply(container)
|
.apply(container)
|
||||||
.center_y()
|
.center_y()
|
||||||
|
|
@ -42,9 +42,8 @@ impl Program for StackHoverInternal {
|
||||||
text(fl!("stack-windows"))
|
text(fl!("stack-windows"))
|
||||||
.font(cosmic::font::FONT)
|
.font(cosmic::font::FONT)
|
||||||
.size(24)
|
.size(24)
|
||||||
.line_height(24.)
|
.line_height(1.3)
|
||||||
.apply(container)
|
.apply(container)
|
||||||
.padding(8)
|
|
||||||
.width(Length::Shrink)
|
.width(Length::Shrink)
|
||||||
.apply(container)
|
.apply(container)
|
||||||
.center_y()
|
.center_y()
|
||||||
|
|
@ -54,7 +53,7 @@ impl Program for StackHoverInternal {
|
||||||
.width(Length::Shrink)
|
.width(Length::Shrink)
|
||||||
.height(Length::Shrink)
|
.height(Length::Shrink)
|
||||||
.apply(container)
|
.apply(container)
|
||||||
.padding(4)
|
.padding([8, 16])
|
||||||
.style(theme::Container::custom(|theme| container::Appearance {
|
.style(theme::Container::custom(|theme| container::Appearance {
|
||||||
text_color: Some(Color::from(theme.cosmic().palette.neutral_9)),
|
text_color: Some(Color::from(theme.cosmic().palette.neutral_9)),
|
||||||
background: Some(Background::Color(theme.cosmic().palette.neutral_3.into())),
|
background: Some(Background::Color(theme.cosmic().palette.neutral_3.into())),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue