feat: rebase libcosmic onto iced 0.14
This commit is contained in:
parent
03988df2dc
commit
360973175c
11 changed files with 2142 additions and 2014 deletions
|
|
@ -9,9 +9,9 @@ use cosmic::{
|
|||
},
|
||||
theme,
|
||||
widget::{
|
||||
self, Row, button, column, container, divider, horizontal_space,
|
||||
self, Row, button, column, container, divider,
|
||||
menu::{self, ItemHeight, ItemWidth, MenuBar, key_bind::KeyBind},
|
||||
responsive_menu_bar, text,
|
||||
responsive_menu_bar, space, text,
|
||||
},
|
||||
};
|
||||
use i18n_embed::LanguageLoader;
|
||||
|
|
@ -88,7 +88,7 @@ pub fn context_menu<'a>(
|
|||
let key = find_key(&action);
|
||||
menu_button!(
|
||||
text::body(label),
|
||||
horizontal_space(),
|
||||
space::horizontal(),
|
||||
text::body(key).class(theme::Text::Custom(key_style))
|
||||
)
|
||||
.on_press(tab::Message::ContextAction(action))
|
||||
|
|
@ -98,7 +98,7 @@ pub fn context_menu<'a>(
|
|||
let key = find_key(&action);
|
||||
menu_button!(
|
||||
text::body(label).class(theme::Text::Custom(disabled_style)),
|
||||
horizontal_space(),
|
||||
space::horizontal(),
|
||||
text::body(key).class(theme::Text::Custom(disabled_style))
|
||||
)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue