Fixed sidebar responsiveness

- Created new widget `scrollbar` which can adopt COSMIC styling.
- Increased sidebar icon size by 4 pixels to improve visibility.
- Added padding inside the navigation bar to prevent collision with the scrollbar.
- Increased the max width of the condensed navbar for the scrollbar.
This commit is contained in:
Eduardo Flores 2022-09-30 18:43:32 -07:00 committed by Michael Murphy
parent 8b73478c57
commit 4ae03278cc
4 changed files with 36 additions and 13 deletions

8
src/widget/scrollbar.rs Normal file
View file

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