From c3e3c37731e389d858712369e47eec9c205cdfbe Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Fri, 13 Nov 2026 05:01:31 +0700 Subject: [PATCH] icons: add 46 more icon roles --- crates/icons/NOTICE.md | 2 +- crates/icons/assets/arrow-up-down.svg | 16 + crates/icons/assets/calendar.svg | 16 + crates/icons/assets/circle-question-mark.svg | 15 + crates/icons/assets/clipboard-paste.svg | 17 + crates/icons/assets/clock.svg | 14 + crates/icons/assets/download.svg | 15 + crates/icons/assets/ellipsis.svg | 15 + crates/icons/assets/file.svg | 14 + crates/icons/assets/heart.svg | 13 + crates/icons/assets/house.svg | 14 + crates/icons/assets/image.svg | 15 + crates/icons/assets/layout-grid.svg | 16 + crates/icons/assets/link.svg | 14 + crates/icons/assets/list.svg | 18 + crates/icons/assets/lock-open.svg | 14 + crates/icons/assets/lock.svg | 14 + crates/icons/assets/mail.svg | 14 + crates/icons/assets/maximize.svg | 16 + crates/icons/assets/menu.svg | 15 + crates/icons/assets/minimize.svg | 16 + crates/icons/assets/moon.svg | 13 + crates/icons/assets/pause.svg | 14 + crates/icons/assets/pencil.svg | 14 + crates/icons/assets/pin.svg | 14 + crates/icons/assets/play.svg | 13 + crates/icons/assets/printer.svg | 15 + crates/icons/assets/redo-2.svg | 14 + crates/icons/assets/refresh-cw.svg | 16 + crates/icons/assets/save.svg | 15 + crates/icons/assets/scissors.svg | 17 + crates/icons/assets/send.svg | 14 + crates/icons/assets/settings.svg | 14 + crates/icons/assets/share.svg | 15 + crates/icons/assets/star.svg | 13 + crates/icons/assets/sun.svg | 21 ++ crates/icons/assets/text-align-center.svg | 15 + crates/icons/assets/text-align-end.svg | 15 + crates/icons/assets/text-align-start.svg | 15 + crates/icons/assets/trash.svg | 17 + crates/icons/assets/undo-2.svg | 14 + crates/icons/assets/user.svg | 14 + crates/icons/assets/volume-2.svg | 15 + crates/icons/assets/volume-x.svg | 15 + crates/icons/assets/zoom-in.svg | 16 + crates/icons/assets/zoom-out.svg | 15 + crates/icons/src/lib.rs | 350 +++++++++++++++++++ crates/icons/src/segoe.rs | 89 +++-- 48 files changed, 1092 insertions(+), 23 deletions(-) create mode 100644 crates/icons/assets/arrow-up-down.svg create mode 100644 crates/icons/assets/calendar.svg create mode 100644 crates/icons/assets/circle-question-mark.svg create mode 100644 crates/icons/assets/clipboard-paste.svg create mode 100644 crates/icons/assets/clock.svg create mode 100644 crates/icons/assets/download.svg create mode 100644 crates/icons/assets/ellipsis.svg create mode 100644 crates/icons/assets/file.svg create mode 100644 crates/icons/assets/heart.svg create mode 100644 crates/icons/assets/house.svg create mode 100644 crates/icons/assets/image.svg create mode 100644 crates/icons/assets/layout-grid.svg create mode 100644 crates/icons/assets/link.svg create mode 100644 crates/icons/assets/list.svg create mode 100644 crates/icons/assets/lock-open.svg create mode 100644 crates/icons/assets/lock.svg create mode 100644 crates/icons/assets/mail.svg create mode 100644 crates/icons/assets/maximize.svg create mode 100644 crates/icons/assets/menu.svg create mode 100644 crates/icons/assets/minimize.svg create mode 100644 crates/icons/assets/moon.svg create mode 100644 crates/icons/assets/pause.svg create mode 100644 crates/icons/assets/pencil.svg create mode 100644 crates/icons/assets/pin.svg create mode 100644 crates/icons/assets/play.svg create mode 100644 crates/icons/assets/printer.svg create mode 100644 crates/icons/assets/redo-2.svg create mode 100644 crates/icons/assets/refresh-cw.svg create mode 100644 crates/icons/assets/save.svg create mode 100644 crates/icons/assets/scissors.svg create mode 100644 crates/icons/assets/send.svg create mode 100644 crates/icons/assets/settings.svg create mode 100644 crates/icons/assets/share.svg create mode 100644 crates/icons/assets/star.svg create mode 100644 crates/icons/assets/sun.svg create mode 100644 crates/icons/assets/text-align-center.svg create mode 100644 crates/icons/assets/text-align-end.svg create mode 100644 crates/icons/assets/text-align-start.svg create mode 100644 crates/icons/assets/trash.svg create mode 100644 crates/icons/assets/undo-2.svg create mode 100644 crates/icons/assets/user.svg create mode 100644 crates/icons/assets/volume-2.svg create mode 100644 crates/icons/assets/volume-x.svg create mode 100644 crates/icons/assets/zoom-in.svg create mode 100644 crates/icons/assets/zoom-out.svg diff --git a/crates/icons/NOTICE.md b/crates/icons/NOTICE.md index ed1fced..f8466f1 100644 --- a/crates/icons/NOTICE.md +++ b/crates/icons/NOTICE.md @@ -2,7 +2,7 @@ ## Bundled icons (`assets/*.svg`) -Lucide, ISC License, © Lucide Contributors. Fetched from https://github.com/lucide-icons/lucide (main) on 2026-10-28. These are the offline fallback glyphs, see https://lucide.dev/license. +Lucide, ISC License, © Lucide Contributors. Fetched from https://github.com/lucide-icons/lucide (main) on 2026-10-28 and 2026-11-13. These are the offline fallback glyphs, see https://lucide.dev/license. ## Platform glyph sets (not bundled) diff --git a/crates/icons/assets/arrow-up-down.svg b/crates/icons/assets/arrow-up-down.svg new file mode 100644 index 0000000..c8d7f2f --- /dev/null +++ b/crates/icons/assets/arrow-up-down.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/crates/icons/assets/calendar.svg b/crates/icons/assets/calendar.svg new file mode 100644 index 0000000..4679497 --- /dev/null +++ b/crates/icons/assets/calendar.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/crates/icons/assets/circle-question-mark.svg b/crates/icons/assets/circle-question-mark.svg new file mode 100644 index 0000000..1d9c175 --- /dev/null +++ b/crates/icons/assets/circle-question-mark.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/clipboard-paste.svg b/crates/icons/assets/clipboard-paste.svg new file mode 100644 index 0000000..6ac5933 --- /dev/null +++ b/crates/icons/assets/clipboard-paste.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/crates/icons/assets/clock.svg b/crates/icons/assets/clock.svg new file mode 100644 index 0000000..b6ae283 --- /dev/null +++ b/crates/icons/assets/clock.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/download.svg b/crates/icons/assets/download.svg new file mode 100644 index 0000000..5c75527 --- /dev/null +++ b/crates/icons/assets/download.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/ellipsis.svg b/crates/icons/assets/ellipsis.svg new file mode 100644 index 0000000..68456c3 --- /dev/null +++ b/crates/icons/assets/ellipsis.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/file.svg b/crates/icons/assets/file.svg new file mode 100644 index 0000000..161be7a --- /dev/null +++ b/crates/icons/assets/file.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/heart.svg b/crates/icons/assets/heart.svg new file mode 100644 index 0000000..9e0ba06 --- /dev/null +++ b/crates/icons/assets/heart.svg @@ -0,0 +1,13 @@ + + + diff --git a/crates/icons/assets/house.svg b/crates/icons/assets/house.svg new file mode 100644 index 0000000..10e4097 --- /dev/null +++ b/crates/icons/assets/house.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/image.svg b/crates/icons/assets/image.svg new file mode 100644 index 0000000..3241134 --- /dev/null +++ b/crates/icons/assets/image.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/layout-grid.svg b/crates/icons/assets/layout-grid.svg new file mode 100644 index 0000000..f8eca3a --- /dev/null +++ b/crates/icons/assets/layout-grid.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/crates/icons/assets/link.svg b/crates/icons/assets/link.svg new file mode 100644 index 0000000..645e746 --- /dev/null +++ b/crates/icons/assets/link.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/list.svg b/crates/icons/assets/list.svg new file mode 100644 index 0000000..0d88fb1 --- /dev/null +++ b/crates/icons/assets/list.svg @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/crates/icons/assets/lock-open.svg b/crates/icons/assets/lock-open.svg new file mode 100644 index 0000000..b236712 --- /dev/null +++ b/crates/icons/assets/lock-open.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/lock.svg b/crates/icons/assets/lock.svg new file mode 100644 index 0000000..b2b32d1 --- /dev/null +++ b/crates/icons/assets/lock.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/mail.svg b/crates/icons/assets/mail.svg new file mode 100644 index 0000000..4cff729 --- /dev/null +++ b/crates/icons/assets/mail.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/maximize.svg b/crates/icons/assets/maximize.svg new file mode 100644 index 0000000..f78ca32 --- /dev/null +++ b/crates/icons/assets/maximize.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/crates/icons/assets/menu.svg b/crates/icons/assets/menu.svg new file mode 100644 index 0000000..0ec9745 --- /dev/null +++ b/crates/icons/assets/menu.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/minimize.svg b/crates/icons/assets/minimize.svg new file mode 100644 index 0000000..13eb99c --- /dev/null +++ b/crates/icons/assets/minimize.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/crates/icons/assets/moon.svg b/crates/icons/assets/moon.svg new file mode 100644 index 0000000..3c4bc31 --- /dev/null +++ b/crates/icons/assets/moon.svg @@ -0,0 +1,13 @@ + + + diff --git a/crates/icons/assets/pause.svg b/crates/icons/assets/pause.svg new file mode 100644 index 0000000..ea5762f --- /dev/null +++ b/crates/icons/assets/pause.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/pencil.svg b/crates/icons/assets/pencil.svg new file mode 100644 index 0000000..7384498 --- /dev/null +++ b/crates/icons/assets/pencil.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/pin.svg b/crates/icons/assets/pin.svg new file mode 100644 index 0000000..04bc7cb --- /dev/null +++ b/crates/icons/assets/pin.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/play.svg b/crates/icons/assets/play.svg new file mode 100644 index 0000000..199743e --- /dev/null +++ b/crates/icons/assets/play.svg @@ -0,0 +1,13 @@ + + + diff --git a/crates/icons/assets/printer.svg b/crates/icons/assets/printer.svg new file mode 100644 index 0000000..dfa0a60 --- /dev/null +++ b/crates/icons/assets/printer.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/redo-2.svg b/crates/icons/assets/redo-2.svg new file mode 100644 index 0000000..72371c8 --- /dev/null +++ b/crates/icons/assets/redo-2.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/refresh-cw.svg b/crates/icons/assets/refresh-cw.svg new file mode 100644 index 0000000..c27b3a9 --- /dev/null +++ b/crates/icons/assets/refresh-cw.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/crates/icons/assets/save.svg b/crates/icons/assets/save.svg new file mode 100644 index 0000000..07af070 --- /dev/null +++ b/crates/icons/assets/save.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/scissors.svg b/crates/icons/assets/scissors.svg new file mode 100644 index 0000000..f87bf20 --- /dev/null +++ b/crates/icons/assets/scissors.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/crates/icons/assets/send.svg b/crates/icons/assets/send.svg new file mode 100644 index 0000000..001843b --- /dev/null +++ b/crates/icons/assets/send.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/settings.svg b/crates/icons/assets/settings.svg new file mode 100644 index 0000000..4c6263a --- /dev/null +++ b/crates/icons/assets/settings.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/share.svg b/crates/icons/assets/share.svg new file mode 100644 index 0000000..9165e1c --- /dev/null +++ b/crates/icons/assets/share.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/star.svg b/crates/icons/assets/star.svg new file mode 100644 index 0000000..b35bedd --- /dev/null +++ b/crates/icons/assets/star.svg @@ -0,0 +1,13 @@ + + + diff --git a/crates/icons/assets/sun.svg b/crates/icons/assets/sun.svg new file mode 100644 index 0000000..3ecadd6 --- /dev/null +++ b/crates/icons/assets/sun.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + diff --git a/crates/icons/assets/text-align-center.svg b/crates/icons/assets/text-align-center.svg new file mode 100644 index 0000000..a7b6d53 --- /dev/null +++ b/crates/icons/assets/text-align-center.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/text-align-end.svg b/crates/icons/assets/text-align-end.svg new file mode 100644 index 0000000..fba40f3 --- /dev/null +++ b/crates/icons/assets/text-align-end.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/text-align-start.svg b/crates/icons/assets/text-align-start.svg new file mode 100644 index 0000000..703d455 --- /dev/null +++ b/crates/icons/assets/text-align-start.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/trash.svg b/crates/icons/assets/trash.svg new file mode 100644 index 0000000..e8cb0ed --- /dev/null +++ b/crates/icons/assets/trash.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/crates/icons/assets/undo-2.svg b/crates/icons/assets/undo-2.svg new file mode 100644 index 0000000..3e93594 --- /dev/null +++ b/crates/icons/assets/undo-2.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/user.svg b/crates/icons/assets/user.svg new file mode 100644 index 0000000..8e61592 --- /dev/null +++ b/crates/icons/assets/user.svg @@ -0,0 +1,14 @@ + + + + diff --git a/crates/icons/assets/volume-2.svg b/crates/icons/assets/volume-2.svg new file mode 100644 index 0000000..519e6cb --- /dev/null +++ b/crates/icons/assets/volume-2.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/volume-x.svg b/crates/icons/assets/volume-x.svg new file mode 100644 index 0000000..3e26009 --- /dev/null +++ b/crates/icons/assets/volume-x.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/assets/zoom-in.svg b/crates/icons/assets/zoom-in.svg new file mode 100644 index 0000000..11173c0 --- /dev/null +++ b/crates/icons/assets/zoom-in.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/crates/icons/assets/zoom-out.svg b/crates/icons/assets/zoom-out.svg new file mode 100644 index 0000000..70abec4 --- /dev/null +++ b/crates/icons/assets/zoom-out.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/crates/icons/src/lib.rs b/crates/icons/src/lib.rs index 8e088e1..d2930ea 100644 --- a/crates/icons/src/lib.rs +++ b/crates/icons/src/lib.rs @@ -43,6 +43,51 @@ pub enum IconRole { Loader, Microphone, Stop, + Settings, + Refresh, + Undo, + Redo, + ZoomIn, + ZoomOut, + Trash, + Edit, + Save, + Download, + Share, + Send, + Print, + EnterFullScreen, + ExitFullScreen, + Cut, + Paste, + Sort, + Home, + Menu, + More, + Grid, + List, + File, + Image, + Calendar, + Clock, + User, + Lock, + Unlock, + Star, + Heart, + Pin, + Mail, + Link, + Play, + Pause, + Help, + Volume, + VolumeMuted, + AlignLeft, + AlignCenter, + AlignRight, + Sun, + Moon, } impl IconRole { @@ -71,6 +116,51 @@ impl IconRole { Self::Loader, Self::Microphone, Self::Stop, + Self::Settings, + Self::Refresh, + Self::Undo, + Self::Redo, + Self::ZoomIn, + Self::ZoomOut, + Self::Trash, + Self::Edit, + Self::Save, + Self::Download, + Self::Share, + Self::Send, + Self::Print, + Self::EnterFullScreen, + Self::ExitFullScreen, + Self::Cut, + Self::Paste, + Self::Sort, + Self::Home, + Self::Menu, + Self::More, + Self::Grid, + Self::List, + Self::File, + Self::Image, + Self::Calendar, + Self::Clock, + Self::User, + Self::Lock, + Self::Unlock, + Self::Star, + Self::Heart, + Self::Pin, + Self::Mail, + Self::Link, + Self::Play, + Self::Pause, + Self::Help, + Self::Volume, + Self::VolumeMuted, + Self::AlignLeft, + Self::AlignCenter, + Self::AlignRight, + Self::Sun, + Self::Moon, ] } @@ -99,6 +189,51 @@ impl IconRole { Self::Loader => "icons/loader.svg", Self::Microphone => "icons/mic.svg", Self::Stop => "icons/square.svg", + Self::Settings => "icons/settings.svg", + Self::Refresh => "icons/refresh-cw.svg", + Self::Undo => "icons/undo-2.svg", + Self::Redo => "icons/redo-2.svg", + Self::ZoomIn => "icons/zoom-in.svg", + Self::ZoomOut => "icons/zoom-out.svg", + Self::Trash => "icons/trash.svg", + Self::Edit => "icons/pencil.svg", + Self::Save => "icons/save.svg", + Self::Download => "icons/download.svg", + Self::Share => "icons/share.svg", + Self::Send => "icons/send.svg", + Self::Print => "icons/printer.svg", + Self::EnterFullScreen => "icons/maximize.svg", + Self::ExitFullScreen => "icons/minimize.svg", + Self::Cut => "icons/scissors.svg", + Self::Paste => "icons/clipboard-paste.svg", + Self::Sort => "icons/arrow-up-down.svg", + Self::Home => "icons/house.svg", + Self::Menu => "icons/menu.svg", + Self::More => "icons/ellipsis.svg", + Self::Grid => "icons/layout-grid.svg", + Self::List => "icons/list.svg", + Self::File => "icons/file.svg", + Self::Image => "icons/image.svg", + Self::Calendar => "icons/calendar.svg", + Self::Clock => "icons/clock.svg", + Self::User => "icons/user.svg", + Self::Lock => "icons/lock.svg", + Self::Unlock => "icons/lock-open.svg", + Self::Star => "icons/star.svg", + Self::Heart => "icons/heart.svg", + Self::Pin => "icons/pin.svg", + Self::Mail => "icons/mail.svg", + Self::Link => "icons/link.svg", + Self::Play => "icons/play.svg", + Self::Pause => "icons/pause.svg", + Self::Help => "icons/circle-question-mark.svg", + Self::Volume => "icons/volume-2.svg", + Self::VolumeMuted => "icons/volume-x.svg", + Self::AlignLeft => "icons/text-align-start.svg", + Self::AlignCenter => "icons/text-align-center.svg", + Self::AlignRight => "icons/text-align-end.svg", + Self::Sun => "icons/sun.svg", + Self::Moon => "icons/moon.svg", } } @@ -128,6 +263,51 @@ impl IconRole { Self::Loader => "loader", Self::Microphone => "microphone", Self::Stop => "stop", + Self::Settings => "settings", + Self::Refresh => "refresh", + Self::Undo => "undo", + Self::Redo => "redo", + Self::ZoomIn => "zoom-in", + Self::ZoomOut => "zoom-out", + Self::Trash => "trash", + Self::Edit => "edit", + Self::Save => "save", + Self::Download => "download", + Self::Share => "share", + Self::Send => "send", + Self::Print => "print", + Self::EnterFullScreen => "enter-full-screen", + Self::ExitFullScreen => "exit-full-screen", + Self::Cut => "cut", + Self::Paste => "paste", + Self::Sort => "sort", + Self::Home => "home", + Self::Menu => "menu", + Self::More => "more", + Self::Grid => "grid", + Self::List => "list", + Self::File => "file", + Self::Image => "image", + Self::Calendar => "calendar", + Self::Clock => "clock", + Self::User => "user", + Self::Lock => "lock", + Self::Unlock => "unlock", + Self::Star => "star", + Self::Heart => "heart", + Self::Pin => "pin", + Self::Mail => "mail", + Self::Link => "link", + Self::Play => "play", + Self::Pause => "pause", + Self::Help => "help", + Self::Volume => "volume", + Self::VolumeMuted => "volume-muted", + Self::AlignLeft => "align-left", + Self::AlignCenter => "align-center", + Self::AlignRight => "align-right", + Self::Sun => "sun", + Self::Moon => "moon", } } @@ -206,6 +386,129 @@ impl IconRole { Self::Loader => &["process-working-symbolic", "process-working"], Self::Microphone => &["audio-input-microphone-symbolic", "audio-input-microphone"], Self::Stop => &["process-stop-symbolic", "process-stop"], + Self::Settings => &[ + "applications-system-symbolic", + "settings-symbolic", + "preferences-system-symbolic", + "system-run-symbolic", + ], + Self::Refresh => &["view-refresh-symbolic", "view-refresh"], + Self::Undo => &["edit-undo-symbolic", "edit-undo"], + Self::Redo => &["edit-redo-symbolic", "edit-redo"], + Self::ZoomIn => &["zoom-in-symbolic", "zoom-in"], + Self::ZoomOut => &["zoom-out-symbolic", "zoom-out"], + Self::Trash => &[ + "user-trash-symbolic", + "edit-delete-symbolic", + "user-trash", + "edit-delete", + ], + Self::Edit => &["document-edit-symbolic", "document-edit"], + Self::Save => &["document-save-symbolic", "document-save"], + Self::Download => &["folder-download-symbolic", "folder-download"], + Self::Share => &[ + "send-to-symbolic", + "emblem-shared-symbolic", + "emblem-shared", + ], + Self::Send => &["document-send-symbolic", "document-send"], + Self::Print => &[ + "printer-symbolic", + "document-print-symbolic", + "printer", + "document-print", + ], + Self::EnterFullScreen => &["view-fullscreen-symbolic", "view-fullscreen"], + Self::ExitFullScreen => &["view-restore-symbolic", "view-restore"], + Self::Cut => &["edit-cut-symbolic", "edit-cut"], + Self::Paste => &["edit-paste-symbolic", "edit-paste"], + Self::Sort => &[ + "view-sort-ascending-symbolic", + "view-sort-descending-symbolic", + "view-sort-ascending", + "view-sort-descending", + ], + Self::Home => &[ + "user-home-symbolic", + "go-home-symbolic", + "user-home", + "go-home", + ], + Self::Menu => &["open-menu-symbolic", "open-menu"], + Self::More => &[ + "view-more-horizontal-symbolic", + "view-more-symbolic", + "view-more-horizontal", + "view-more", + ], + Self::Grid => &["view-grid-symbolic", "view-app-grid-symbolic", "view-grid"], + Self::List => &[ + "view-list-symbolic", + "view-list-bullet-symbolic", + "view-list", + "view-list-bullet", + ], + Self::File => &[ + "text-x-generic-symbolic", + "text-x-generic", + "x-office-document-symbolic", + "x-office-document", + ], + Self::Image => &[ + "image-x-generic-symbolic", + "insert-image-symbolic", + "image-x-generic", + "insert-image", + ], + Self::Calendar => &["x-office-calendar-symbolic", "x-office-calendar"], + Self::Clock => &[ + "document-open-recent-symbolic", + "alarm-symbolic", + "clock-symbolic", + "document-open-recent", + ], + Self::User => &["avatar-default-symbolic", "avatar-default"], + Self::Lock => &[ + "changes-prevent-symbolic", + "changes-prevent", + "system-lock-screen-symbolic", + "system-lock-screen", + ], + Self::Unlock => &["changes-allow-symbolic", "changes-allow"], + Self::Star => &[ + "non-starred-symbolic", + "non-starred", + "starred-symbolic", + "starred", + ], + Self::Heart => &["emote-love-symbolic", "emote-love"], + Self::Pin => &["view-pin-symbolic", "view-pin"], + Self::Mail => &[ + "mail-unread-symbolic", + "mail-message-new-symbolic", + "mail-unread", + "mail-message-new", + ], + Self::Link => &["insert-link-symbolic", "insert-link"], + Self::Play => &["media-playback-start-symbolic", "media-playback-start"], + Self::Pause => &["media-playback-pause-symbolic", "media-playback-pause"], + Self::Help => &[ + "dialog-question-symbolic", + "system-help-symbolic", + "dialog-question", + "system-help", + ], + Self::Volume => &["audio-volume-high-symbolic", "audio-volume-high"], + Self::VolumeMuted => &["audio-volume-muted-symbolic", "audio-volume-muted"], + Self::AlignLeft => &["format-justify-left-symbolic", "format-justify-left"], + Self::AlignCenter => &["format-justify-center-symbolic", "format-justify-center"], + Self::AlignRight => &["format-justify-right-symbolic", "format-justify-right"], + Self::Sun => &[ + "weather-clear-symbolic", + "display-brightness-symbolic", + "weather-clear", + ], + Self::Moon => &["weather-clear-night-symbolic", "weather-clear-night"], } } } @@ -417,6 +720,53 @@ fn asset_bytes(path: &str) -> Option<&'static [u8]> { "icons/panel-right.svg" => Some(include_bytes!("../assets/panel-right.svg")), "icons/loader.svg" => Some(include_bytes!("../assets/loader.svg")), "icons/mic.svg" => Some(include_bytes!("../assets/mic.svg")), + "icons/settings.svg" => Some(include_bytes!("../assets/settings.svg")), + "icons/refresh-cw.svg" => Some(include_bytes!("../assets/refresh-cw.svg")), + "icons/undo-2.svg" => Some(include_bytes!("../assets/undo-2.svg")), + "icons/redo-2.svg" => Some(include_bytes!("../assets/redo-2.svg")), + "icons/zoom-in.svg" => Some(include_bytes!("../assets/zoom-in.svg")), + "icons/zoom-out.svg" => Some(include_bytes!("../assets/zoom-out.svg")), + "icons/trash.svg" => Some(include_bytes!("../assets/trash.svg")), + "icons/pencil.svg" => Some(include_bytes!("../assets/pencil.svg")), + "icons/save.svg" => Some(include_bytes!("../assets/save.svg")), + "icons/download.svg" => Some(include_bytes!("../assets/download.svg")), + "icons/share.svg" => Some(include_bytes!("../assets/share.svg")), + "icons/send.svg" => Some(include_bytes!("../assets/send.svg")), + "icons/printer.svg" => Some(include_bytes!("../assets/printer.svg")), + "icons/maximize.svg" => Some(include_bytes!("../assets/maximize.svg")), + "icons/minimize.svg" => Some(include_bytes!("../assets/minimize.svg")), + "icons/scissors.svg" => Some(include_bytes!("../assets/scissors.svg")), + "icons/clipboard-paste.svg" => Some(include_bytes!("../assets/clipboard-paste.svg")), + "icons/arrow-up-down.svg" => Some(include_bytes!("../assets/arrow-up-down.svg")), + "icons/house.svg" => Some(include_bytes!("../assets/house.svg")), + "icons/menu.svg" => Some(include_bytes!("../assets/menu.svg")), + "icons/ellipsis.svg" => Some(include_bytes!("../assets/ellipsis.svg")), + "icons/layout-grid.svg" => Some(include_bytes!("../assets/layout-grid.svg")), + "icons/list.svg" => Some(include_bytes!("../assets/list.svg")), + "icons/file.svg" => Some(include_bytes!("../assets/file.svg")), + "icons/image.svg" => Some(include_bytes!("../assets/image.svg")), + "icons/calendar.svg" => Some(include_bytes!("../assets/calendar.svg")), + "icons/clock.svg" => Some(include_bytes!("../assets/clock.svg")), + "icons/user.svg" => Some(include_bytes!("../assets/user.svg")), + "icons/lock.svg" => Some(include_bytes!("../assets/lock.svg")), + "icons/lock-open.svg" => Some(include_bytes!("../assets/lock-open.svg")), + "icons/star.svg" => Some(include_bytes!("../assets/star.svg")), + "icons/heart.svg" => Some(include_bytes!("../assets/heart.svg")), + "icons/pin.svg" => Some(include_bytes!("../assets/pin.svg")), + "icons/mail.svg" => Some(include_bytes!("../assets/mail.svg")), + "icons/link.svg" => Some(include_bytes!("../assets/link.svg")), + "icons/play.svg" => Some(include_bytes!("../assets/play.svg")), + "icons/pause.svg" => Some(include_bytes!("../assets/pause.svg")), + "icons/circle-question-mark.svg" => { + Some(include_bytes!("../assets/circle-question-mark.svg")) + } + "icons/volume-2.svg" => Some(include_bytes!("../assets/volume-2.svg")), + "icons/volume-x.svg" => Some(include_bytes!("../assets/volume-x.svg")), + "icons/text-align-start.svg" => Some(include_bytes!("../assets/text-align-start.svg")), + "icons/text-align-center.svg" => Some(include_bytes!("../assets/text-align-center.svg")), + "icons/text-align-end.svg" => Some(include_bytes!("../assets/text-align-end.svg")), + "icons/sun.svg" => Some(include_bytes!("../assets/sun.svg")), + "icons/moon.svg" => Some(include_bytes!("../assets/moon.svg")), _ => None, } } diff --git a/crates/icons/src/segoe.rs b/crates/icons/src/segoe.rs index a3ad5fd..0dc576e 100644 --- a/crates/icons/src/segoe.rs +++ b/crates/icons/src/segoe.rs @@ -6,28 +6,73 @@ use crate::IconRole; /// The Segoe Fluent Icons glyph for the role. pub(crate) fn glyph(role: IconRole) -> Option<&'static str> { let glyph = match role { - IconRole::Check => "\u{E73E}", // CheckMark - IconRole::Close => "\u{E8BB}", // ChromeClose - IconRole::ChevronDown => "\u{E70D}", // ChevronDown - IconRole::ChevronLeft => "\u{E76B}", // ChevronLeft - IconRole::ChevronRight => "\u{E76C}", // ChevronRight - IconRole::ChevronUp => "\u{E70E}", // ChevronUp - IconRole::Plus => "\u{E710}", // Add - IconRole::Minus => "\u{E738}", // Remove - IconRole::Search => "\u{E721}", // Search - IconRole::Folder => "\u{E8B7}", // Folder - IconRole::Warning => "\u{E7BA}", // Warning - IconRole::Info => "\u{E946}", // Info - IconRole::Copy => "\u{E8C8}", // Copy - IconRole::Eye => "\u{E7B3}", // RedEye - IconRole::EyeOff => "\u{ED1A}", // Hide - IconRole::PanelLeft => "\u{E90C}", // DockLeft - IconRole::PanelRight => "\u{E90D}", // DockRight - IconRole::WindowMinimize => "\u{E921}", // ChromeMinimize - IconRole::WindowMaximize => "\u{E922}", // ChromeMaximize - IconRole::WindowRestore => "\u{E923}", // ChromeRestore - IconRole::Microphone => "\u{E720}", // Microphone - IconRole::Stop => "\u{E71A}", // Stop + IconRole::Check => "\u{E73E}", // CheckMark + IconRole::Close => "\u{E8BB}", // ChromeClose + IconRole::ChevronDown => "\u{E70D}", // ChevronDown + IconRole::ChevronLeft => "\u{E76B}", // ChevronLeft + IconRole::ChevronRight => "\u{E76C}", // ChevronRight + IconRole::ChevronUp => "\u{E70E}", // ChevronUp + IconRole::Plus => "\u{E710}", // Add + IconRole::Minus => "\u{E738}", // Remove + IconRole::Search => "\u{E721}", // Search + IconRole::Folder => "\u{E8B7}", // Folder + IconRole::Warning => "\u{E7BA}", // Warning + IconRole::Info => "\u{E946}", // Info + IconRole::Copy => "\u{E8C8}", // Copy + IconRole::Eye => "\u{E7B3}", // RedEye + IconRole::EyeOff => "\u{ED1A}", // Hide + IconRole::PanelLeft => "\u{E90C}", // DockLeft + IconRole::PanelRight => "\u{E90D}", // DockRight + IconRole::WindowMinimize => "\u{E921}", // ChromeMinimize + IconRole::WindowMaximize => "\u{E922}", // ChromeMaximize + IconRole::WindowRestore => "\u{E923}", // ChromeRestore + IconRole::Microphone => "\u{E720}", // Microphone + IconRole::Stop => "\u{E71A}", // Stop + IconRole::Settings => "\u{E713}", // Settings + IconRole::Refresh => "\u{E72C}", // Refresh + IconRole::Undo => "\u{E7A7}", // Undo + IconRole::Redo => "\u{E7A6}", // Redo + IconRole::ZoomIn => "\u{E8A3}", // ZoomIn + IconRole::ZoomOut => "\u{E71F}", // ZoomOut + IconRole::Trash => "\u{E74D}", // Delete + IconRole::Edit => "\u{E70F}", // Edit + IconRole::Save => "\u{E74E}", // Save + IconRole::Download => "\u{E896}", // Download + IconRole::Share => "\u{E72D}", // Share + IconRole::Send => "\u{E724}", // Send + IconRole::Print => "\u{E749}", // Print + IconRole::EnterFullScreen => "\u{E740}", // FullScreen + IconRole::ExitFullScreen => "\u{E73F}", // BackToWindow + IconRole::Cut => "\u{E8C6}", // Cut + IconRole::Paste => "\u{E77F}", // Paste + IconRole::Sort => "\u{E8CB}", // Sort + IconRole::Home => "\u{E80F}", // Home + IconRole::Menu => "\u{E700}", // GlobalNavButton + IconRole::More => "\u{E712}", // More + IconRole::Grid => "\u{ECA5}", // Tiles + IconRole::List => "\u{EA37}", // List + IconRole::File => "\u{E8A5}", // Document + IconRole::Image => "\u{E8B9}", // Picture + IconRole::Calendar => "\u{E787}", // Calendar + IconRole::Clock => "\u{E917}", // Clock + IconRole::User => "\u{E77B}", // Contact + IconRole::Lock => "\u{E72E}", // Lock + IconRole::Unlock => "\u{E785}", // Unlock + IconRole::Star => "\u{E734}", // FavoriteStar + IconRole::Heart => "\u{EB51}", // Heart + IconRole::Pin => "\u{E718}", // Pin + IconRole::Mail => "\u{E715}", // Mail + IconRole::Link => "\u{E71B}", // Link + IconRole::Play => "\u{E768}", // Play + IconRole::Pause => "\u{E769}", // Pause + IconRole::Help => "\u{E897}", // Help + IconRole::Volume => "\u{E767}", // Volume + IconRole::VolumeMuted => "\u{E74F}", // Mute + IconRole::AlignLeft => "\u{E8E4}", // AlignLeft + IconRole::AlignCenter => "\u{E8E3}", // AlignCenter + IconRole::AlignRight => "\u{E8E2}", // AlignRight + IconRole::Sun => "\u{E706}", // Brightness + IconRole::Moon => "\u{E708}", // QuietHours // No Segoe spinner glyph, the icon falls back to the bundled SVG. IconRole::Loader => return None, };