replace app-notification class with `osd

This commit is contained in:
yggverse 2024-12-16 13:26:01 +02:00
parent 105c1ca7a5
commit 74322fb850
6 changed files with 16 additions and 2 deletions

View file

@ -4,6 +4,8 @@ use gtk::{
Button,
};
const MARGIN: i32 = 6;
pub struct Widget {
pub button: Button,
}
@ -15,6 +17,7 @@ impl Widget {
let button = Button::builder()
//.css_classes(["accent"])
.label("Send")
.margin_bottom(MARGIN)
.build();
// Init events

View file

@ -9,7 +9,7 @@ impl Widget {
// Construct
pub fn new() -> Self {
let clamp = Clamp::builder()
.css_classes(["app-notification"])
.css_classes(["osd"])
.maximum_size(800)
.visible(false)
.build();