style: add modern icons to torrent context menu items
Some checks failed
Build MIPS Binary / build (push) Failing after 45s
Some checks failed
Build MIPS Binary / build (push) Failing after 45s
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
use leptos::prelude::*;
|
use leptos::prelude::*;
|
||||||
|
use icons::{Play, Square, Trash2};
|
||||||
use crate::components::ui::context_menu::{
|
use crate::components::ui::context_menu::{
|
||||||
ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger,
|
ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger,
|
||||||
};
|
};
|
||||||
@@ -25,15 +26,16 @@ pub fn TorrentContextMenu(
|
|||||||
</ContextMenuTrigger>
|
</ContextMenuTrigger>
|
||||||
<ContextMenuContent class="w-56 p-1.5">
|
<ContextMenuContent class="w-56 p-1.5">
|
||||||
<ContextMenuItem on:click={let h = hash_c1; move |_| on_action_stored.get_value().run(("start".to_string(), h.clone()))}>
|
<ContextMenuItem on:click={let h = hash_c1; move |_| on_action_stored.get_value().run(("start".to_string(), h.clone()))}>
|
||||||
|
<Play class="mr-2 size-4" />
|
||||||
"Başlat"
|
"Başlat"
|
||||||
</ContextMenuItem>
|
</ContextMenuItem>
|
||||||
<ContextMenuItem on:click={let h = hash_c2; move |_| on_action_stored.get_value().run(("stop".to_string(), h.clone()))}>
|
<ContextMenuItem on:click={let h = hash_c2; move |_| on_action_stored.get_value().run(("stop".to_string(), h.clone()))}>
|
||||||
|
<Square class="mr-2 size-4" />
|
||||||
"Durdur"
|
"Durdur"
|
||||||
</ContextMenuItem>
|
</ContextMenuItem>
|
||||||
|
|
||||||
<div class="my-1.5 h-px bg-border/50" />
|
<div class="my-1.5 h-px bg-border/50" />
|
||||||
|
|
||||||
// --- Modern Hold-to-Action Buttons ---
|
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
<ButtonAction
|
<ButtonAction
|
||||||
variant=ButtonVariant::Ghost
|
variant=ButtonVariant::Ghost
|
||||||
@@ -44,6 +46,7 @@ pub fn TorrentContextMenu(
|
|||||||
crate::components::ui::context_menu::close_context_menu();
|
crate::components::ui::context_menu::close_context_menu();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Trash2 class="mr-2 size-4" />
|
||||||
"Sil (Basılı Tut)"
|
"Sil (Basılı Tut)"
|
||||||
</ButtonAction>
|
</ButtonAction>
|
||||||
|
|
||||||
@@ -56,6 +59,7 @@ pub fn TorrentContextMenu(
|
|||||||
crate::components::ui::context_menu::close_context_menu();
|
crate::components::ui::context_menu::close_context_menu();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Trash2 class="mr-2 size-4" />
|
||||||
"Verilerle Sil (Basılı Tut)"
|
"Verilerle Sil (Basılı Tut)"
|
||||||
</ButtonAction>
|
</ButtonAction>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user