fix(context menu): use radius from theme
This commit is contained in:
parent
2871309f04
commit
aa0a026855
2 changed files with 5 additions and 11 deletions
10
src/tab.rs
10
src/tab.rs
|
|
@ -3020,10 +3020,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 {
|
||||
|
|
@ -3032,10 +3029,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(),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue