draft pin tab feature

This commit is contained in:
yggverse 2024-09-23 15:44:33 +03:00
parent 4b78ccb779
commit f2427c453e
8 changed files with 64 additions and 20 deletions

View file

@ -15,14 +15,18 @@ impl Tab {
}
// Actions
pub fn append(&self, current: bool) -> u32 {
pub fn append(&self, is_active: bool) -> u32 {
self.widget.append(
label::Label::new().widget().container(),
label::Label::new(false).widget().container(),
page::Page::new().widget().container(),
current,
is_active,
)
}
pub fn pin(&self) -> bool {
false // @TODO
}
// Getters
pub fn widget(&self) -> &widget::Tab {
&self.widget