update margins for osd class

This commit is contained in:
yggverse 2024-12-16 13:54:04 +02:00
parent 79941f9592
commit 3c82ab9de9

View File

@ -1,5 +1,7 @@
use gtk::{prelude::WidgetExt, Align, Label};
const MARGIN: i32 = 6;
pub struct Widget {
pub label: Label,
}
@ -10,8 +12,9 @@ impl Widget {
let label = Label::builder()
.css_classes(["heading"])
.halign(Align::Start)
.margin_end(8)
.margin_start(8)
.margin_end(MARGIN)
.margin_start(MARGIN)
.margin_top(MARGIN)
.visible(false)
.build();