mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
add margins
This commit is contained in:
parent
e4fbb896bb
commit
afedeb81f0
1 changed files with 8 additions and 2 deletions
|
|
@ -10,7 +10,6 @@ pub trait File {
|
||||||
impl File for Box {
|
impl File for Box {
|
||||||
fn file() -> Self {
|
fn file() -> Self {
|
||||||
use control::Control;
|
use control::Control;
|
||||||
use gtk::Button;
|
|
||||||
use std::{cell::Cell, rc::Rc};
|
use std::{cell::Cell, rc::Rc};
|
||||||
|
|
||||||
// Init components
|
// Init components
|
||||||
|
|
@ -19,7 +18,14 @@ impl File for Box {
|
||||||
token: None,
|
token: None,
|
||||||
}));
|
}));
|
||||||
let control = Box::control(&header);
|
let control = Box::control(&header);
|
||||||
let form = Button::builder().label("Choose a file..").build();
|
let form = {
|
||||||
|
const MARGIN: i32 = 8;
|
||||||
|
gtk::Button::builder()
|
||||||
|
.label("Choose a file..")
|
||||||
|
.margin_bottom(MARGIN)
|
||||||
|
.margin_top(MARGIN)
|
||||||
|
.build()
|
||||||
|
};
|
||||||
|
|
||||||
// Init main widget
|
// Init main widget
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue