feat: add clipboard button component
This commit is contained in:
@@ -27,6 +27,7 @@ pub enum IconRole {
|
||||
Folder,
|
||||
Warning,
|
||||
Info,
|
||||
Copy,
|
||||
Eye,
|
||||
EyeOff,
|
||||
PanelLeft,
|
||||
@@ -52,6 +53,7 @@ impl IconRole {
|
||||
Self::Folder,
|
||||
Self::Warning,
|
||||
Self::Info,
|
||||
Self::Copy,
|
||||
Self::Eye,
|
||||
Self::EyeOff,
|
||||
Self::PanelLeft,
|
||||
@@ -77,6 +79,7 @@ impl IconRole {
|
||||
Self::Folder => "icons/folder.svg",
|
||||
Self::Warning => "icons/triangle-alert.svg",
|
||||
Self::Info => "icons/info.svg",
|
||||
Self::Copy => "icons/copy.svg",
|
||||
Self::Eye => "icons/eye.svg",
|
||||
Self::EyeOff => "icons/eye-off.svg",
|
||||
Self::PanelLeft => "icons/panel-left.svg",
|
||||
@@ -102,6 +105,7 @@ impl IconRole {
|
||||
Self::Folder => "folder",
|
||||
Self::Warning => "warning",
|
||||
Self::Info => "info",
|
||||
Self::Copy => "copy",
|
||||
Self::Eye => "eye",
|
||||
Self::EyeOff => "eye-off",
|
||||
Self::PanelLeft => "panel-left",
|
||||
@@ -160,6 +164,7 @@ impl IconRole {
|
||||
Self::Folder => &["folder-symbolic", "folder"],
|
||||
Self::Warning => &["dialog-warning-symbolic", "dialog-warning", "warning"],
|
||||
Self::Info => &["dialog-information-symbolic", "dialog-information", "info"],
|
||||
Self::Copy => &["edit-copy-symbolic", "edit-copy"],
|
||||
Self::Eye => &["view-visible-symbolic", "view-visible", "visibility", "eye"],
|
||||
Self::EyeOff => &[
|
||||
"view-conceal-symbolic",
|
||||
|
||||
@@ -21,6 +21,7 @@ pub(crate) fn glyph(role: IconRole) -> Option<char> {
|
||||
IconRole::Folder => 0xE8B7, // Folder
|
||||
IconRole::Warning => 0xE7BA, // Warning
|
||||
IconRole::Info => 0xE946, // Info
|
||||
IconRole::Copy => 0xE8C8, // Copy
|
||||
IconRole::Eye => 0xE7B3, // RedEye
|
||||
IconRole::EyeOff => 0xED1A, // Hide
|
||||
IconRole::PanelLeft => 0xE90C, // DockLeft
|
||||
|
||||
Reference in New Issue
Block a user