mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
update margins for osd class
This commit is contained in:
parent
79941f9592
commit
3c82ab9de9
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue