[fix]: fixing a lot more icons
Some checks failed
/ clippy (push) Failing after 6m7s
/ test (push) Has been cancelled

This commit is contained in:
Chris Cochrun 2026-05-01 10:32:10 -05:00
parent 65b619d571
commit 9490e61e1f
14 changed files with 177 additions and 69 deletions

8
res/align-on-canvas.svg Normal file
View file

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; } .ColorScheme-NeutralText { color:#ff9800; } .ColorScheme-PositiveText { color:#4caf50; } .ColorScheme-NegativeText { color:#f44336; }
</style>
</defs>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 5.7226562 4 C 4.7682642 4 4 4.892 4 6 L 5 6 C 5 5.3542968 5.3913485 5 5.7226562 5 L 6 5 L 6 4 L 5.7226562 4 z M 8 4 L 8 5 L 11 5 L 11 4 L 8 4 z M 13 4 L 13 5 L 16 5 L 16 4 L 13 4 z M 18 4 L 18 5 L 18.277344 5 C 18.608652 5 19 5.3542968 19 6 L 20 6 C 20 4.892 19.231736 4 18.277344 4 L 18 4 z M 4 8 L 4 11 L 5 11 L 5 8 L 4 8 z M 7 8 L 7 16 L 17 16 L 17 8 L 7 8 z M 19 8 L 19 11 L 20 11 L 20 8 L 19 8 z M 4 13 L 4 16 L 5 16 L 5 13 L 4 13 z M 19 13 L 19 16 L 20 16 L 20 13 L 19 13 z M 4 18 C 4 19.108 4.7682642 20 5.7226562 20 L 6 20 L 6 19 L 5.7226562 19 C 5.3913486 19 5 18.645703 5 18 L 4 18 z M 19 18 C 19 18.645703 18.608652 19 18.277344 19 L 18 19 L 18 20 L 18.277344 20 C 19.231736 20 20 19.108 20 18 L 19 18 z M 8 19 L 8 20 L 11 20 L 11 19 L 8 19 z M 13 19 L 13 20 L 16 20 L 16 19 L 13 19 z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; } .ColorScheme-NeutralText { color:#ff9800; } .ColorScheme-PositiveText { color:#4caf50; } .ColorScheme-NegativeText { color:#f44336; }
</style>
</defs>
<path style="opacity:.35;fill:currentColor" class="ColorScheme-Text" d="M 14,13 A 5,5 0 0 1 9,18 5,5 0 0 1 4,13 5,5 0 0 1 9,8 5,5 0 0 1 14,13 Z"/>
<path style="opacity:0.7;fill:currentColor" class="ColorScheme-Text" d="M 9,8 A 5,5 0 0 0 4,13 5,5 0 0 0 9,18 5,5 0 0 0 14,13 5,5 0 0 0 9,8 Z M 9,9 A 4,4 0 0 1 13,13 4,4 0 0 1 9,17 4,4 0 0 1 5,13 4,4 0 0 1 9,9 Z"/>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 0,12 H 18 V 14 H 0 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 832 B

View file

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; } .ColorScheme-NeutralText { color:#ff9800; } .ColorScheme-PositiveText { color:#4caf50; } .ColorScheme-NegativeText { color:#f44336; }
</style>
</defs>
<path style="opacity:.35;fill:currentColor" class="ColorScheme-Text" d="M 10,13 A 5,5 0 0 1 5,18 5,5 0 0 1 0,13 5,5 0 0 1 5,8 5,5 0 0 1 10,13 Z"/>
<path style="opacity:0.7;fill:currentColor" class="ColorScheme-Text" d="M 5,8 A 5,5 0 0 0 0,13 5,5 0 0 0 5,18 5,5 0 0 0 10,13 5,5 0 0 0 5,8 Z M 5,9 A 4,4 0 0 1 9,13 4,4 0 0 1 5,17 4,4 0 0 1 1,13 4,4 0 0 1 5,9 Z"/>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 4,0 V 14 H 18 V 12 H 6 V 0 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 839 B

View file

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; } .ColorScheme-NeutralText { color:#ff9800; } .ColorScheme-PositiveText { color:#4caf50; } .ColorScheme-NegativeText { color:#f44336; }
</style>
</defs>
<path style="opacity:.35;fill:currentColor" class="ColorScheme-Text" d="M 18,13 A 5,5 0 0 1 13,18 5,5 0 0 1 8,13 5,5 0 0 1 13,8 5,5 0 0 1 18,13 Z"/>
<path style="opacity:0.7;fill:currentColor" class="ColorScheme-Text" d="M 13,8 A 5,5 0 0 0 8,13 5,5 0 0 0 13,18 5,5 0 0 0 18,13 5,5 0 0 0 13,8 Z M 13,9 A 4,4 0 0 1 17,13 4,4 0 0 1 13,17 4,4 0 0 1 9,13 4,4 0 0 1 13,9 Z"/>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 14,0 V 14 H 0 V 12 H 12 V 0 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 849 B

View file

@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; } .ColorScheme-NeutralText { color:#ff9800; } .ColorScheme-PositiveText { color:#4caf50; } .ColorScheme-NegativeText { color:#f44336; }
</style>
</defs>
<path style="opacity:.35;fill:currentColor" class="ColorScheme-Text" d="M 9,4 A 5,5 0 0 0 4,9 5,5 0 0 0 9,14 5,5 0 0 0 14,9 5,5 0 0 0 9,4 Z"/>
<path style="opacity:0.7;fill:currentColor" class="ColorScheme-Text" d="M 9,4 A 5,5 0 0 0 4,9 5,5 0 0 0 9,14 5,5 0 0 0 14,9 5,5 0 0 0 9,4 Z M 9,5 A 4,4 0 0 1 13,9 4,4 0 0 1 9,13 4,4 0 0 1 5,9 4,4 0 0 1 9,5 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 737 B

10
res/boundingbox_left.svg Normal file
View file

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; } .ColorScheme-NeutralText { color:#ff9800; } .ColorScheme-PositiveText { color:#4caf50; } .ColorScheme-NegativeText { color:#f44336; }
</style>
</defs>
<path style="opacity:.35;fill:currentColor" class="ColorScheme-Text" d="M 10,9 A 5,5 0 0 1 5,14 5,5 0 0 1 0,9 5,5 0 0 1 5,4 5,5 0 0 1 10,9 Z"/>
<path style="opacity:0.7;fill:currentColor" class="ColorScheme-Text" d="M 5,4 A 5,5 0 0 0 0,9 5,5 0 0 0 5,14 5,5 0 0 0 10,9 5,5 0 0 0 5,4 Z M 5,5 A 4,4 0 0 1 9,9 4,4 0 0 1 5,13 4,4 0 0 1 1,9 4,4 0 0 1 5,5 Z"/>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 4,0 H 6 V 18 H 4 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 822 B

10
res/boundingbox_right.svg Normal file
View file

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; } .ColorScheme-NeutralText { color:#ff9800; } .ColorScheme-PositiveText { color:#4caf50; } .ColorScheme-NegativeText { color:#f44336; }
</style>
</defs>
<path style="opacity:.35;fill:currentColor" class="ColorScheme-Text" d="M 18,9 A 5,5 0 0 1 13,14 5,5 0 0 1 8,9 5,5 0 0 1 13,4 5,5 0 0 1 18,9 Z"/>
<path style="opacity:0.7;fill:currentColor" class="ColorScheme-Text" d="M 13,4 A 5,5 0 0 0 8,9 5,5 0 0 0 13,14 5,5 0 0 0 18,9 5,5 0 0 0 13,4 Z M 13,5 A 4,4 0 0 1 17,9 4,4 0 0 1 13,13 4,4 0 0 1 9,9 4,4 0 0 1 13,5 Z"/>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 12,0 H 14 V 18 H 12 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 834 B

10
res/boundingbox_top.svg Normal file
View file

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; } .ColorScheme-NeutralText { color:#ff9800; } .ColorScheme-PositiveText { color:#4caf50; } .ColorScheme-NegativeText { color:#f44336; }
</style>
</defs>
<path style="opacity:.35;fill:currentColor" class="ColorScheme-Text" d="M 14,5 A 5,5 0 0 1 9,10 5,5 0 0 1 4,5 5,5 0 0 1 9,0 5,5 0 0 1 14,5 Z"/>
<path style="opacity:0.7;fill:currentColor" class="ColorScheme-Text" d="M 9,0 A 5,5 0 0 0 4,5 5,5 0 0 0 9,10 5,5 0 0 0 14,5 5,5 0 0 0 9,0 Z M 9,1 A 4,4 0 0 1 13,5 4,4 0 0 1 9,9 4,4 0 0 1 5,5 4,4 0 0 1 9,1 Z"/>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 0,4 H 18 V 6 H 0 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 822 B

View file

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; } .ColorScheme-NeutralText { color:#ff9800; } .ColorScheme-PositiveText { color:#4caf50; } .ColorScheme-NegativeText { color:#f44336; }
</style>
</defs>
<path style="opacity:.35;fill:currentColor" class="ColorScheme-Text" d="M 10,5 A 5,5 0 0 0 5,0 5,5 0 0 0 0,5 5,5 0 0 0 5,10 5,5 0 0 0 10,5 Z"/>
<path style="opacity:0.7;fill:currentColor" class="ColorScheme-Text" d="M 5,0 A 5,5 0 0 0 0,5 5,5 0 0 0 5,10 5,5 0 0 0 10,5 5,5 0 0 0 5,0 Z M 5,1 A 4,4 0 0 1 9,5 4,4 0 0 1 5,9 4,4 0 0 1 1,5 4,4 0 0 1 5,1 Z"/>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 4,18 V 4 H 18 V 6 H 6 V 18 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 831 B

View file

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" version="1.1">
<defs>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text { color:#dfdfdf; } .ColorScheme-Highlight { color:#4285f4; } .ColorScheme-NeutralText { color:#ff9800; } .ColorScheme-PositiveText { color:#4caf50; } .ColorScheme-NegativeText { color:#f44336; }
</style>
</defs>
<path style="opacity:.35;fill:currentColor" class="ColorScheme-Text" d="M 18,5 A 5,5 0 0 1 13,10 5,5 0 0 1 8,5 5,5 0 0 1 13,0 5,5 0 0 1 18,5 Z"/>
<path style="opacity:0.7;fill:currentColor" class="ColorScheme-Text" d="M 13,0 A 5,5 0 0 0 8,5 5,5 0 0 0 13,10 5,5 0 0 0 18,5 5,5 0 0 0 13,0 Z M 13,1 A 4,4 0 0 1 17,5 4,4 0 0 1 13,9 4,4 0 0 1 9,5 4,4 0 0 1 13,1 Z"/>
<path style="fill:currentColor" class="ColorScheme-Text" d="M 14,18 V 4 H 0 V 6 H 12 V 18 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 841 B

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" class="icon icon-tabler icons-tabler-filled icon-tabler-presentation-analytics"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M21 3a1 1 0 0 1 0 2v9a3 3 0 0 1 -3 3h-5v2h2a1 1 0 0 1 0 2h-6a1 1 0 0 1 0 -2h2v-2h-5a3 3 0 0 1 -3 -3v-9a1 1 0 1 1 0 -2zm-12 4a1 1 0 0 0 -1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0 -1 -1m6 2a1 1 0 0 0 -1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0 -1 -1m-3 1a1 1 0 0 0 -1 1v1a1 1 0 0 0 2 0v-1a1 1 0 0 0 -1 -1" /></svg>

Before

Width:  |  Height:  |  Size: 537 B

View file

@ -490,7 +490,7 @@ impl cosmic::Application for App {
&self.menu_keys,
vec![menu::Item::Button(
"Open Settings",
Some(icon::from_name("settings").symbolic(true).into()),
Some(icon::from_name("preferences-system-symbolic").into()),
MenuAction::OpenSettings,
)],
),
@ -591,8 +591,8 @@ impl cosmic::Application for App {
} else if self.presentation_open {
icon::from_name("window-close-symbolic").scale(3).icon()
} else {
icon::from_path("./res/presentation-analytics.svg".into())
.symbolic(true)
icon::from_name("x-office-presentation-symbolic")
.scale(3)
.icon()
})
.center_y(Length::Fill),
@ -724,8 +724,7 @@ impl cosmic::Application for App {
column![title, subtitle].spacing(space_xxs),
horizontal(),
tooltip(
icon::from_path("./res/plus.svg".into())
.symbolic(true)
icon::from_name("list-add-symbolic")
.apply(button::icon)
.icon_size(space_l)
.on_press(Message::AppendServiceItemKind(
@ -735,8 +734,7 @@ impl cosmic::Application for App {
tooltip::Position::FollowCursor
),
tooltip(
icon::from_name("edit")
.symbolic(true)
icon::from_name("edit-symbolic")
.apply(button::icon)
.icon_size(space_l)
.on_press(Message::OpenEditorKind(item.clone())),
@ -806,9 +804,7 @@ impl cosmic::Application for App {
.select_on_focus(true)
.on_input(Message::SetGeniusToken),
);
let close_button = icon::from_name("dialog-close")
.symbolic(true)
.prefer_svg(true)
let close_button = icon::from_name("window-close-symbolic")
.apply(button::icon)
.class(theme::Button::Icon)
.icon_size(space_xl)

View file

@ -759,7 +759,8 @@ impl<'a> Library {
let library_toolbar = rowm!(
text_input("Search...", ""),
button::icon(icon::from_path("./res/plus.svg".into()).symbolic(true))
button::icon(icon::from_name("list-add-symbolic"))
.icon_size(theme::spacing().space_l)
.on_press(Message::AddItem)
)
.align_y(Vertical::Center);

View file

@ -1489,7 +1489,7 @@ impl SongEditor {
.gap(10);
let bold_button = tooltip(
button::icon(icon::from_name("format-text-bold"))
button::icon(icon::from_name("format-text-bold-symbolic"))
.selected(self.song.as_ref().is_some_and(|song| {
song.font_weight
.is_some_and(|font_weight| font_weight == Weight::Bold)
@ -1499,7 +1499,7 @@ impl SongEditor {
tooltip::Position::Bottom,
);
let italic_button = tooltip(
button::icon(icon::from_name("format-text-italic"))
button::icon(icon::from_name("format-text-italic-symbolic"))
.selected(self.song.as_ref().is_some_and(|song| {
song.font_style
.is_some_and(|font_style| font_style == Style::Italic)
@ -1510,7 +1510,7 @@ impl SongEditor {
);
let underline_button = tooltip(
button::icon(icon::from_name("format-text-underline"))
button::icon(icon::from_name("format-text-underline-symbolic"))
.on_press(Message::None),
"Underline",
tooltip::Position::Bottom,
@ -1672,10 +1672,12 @@ impl SongEditor {
shadow_tools_button = shadow_tools_button.popup(shadow_tools);
}
let text_alignment_popover = popover(tooltip(
button::icon(icon::from_name("align-on-canvas").symbolic(true))
.label("Text Alignment")
.padding(space_s)
.on_press(Message::ToggleAlignmentTools),
button::icon(
icon::from_path("./res/align-on-canvas.svg".into()).symbolic(true),
)
.label("Text Alignment")
.padding(space_s)
.on_press(Message::ToggleAlignmentTools),
"Set where text should be on slide",
tooltip::Position::Bottom,
))
@ -1689,80 +1691,93 @@ impl SongEditor {
.row_spacing(space_s)
.column_spacing(space_s)
.push_with(
button::icon(icon::from_name("boundingbox_top_left"))
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(TextAlignment::TopLeft)),
button::icon(
icon::from_path("./res/boundingbox_top_left.svg".into())
.symbolic(true),
)
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(TextAlignment::TopLeft)),
|a| a.column(0).row(0),
)
.push_with(
button::icon(icon::from_name("boundingbox_top"))
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(
TextAlignment::TopCenter,
)),
button::icon(
icon::from_path("./res/boundingbox_top.svg".into())
.symbolic(true),
)
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(TextAlignment::TopCenter)),
|a| a.column(1).row(0),
)
.push_with(
button::icon(icon::from_name("boundingbox_top_right"))
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(TextAlignment::TopRight)),
button::icon(
icon::from_path("./res/boundingbox_top_right".into())
.symbolic(true),
)
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(TextAlignment::TopRight)),
|a| a.column(2).row(0),
)
.push_with(
button::icon(icon::from_name("boundingbox_left"))
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(
TextAlignment::MiddleLeft,
)),
button::icon(
icon::from_path("./res/boundingbox_left".into())
.symbolic(true),
)
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(TextAlignment::MiddleLeft)),
|a| a.column(0).row(1),
)
.push_with(
button::icon(icon::from_name("boundingbox_center"))
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(
TextAlignment::MiddleCenter,
)),
button::icon(
icon::from_path("./res/boundingbox_center".into())
.symbolic(true),
)
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(TextAlignment::MiddleCenter)),
|a| a.column(1).row(1),
)
.push_with(
button::icon(icon::from_name("boundingbox_right"))
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(
TextAlignment::MiddleRight,
)),
button::icon(
icon::from_path("./res/boundingbox_right".into())
.symbolic(true),
)
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(TextAlignment::MiddleRight)),
|a| a.column(2).row(1),
)
.push_with(
button::icon(icon::from_name("boundingbox_bottom_left"))
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(
TextAlignment::BottomLeft,
)),
button::icon(
icon::from_path("./res/boundingbox_bottom_left".into())
.symbolic(true),
)
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(TextAlignment::BottomLeft)),
|a| a.column(0).row(2),
)
.push_with(
button::icon(icon::from_name("boundingbox_bottom"))
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(
TextAlignment::BottomCenter,
)),
button::icon(
icon::from_path("./res/boundingbox_bottom".into())
.symbolic(true),
)
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(TextAlignment::BottomCenter)),
|a| a.column(1).row(2),
)
.push_with(
button::icon(icon::from_name("boundingbox_bottom_right"))
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(
TextAlignment::BottomRight,
)),
button::icon(
icon::from_path("./res/boundingbox_bottom_right".into())
.symbolic(true),
)
.class(theme::Button::Standard)
.padding(space_s)
.on_press(Message::SetTextAlignment(TextAlignment::BottomRight)),
|a| a.column(2).row(2),
)
.apply(container)