Swapped scrollable for cosmic::scrollable

- Renamed scrollbar to scrollable
This commit is contained in:
Eduardo Flores 2022-10-07 12:00:50 -07:00 committed by Michael Murphy
parent 800ccbb52a
commit 9210179731
4 changed files with 8 additions and 10 deletions

View file

@ -16,5 +16,5 @@ pub use nav::*;
mod toggler;
pub use toggler::*;
mod scrollbar;
pub use scrollbar::*;
mod scrollable;
pub use scrollable::*;

View file

@ -9,7 +9,7 @@ use iced::{
macro_rules! nav_bar {
($($x:expr),+ $(,)?) => (
$crate::iced::widget::Container::new(
$crate::scrollbar!(
$crate::scrollable!(
$crate::iced::widget::row![
$crate::iced::widget::Column::with_children(
vec![$($crate::iced::Element::from($x)),+]

View file

@ -1,5 +1,5 @@
#[macro_export]
macro_rules! scrollbar {
macro_rules! scrollable {
($x:expr) => (
$crate::iced::widget::scrollable($x)
.scrollbar_width(8)