Merge pull request #620 from git-f0x/master

[Context Menu] Use radius from theme
This commit is contained in:
Jeremy Soller 2024-10-22 19:09:48 -06:00 committed by GitHub
commit 9e77c2244d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 11 deletions

View file

@ -3078,10 +3078,7 @@ impl Tab {
//TODO: use widget::image::viewer, when its zoom can be reset
widget::image(widget::image::Handle::from_path(path)),
)
.align_x(Alignment::Center)
.align_y(Alignment::Center)
.width(Length::Fill)
.height(Length::Fill)
.center(Length::Fill)
.into(),
);
} else {
@ -3090,10 +3087,7 @@ impl Tab {
//TODO: use widget::image::viewer, when its zoom can be reset
widget::image(handle.clone()),
)
.align_x(Alignment::Center)
.align_y(Alignment::Center)
.width(Length::Fill)
.height(Length::Fill)
.center(Length::Fill)
.into(),
);
}