Update vulnerable dependencies and migrate to Iced 0.14.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use iced::widget::{
|
||||
Column, column, container, horizontal_space, mouse_area, row, scrollable, text,
|
||||
};
|
||||
use iced::widget::{Column, column, container, mouse_area, row, scrollable, space, text};
|
||||
use iced::{
|
||||
Alignment, Background, Border, Color, Element, Length, Shadow, Subscription, Theme, Vector,
|
||||
};
|
||||
@@ -633,7 +631,7 @@ fn window_menu_popup<'a>(
|
||||
let shortcut = shortcut_hint(action).unwrap_or_default();
|
||||
let content = row![
|
||||
text(translate(locale, action.i18n_key())).size(12),
|
||||
horizontal_space(),
|
||||
space::horizontal(),
|
||||
text(shortcut)
|
||||
.size(11)
|
||||
.color(Color::from_rgb8(0x9D, 0xA5, 0xB4)),
|
||||
@@ -653,7 +651,7 @@ fn window_menu_popup<'a>(
|
||||
}
|
||||
Separator => {
|
||||
entries = entries.push(
|
||||
container(horizontal_space())
|
||||
container(space::horizontal())
|
||||
.height(Length::Fixed(1.0))
|
||||
.width(Length::Fill)
|
||||
.style(|_| iced::widget::container::Style {
|
||||
|
||||
Reference in New Issue
Block a user