Added category context menus
This commit is contained in:
parent
343bff9e9a
commit
7c2f2de4c4
2 changed files with 4 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ use cosmic::widget::table;
|
|||
use cosmic::widget::{self, nav_bar};
|
||||
use cosmic::{executor, iced};
|
||||
|
||||
#[derive(Debug, Default, PartialEq, Eq, Clone, Copy)]
|
||||
#[derive(Debug, Default, PartialEq, Eq, Clone, Copy, Hash)]
|
||||
pub enum Category {
|
||||
#[default]
|
||||
Name,
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ where
|
|||
..
|
||||
} = theme::active().cosmic().spacing;
|
||||
|
||||
Self {
|
||||
let mut result = Self {
|
||||
model,
|
||||
|
||||
element_padding: Padding::from(0),
|
||||
|
|
@ -291,6 +291,8 @@ where
|
|||
on_category_mb_right: None,
|
||||
category_context_builder: Box::new(|_| None),
|
||||
}
|
||||
|
||||
result
|
||||
}
|
||||
|
||||
pub fn on_item_left_click<F>(mut self, on_click: F) -> Self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue