wip: Various refactorings and improvements
This commit is contained in:
parent
702ea033af
commit
37f978d1b3
33 changed files with 744 additions and 1229 deletions
|
|
@ -1,8 +1,11 @@
|
|||
#[macro_export]
|
||||
macro_rules! scrollable {
|
||||
($x:expr) => {
|
||||
$crate::iced::widget::scrollable($x)
|
||||
.scrollbar_width(8)
|
||||
.scroller_width(8)
|
||||
};
|
||||
}
|
||||
// Copyright 2022 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use crate::{Element, Renderer};
|
||||
use iced::widget;
|
||||
|
||||
pub fn scrollable<'a, Message>(element: impl Into<Element<'a, Message>>) -> widget::Scrollable<'a, Message, Renderer> {
|
||||
widget::scrollable(element)
|
||||
.scrollbar_width(8)
|
||||
.scroller_width(8)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue