[chore]: reorganize icons
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 832 B After Width: | Height: | Size: 832 B |
|
Before Width: | Height: | Size: 839 B After Width: | Height: | Size: 839 B |
|
Before Width: | Height: | Size: 849 B After Width: | Height: | Size: 849 B |
|
Before Width: | Height: | Size: 737 B After Width: | Height: | Size: 737 B |
|
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 822 B |
|
Before Width: | Height: | Size: 834 B After Width: | Height: | Size: 834 B |
|
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 822 B |
|
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 831 B |
|
Before Width: | Height: | Size: 841 B After Width: | Height: | Size: 841 B |
|
Before Width: | Height: | Size: 621 B After Width: | Height: | Size: 621 B |
|
Before Width: | Height: | Size: 660 B After Width: | Height: | Size: 660 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 398 B After Width: | Height: | Size: 398 B |
|
Before Width: | Height: | Size: 617 B After Width: | Height: | Size: 617 B |
|
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 331 B |
|
Before Width: | Height: | Size: 578 B After Width: | Height: | Size: 578 B |
|
Before Width: | Height: | Size: 1,022 B After Width: | Height: | Size: 1,022 B |
|
Before Width: | Height: | Size: 1,022 B After Width: | Height: | Size: 1,022 B |
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 348 B |
|
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 378 B |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 573 B |
|
Before Width: | Height: | Size: 976 B After Width: | Height: | Size: 976 B |
|
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 347 B |
14
src/main.rs
|
|
@ -535,7 +535,7 @@ impl cosmic::Application for App {
|
|||
button::custom(
|
||||
row!(
|
||||
Container::new(
|
||||
icon::from_path("./res/search.svg".into())
|
||||
icon::from_path("./res/icons/search.svg".into())
|
||||
.symbolic(true)
|
||||
.icon()
|
||||
)
|
||||
|
|
@ -554,11 +554,11 @@ impl cosmic::Application for App {
|
|||
button::custom(
|
||||
row!(
|
||||
Container::new(if self.editor_mode.is_some() {
|
||||
icon::from_path("./res/presentation-analytics.svg".into())
|
||||
icon::from_path("./res/icons/presentation-analytics.svg".into())
|
||||
.symbolic(true)
|
||||
.icon()
|
||||
} else {
|
||||
icon::from_path("./res/edit.svg".into())
|
||||
icon::from_path("./res/icons/edit.svg".into())
|
||||
.symbolic(true)
|
||||
.icon()
|
||||
})
|
||||
|
|
@ -1657,7 +1657,7 @@ impl cosmic::Application for App {
|
|||
64
|
||||
};
|
||||
|
||||
let icon_left = icon::from_path("./res/caret-left.svg".into())
|
||||
let icon_left = icon::from_path("./res/icons/caret-left.svg".into())
|
||||
.symbolic(true)
|
||||
.icon()
|
||||
.size(icon_size)
|
||||
|
|
@ -1669,7 +1669,7 @@ impl cosmic::Application for App {
|
|||
}),
|
||||
}));
|
||||
|
||||
let icon_right = icon::from_path("./res/caret-right.svg".into())
|
||||
let icon_right = icon::from_path("./res/icons/caret-right.svg".into())
|
||||
.symbolic(true)
|
||||
.icon()
|
||||
.size(icon_size)
|
||||
|
|
@ -1847,7 +1847,7 @@ impl cosmic::Application for App {
|
|||
let grid_button = button::standard("Grid")
|
||||
.on_press(Message::ViewModeSwitch(ViewMode::Grid))
|
||||
.leading_icon(
|
||||
icon::from_path("./res/layout-grid.svg".into()).symbolic(true),
|
||||
icon::from_path("./res/icons/layout-grid.svg".into()).symbolic(true),
|
||||
)
|
||||
.class(if self.view_mode == ViewMode::Grid {
|
||||
theme::Button::Standard
|
||||
|
|
@ -1855,7 +1855,7 @@ impl cosmic::Application for App {
|
|||
theme::Button::HeaderBar
|
||||
});
|
||||
let list_button = button::standard("Preview")
|
||||
.leading_icon(icon::from_path("./res/carousel.svg".into()).symbolic(true))
|
||||
.leading_icon(icon::from_path("./res/icons/carousel.svg".into()).symbolic(true))
|
||||
.on_press(Message::ViewModeSwitch(ViewMode::Row))
|
||||
.class(if self.view_mode == ViewMode::Row {
|
||||
theme::Button::Standard
|
||||
|
|
|
|||
|
|
@ -826,7 +826,7 @@ impl<'a> Library {
|
|||
let texts = column([text.into(), subtext.into()]);
|
||||
|
||||
let add_button =
|
||||
button::icon(icon::from_path("./res/caret-right.svg".into()).symbolic(true))
|
||||
button::icon(icon::from_path("./res/icons/caret-right.svg".into()).symbolic(true))
|
||||
.on_press(Message::ToService((
|
||||
model.kind,
|
||||
index.try_into().expect("Shouldn't have issues"),
|
||||
|
|
|
|||
|
|
@ -411,9 +411,9 @@ impl PresentationEditor {
|
|||
fn context_menu<'b>(&self, items: Element<'b, Message>) -> Element<'b, Message> {
|
||||
if self.context_menu_id.is_some() {
|
||||
let before_icon =
|
||||
icon::from_path("./res/split-above.svg".into()).symbolic(true);
|
||||
icon::from_path("./res/icons/split-above.svg".into()).symbolic(true);
|
||||
let after_icon =
|
||||
icon::from_path("./res/split-below.svg".into()).symbolic(true);
|
||||
icon::from_path("./res/icons/split-below.svg".into()).symbolic(true);
|
||||
let menu_items = vec![
|
||||
menu::Item::Button(
|
||||
"Spit Before",
|
||||
|
|
|
|||
|
|
@ -1530,7 +1530,7 @@ impl SongEditor {
|
|||
);
|
||||
|
||||
let mut stroke_tools_button = popover(tooltip(
|
||||
button::icon(icon::from_path("./res/text-outline.svg".into()).symbolic(true))
|
||||
button::icon(icon::from_path("./res/icons/text-outline.svg".into()).symbolic(true))
|
||||
.label("Text Stroke")
|
||||
.on_press(Message::ToggleStrokeTools),
|
||||
"Outline of the text",
|
||||
|
|
@ -1592,7 +1592,7 @@ impl SongEditor {
|
|||
}
|
||||
|
||||
let mut shadow_tools_button = popover(tooltip(
|
||||
button::icon(icon::from_path("./res/shadow.svg".into()).symbolic(true))
|
||||
button::icon(icon::from_path("./res/icons/shadow.svg".into()).symbolic(true))
|
||||
.label("Text Shadow")
|
||||
.padding(space_s)
|
||||
.on_press(Message::ToggleShadowTools),
|
||||
|
|
@ -1686,7 +1686,7 @@ impl SongEditor {
|
|||
}
|
||||
let text_alignment_popover = popover(tooltip(
|
||||
button::icon(
|
||||
icon::from_path("./res/align-on-canvas.svg".into()).symbolic(true),
|
||||
icon::from_path("./res/icons/align-on-canvas.svg".into()).symbolic(true),
|
||||
)
|
||||
.label("Text Alignment")
|
||||
.padding(space_s)
|
||||
|
|
@ -1705,7 +1705,7 @@ impl SongEditor {
|
|||
.column_spacing(space_s)
|
||||
.push_with(
|
||||
button::icon(
|
||||
icon::from_path("./res/boundingbox_top_left.svg".into())
|
||||
icon::from_path("./res/icons/boundingbox_top_left.svg".into())
|
||||
.symbolic(true),
|
||||
)
|
||||
.class(theme::Button::Standard)
|
||||
|
|
@ -1715,7 +1715,7 @@ impl SongEditor {
|
|||
)
|
||||
.push_with(
|
||||
button::icon(
|
||||
icon::from_path("./res/boundingbox_top.svg".into())
|
||||
icon::from_path("./res/icons/boundingbox_top.svg".into())
|
||||
.symbolic(true),
|
||||
)
|
||||
.class(theme::Button::Standard)
|
||||
|
|
@ -1725,7 +1725,7 @@ impl SongEditor {
|
|||
)
|
||||
.push_with(
|
||||
button::icon(
|
||||
icon::from_path("./res/boundingbox_top_right.svg".into())
|
||||
icon::from_path("./res/icons/boundingbox_top_right.svg".into())
|
||||
.symbolic(true),
|
||||
)
|
||||
.class(theme::Button::Standard)
|
||||
|
|
@ -1735,7 +1735,7 @@ impl SongEditor {
|
|||
)
|
||||
.push_with(
|
||||
button::icon(
|
||||
icon::from_path("./res/boundingbox_left.svg".into())
|
||||
icon::from_path("./res/icons/boundingbox_left.svg".into())
|
||||
.symbolic(true),
|
||||
)
|
||||
.class(theme::Button::Standard)
|
||||
|
|
@ -1745,7 +1745,7 @@ impl SongEditor {
|
|||
)
|
||||
.push_with(
|
||||
button::icon(
|
||||
icon::from_path("./res/boundingbox_center.svg".into())
|
||||
icon::from_path("./res/icons/boundingbox_center.svg".into())
|
||||
.symbolic(true),
|
||||
)
|
||||
.class(theme::Button::Standard)
|
||||
|
|
@ -1755,7 +1755,7 @@ impl SongEditor {
|
|||
)
|
||||
.push_with(
|
||||
button::icon(
|
||||
icon::from_path("./res/boundingbox_right.svg".into())
|
||||
icon::from_path("./res/icons/boundingbox_right.svg".into())
|
||||
.symbolic(true),
|
||||
)
|
||||
.class(theme::Button::Standard)
|
||||
|
|
@ -1765,7 +1765,7 @@ impl SongEditor {
|
|||
)
|
||||
.push_with(
|
||||
button::icon(
|
||||
icon::from_path("./res/boundingbox_bottom_left.svg".into())
|
||||
icon::from_path("./res/icons/boundingbox_bottom_left.svg".into())
|
||||
.symbolic(true),
|
||||
)
|
||||
.class(theme::Button::Standard)
|
||||
|
|
@ -1775,7 +1775,7 @@ impl SongEditor {
|
|||
)
|
||||
.push_with(
|
||||
button::icon(
|
||||
icon::from_path("./res/boundingbox_bottom.svg".into())
|
||||
icon::from_path("./res/icons/boundingbox_bottom.svg".into())
|
||||
.symbolic(true),
|
||||
)
|
||||
.class(theme::Button::Standard)
|
||||
|
|
@ -1785,7 +1785,7 @@ impl SongEditor {
|
|||
)
|
||||
.push_with(
|
||||
button::icon(
|
||||
icon::from_path("./res/boundingbox_bottom_right.svg".into())
|
||||
icon::from_path("./res/icons/boundingbox_bottom_right.svg".into())
|
||||
.symbolic(true),
|
||||
)
|
||||
.class(theme::Button::Standard)
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ impl VerseEditor {
|
|||
} = theme::spacing();
|
||||
|
||||
let delete_button = button::text("Delete")
|
||||
.trailing_icon(icon::from_path("./res/x.svg".into()).symbolic(true))
|
||||
.trailing_icon(icon::from_path("./res/icons/x.svg".into()).symbolic(true))
|
||||
.class(theme::Button::Destructive)
|
||||
.on_press(Message::DeleteVerse(self.verse_name));
|
||||
let combo = combo_box(
|
||||
|
|
|
|||