mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-28 12:04:13 +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};
|
||||
|
||||
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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user