mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix margins
This commit is contained in:
parent
e35b5e82e9
commit
50a0b3b6e5
2 changed files with 2 additions and 3 deletions
|
|
@ -4,8 +4,6 @@ use gtk::{
|
||||||
Button,
|
Button,
|
||||||
};
|
};
|
||||||
|
|
||||||
const MARGIN: i32 = 6;
|
|
||||||
|
|
||||||
pub struct Widget {
|
pub struct Widget {
|
||||||
pub button: Button,
|
pub button: Button,
|
||||||
}
|
}
|
||||||
|
|
@ -17,7 +15,6 @@ impl Widget {
|
||||||
let button = Button::builder()
|
let button = Button::builder()
|
||||||
//.css_classes(["accent"])
|
//.css_classes(["accent"])
|
||||||
.label("Send")
|
.label("Send")
|
||||||
.margin_bottom(MARGIN)
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
// Init events
|
// Init events
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
use gtk::{prelude::BoxExt, Align, Box, Button, Label, Orientation};
|
use gtk::{prelude::BoxExt, Align, Box, Button, Label, Orientation};
|
||||||
|
|
||||||
|
const MARGIN: i32 = 8;
|
||||||
const SPACING: i32 = 8;
|
const SPACING: i32 = 8;
|
||||||
|
|
||||||
pub struct Widget {
|
pub struct Widget {
|
||||||
|
|
@ -12,6 +13,7 @@ impl Widget {
|
||||||
// Init main widget
|
// Init main widget
|
||||||
let g_box = Box::builder()
|
let g_box = Box::builder()
|
||||||
.halign(Align::End)
|
.halign(Align::End)
|
||||||
|
.margin_bottom(MARGIN)
|
||||||
.orientation(Orientation::Horizontal)
|
.orientation(Orientation::Horizontal)
|
||||||
.spacing(SPACING)
|
.spacing(SPACING)
|
||||||
.build();
|
.build();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue