Improve scrollbar

This commit is contained in:
Jeremy Soller 2024-01-10 16:17:52 -07:00
parent 81a529bd5d
commit 4bde45bcdc
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
2 changed files with 3 additions and 2 deletions

View file

@ -473,7 +473,8 @@ impl Application for App {
/// Creates the application, and optionally emits command on initialize.
fn init(mut core: Core, flags: Self::Flags) -> (Self, Command<Self::Message>) {
core.window.content_container = false;
//TODO: fix window resizing interfering with scrolling when not using content container
//core.window.content_container = false;
core.window.show_headerbar = flags.config.show_headerbar;
// Update font name from config

View file

@ -341,7 +341,7 @@ where
renderer.fill_quad(
Quad {
bounds: scrollbar_rect + Vector::new(view_position.x, view_position.y),
border_radius: 0.0.into(),
border_radius: (scrollbar_w / 2.0).into(),
border_width: 0.0,
border_color: Color::TRANSPARENT,
},