[fix]: some more icons
Some checks failed
/ test (push) Waiting to run
/ clippy (push) Has been cancelled

This commit is contained in:
Chris Cochrun 2026-05-01 07:16:27 -05:00
parent c4c869d4a3
commit da5b8d2710
3 changed files with 17 additions and 5 deletions

1
res/circle-plus.svg Normal file
View file

@ -0,0 +1 @@
<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-circle-plus"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4.929 4.929a10 10 0 1 1 14.141 14.141a10 10 0 0 1 -14.14 -14.14m8.071 4.071a1 1 0 1 0 -2 0v2h-2a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 0 1 0 0 -2h-2v-2z" /></svg>

After

Width:  |  Height:  |  Size: 398 B

1
res/search.svg Normal file
View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-search"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" /><path d="M21 21l-6 -6" /></svg>

After

Width:  |  Height:  |  Size: 378 B

View file

@ -447,7 +447,13 @@ impl cosmic::Application for App {
vec![
menu::Item::Button(
"New",
Some(icon::from_name("document-new").symbolic(true).into()),
Some(if cfg!(target_os = "linux") {
icon::from_name("document-new").symbolic(true).into()
} else {
icon::from_path("./res/circle-plus.svg".into())
.symbolic(true)
.into()
}),
MenuAction::New,
),
menu::Item::Button(
@ -520,8 +526,12 @@ impl cosmic::Application for App {
tooltip(
button::custom(
row!(
Container::new(icon::from_name("search").scale(5).symbolic(true))
.center_y(Length::Fill),
Container::new(
icon::from_path("./res/search.svg".into())
.symbolic(true)
.icon()
)
.center_y(Length::Fill),
text::body("Search")
)
.spacing(5),
@ -538,11 +548,11 @@ impl cosmic::Application for App {
Container::new(if self.editor_mode.is_some() {
icon::from_path("./res/presentation-analytics.svg".into())
.symbolic(true)
.apply(icon::icon)
.icon()
} else {
icon::from_path("./res/edit.svg".into())
.symbolic(true)
.apply(icon::icon)
.icon()
})
.center_y(Length::Fill),
text::body(if self.editor_mode.is_some() {