Going to possibly build our own custom nav_bar
This commit is contained in:
parent
9031d15678
commit
4f3d5e560c
|
@ -7,6 +7,7 @@ use cosmic::iced_core::SmolStr;
|
||||||
use cosmic::iced_widget::{column, row, stack};
|
use cosmic::iced_widget::{column, row, stack};
|
||||||
use cosmic::prelude::ElementExt;
|
use cosmic::prelude::ElementExt;
|
||||||
use cosmic::prelude::*;
|
use cosmic::prelude::*;
|
||||||
|
use cosmic::widget::aspect_ratio::aspect_ratio_container;
|
||||||
use cosmic::widget::tooltip::Position as TPosition;
|
use cosmic::widget::tooltip::Position as TPosition;
|
||||||
use cosmic::widget::{
|
use cosmic::widget::{
|
||||||
button, image, nav_bar, text, tooltip, Responsive, Space,
|
button, image, nav_bar, text, tooltip, Responsive, Space,
|
||||||
|
@ -182,6 +183,12 @@ impl cosmic::Application for App {
|
||||||
Some(&self.nav_model)
|
Some(&self.nav_model)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn nav_bar(
|
||||||
|
&self,
|
||||||
|
) -> Option<Element<cosmic::app::Message<Message>>> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
|
||||||
/// Called when a navigation item is selected.
|
/// Called when a navigation item is selected.
|
||||||
fn on_nav_select(
|
fn on_nav_select(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|
Loading…
Reference in a new issue