mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
remove ugly gnome's ScrolledWindow + TextView integration
This commit is contained in:
parent
ffb1474c7e
commit
4a94cd4161
3 changed files with 5 additions and 17 deletions
|
|
@ -23,7 +23,6 @@ pub trait Response {
|
|||
base: Uri,
|
||||
title: Option<&str>,
|
||||
size_limit: Option<usize>,
|
||||
max_content_height: i32,
|
||||
) -> Self;
|
||||
}
|
||||
|
||||
|
|
@ -36,7 +35,6 @@ impl Response for Box {
|
|||
base: Uri,
|
||||
title: Option<&str>,
|
||||
size_limit: Option<usize>,
|
||||
max_content_height: i32,
|
||||
) -> Self {
|
||||
// Init components
|
||||
let control = Rc::new(Control::build());
|
||||
|
|
@ -49,18 +47,12 @@ impl Response for Box {
|
|||
.margin_end(MARGIN)
|
||||
.margin_start(MARGIN)
|
||||
.margin_top(MARGIN)
|
||||
.spacing(SPACING)
|
||||
.orientation(Orientation::Vertical)
|
||||
.spacing(SPACING)
|
||||
.build();
|
||||
|
||||
g_box.append(&title);
|
||||
g_box.append(
|
||||
>k::ScrolledWindow::builder()
|
||||
.child(&text_view)
|
||||
.max_content_height(max_content_height)
|
||||
.propagate_natural_height(true)
|
||||
.build(),
|
||||
);
|
||||
g_box.append(&text_view);
|
||||
g_box.append(&control.g_box);
|
||||
|
||||
// Init events
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue