mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
fix placeholder position
This commit is contained in:
parent
a9e2e4431f
commit
96095db415
@ -1,4 +1,6 @@
|
|||||||
use gtk::{prelude::WidgetExt, Label};
|
use gtk::{prelude::WidgetExt, Align, Label};
|
||||||
|
|
||||||
|
const MARGIN: i32 = 6;
|
||||||
|
|
||||||
pub struct Placeholder {
|
pub struct Placeholder {
|
||||||
pub label: Label,
|
pub label: Label,
|
||||||
@ -12,7 +14,9 @@ impl Placeholder {
|
|||||||
Self {
|
Self {
|
||||||
label: Label::builder()
|
label: Label::builder()
|
||||||
.css_classes(["error"])
|
.css_classes(["error"])
|
||||||
|
.halign(Align::Start)
|
||||||
.label("Search action requires activation!")
|
.label("Search action requires activation!")
|
||||||
|
.margin_start(MARGIN)
|
||||||
.build(),
|
.build(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user