chore(examples): fix build

This commit is contained in:
Michael Aaron Murphy 2024-02-26 16:26:50 +01:00 committed by Michael Murphy
parent ff9438c5ba
commit c7093b67f6
2 changed files with 28 additions and 28 deletions

View file

@ -1,6 +1,6 @@
use cosmic::iced::widget::{horizontal_space, row};
use cosmic::iced::{Alignment, Length};
use cosmic::widget::{button, icon, segmented_button, view_switcher};
use cosmic::widget::{button, icon, segmented_button, tab_bar};
use cosmic::{Apply, Element};
use slotmap::Key;
@ -60,7 +60,7 @@ impl State {
}
pub(super) fn view<'a>(&'a self, _window: &'a super::Window) -> Element<'a, Message> {
let tabs = view_switcher::horizontal(&self.pages)
let tabs = tab_bar::horizontal(&self.pages)
.show_close_icon_on_hover(true)
.on_activate(Message::Activate)
.on_close(Message::Close)