mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
update margins for osd
class
This commit is contained in:
parent
79941f9592
commit
3c82ab9de9
@ -1,5 +1,7 @@
|
|||||||
use gtk::{prelude::WidgetExt, Align, Label};
|
use gtk::{prelude::WidgetExt, Align, Label};
|
||||||
|
|
||||||
|
const MARGIN: i32 = 6;
|
||||||
|
|
||||||
pub struct Widget {
|
pub struct Widget {
|
||||||
pub label: Label,
|
pub label: Label,
|
||||||
}
|
}
|
||||||
@ -10,8 +12,9 @@ impl Widget {
|
|||||||
let label = Label::builder()
|
let label = Label::builder()
|
||||||
.css_classes(["heading"])
|
.css_classes(["heading"])
|
||||||
.halign(Align::Start)
|
.halign(Align::Start)
|
||||||
.margin_end(8)
|
.margin_end(MARGIN)
|
||||||
.margin_start(8)
|
.margin_start(MARGIN)
|
||||||
|
.margin_top(MARGIN)
|
||||||
.visible(false)
|
.visible(false)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user