[fix]: adding more icons
This commit is contained in:
parent
a712926c01
commit
193a745cff
6 changed files with 19 additions and 11 deletions
|
|
@ -693,7 +693,7 @@ impl cosmic::Application for App {
|
|||
column![title, subtitle].spacing(space_xxs),
|
||||
horizontal(),
|
||||
tooltip(
|
||||
icon::from_name("add")
|
||||
icon::from_path("./res/plus.svg".into())
|
||||
.symbolic(true)
|
||||
.apply(button::icon)
|
||||
.icon_size(space_l)
|
||||
|
|
@ -1826,7 +1826,9 @@ impl cosmic::Application for App {
|
|||
let presenter_tool_bar = if self.editor_mode.is_none() {
|
||||
let grid_button = button::standard("Grid")
|
||||
.on_press(Message::ViewModeSwitch(ViewMode::Grid))
|
||||
.leading_icon(icon::from_name("show-grid").symbolic(true).size(space_xl))
|
||||
.leading_icon(
|
||||
icon::from_path("./res/layout-grid.svg".into()).symbolic(true),
|
||||
)
|
||||
.height(space_xl)
|
||||
.class(if self.view_mode == ViewMode::Grid {
|
||||
theme::Button::Standard
|
||||
|
|
|
|||
|
|
@ -759,8 +759,10 @@ impl<'a> Library {
|
|||
|
||||
let library_toolbar = rowm!(
|
||||
text_input("Search...", ""),
|
||||
button::icon(icon::from_name("add")).on_press(Message::AddItem)
|
||||
);
|
||||
button::icon(icon::from_path("./res/plus.svg".into()).symbolic(true))
|
||||
.on_press(Message::AddItem)
|
||||
)
|
||||
.align_y(Vertical::Center);
|
||||
let context_menu = self.context_menu(items.into());
|
||||
let library_column = column![library_toolbar, context_menu].spacing(3);
|
||||
Container::new(library_column).padding(5)
|
||||
|
|
@ -822,12 +824,13 @@ impl<'a> Library {
|
|||
|
||||
let texts = column([text.into(), subtext.into()]);
|
||||
|
||||
let add_button = button::icon(icon::from_name("arrow-right"))
|
||||
.on_press(Message::ToService((
|
||||
model.kind,
|
||||
index.try_into().expect("Shouldn't have issues"),
|
||||
)))
|
||||
.tooltip("Add to service");
|
||||
let add_button =
|
||||
button::icon(icon::from_path("./res/caret-right.svg".into()).symbolic(true))
|
||||
.on_press(Message::ToService((
|
||||
model.kind,
|
||||
index.try_into().expect("Shouldn't have issues"),
|
||||
)))
|
||||
.tooltip("Add to service");
|
||||
|
||||
Container::new(
|
||||
rowm![horizontal().width(0), texts, add_button]
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ impl VerseEditor {
|
|||
} = theme::spacing();
|
||||
|
||||
let delete_button = button::text("Delete")
|
||||
.trailing_icon(icon::from_name("view-close").symbolic(true))
|
||||
.trailing_icon(icon::from_path("./res/x.svg".into()).symbolic(true))
|
||||
.class(theme::Button::Destructive)
|
||||
.on_press(Message::DeleteVerse(self.verse_name));
|
||||
let combo = combo_box(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue