[fix]: use our own icons
Some checks failed
/ clippy (push) Failing after 6m16s
/ test (push) Has been cancelled

This commit is contained in:
Chris Cochrun 2026-04-30 14:49:00 -05:00
parent 7b8fe9cacb
commit ae7b752996
3 changed files with 15 additions and 2 deletions

1
res/caret-left.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-caret-left"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M13.883 5.007l.058 -.005h.118l.058 .005l.06 .009l.052 .01l.108 .032l.067 .027l.132 .07l.09 .065l.081 .073l.083 .094l.054 .077l.054 .096l.017 .036l.027 .067l.032 .108l.01 .053l.01 .06l.004 .057l.002 .059v12c0 .852 -.986 1.297 -1.623 .783l-.084 -.076l-6 -6a1 1 0 0 1 -.083 -1.32l.083 -.094l6 -6l.094 -.083l.077 -.054l.096 -.054l.036 -.017l.067 -.027l.108 -.032l.053 -.01l.06 -.01z" /></svg>

After

Width:  |  Height:  |  Size: 620 B

1
res/caret-right.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-caret-right"><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M9 6c0 -.852 .986 -1.297 1.623 -.783l.084 .076l6 6a1 1 0 0 1 .083 1.32l-.083 .094l-6 6l-.094 .083l-.077 .054l-.096 .054l-.036 .017l-.067 .027l-.108 .032l-.053 .01l-.06 .01l-.057 .004l-.059 .002l-.059 -.002l-.058 -.005l-.06 -.009l-.052 -.01l-.108 -.032l-.067 -.027l-.132 -.07l-.09 -.065l-.081 -.073l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057l-.002 -12.059z" /></svg>

After

Width:  |  Height:  |  Size: 660 B

View file

@ -1631,18 +1631,29 @@ impl cosmic::Application for App {
space_xl,
..
} = cosmic::theme::spacing();
let icon_left = icon::from_name("arrow-left").fallback(Some(
let icon_left_named = icon::from_name("arrow-left").fallback(Some(
icon::IconFallback::Names(vec![
"go-previous-symbolic".into(),
"go-previous".into(),
"previous".into(),
]),
));
let icon_right =
let icon_left = if icon_left_named.clone().path().is_none() {
icon::from_path("./res/caret-left.svg".into())
} else {
icon_left_named.handle()
};
let icon_right_named =
icon::from_name("arrow-right").fallback(Some(icon::IconFallback::Names(
vec!["go-next-symbolic".into(), "go-next".into(), "next".into()],
)));
let icon_right = if icon_right_named.clone().path().is_none() {
icon::from_path("./res/caret-right.svg".into())
} else {
icon_right_named.handle()
};
let video_range = self
.presenter
.preview_video