Improve scrollbar
This commit is contained in:
parent
81a529bd5d
commit
4bde45bcdc
2 changed files with 3 additions and 2 deletions
|
|
@ -473,7 +473,8 @@ impl Application for App {
|
||||||
|
|
||||||
/// Creates the application, and optionally emits command on initialize.
|
/// Creates the application, and optionally emits command on initialize.
|
||||||
fn init(mut core: Core, flags: Self::Flags) -> (Self, Command<Self::Message>) {
|
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;
|
core.window.show_headerbar = flags.config.show_headerbar;
|
||||||
|
|
||||||
// Update font name from config
|
// Update font name from config
|
||||||
|
|
|
||||||
|
|
@ -341,7 +341,7 @@ where
|
||||||
renderer.fill_quad(
|
renderer.fill_quad(
|
||||||
Quad {
|
Quad {
|
||||||
bounds: scrollbar_rect + Vector::new(view_position.x, view_position.y),
|
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_width: 0.0,
|
||||||
border_color: Color::TRANSPARENT,
|
border_color: Color::TRANSPARENT,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue