mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
replace app-notification class with `osd
This commit is contained in:
parent
105c1ca7a5
commit
74322fb850
6 changed files with 16 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue