mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
replace app-notification
class with `osd
This commit is contained in:
parent
105c1ca7a5
commit
74322fb850
@ -33,7 +33,7 @@ impl Search {
|
||||
|
||||
// Init main container
|
||||
let g_box = Box::builder()
|
||||
.css_classes(["app-notification"])
|
||||
.css_classes(["osd"])
|
||||
.orientation(Orientation::Horizontal)
|
||||
.visible(false)
|
||||
.build();
|
||||
|
@ -6,8 +6,10 @@ pub fn new() -> Button {
|
||||
Button::builder()
|
||||
.cursor(&Cursor::from_name("default", None).unwrap())
|
||||
.icon_name("window-close-symbolic")
|
||||
.margin_bottom(MARGIN)
|
||||
.margin_end(MARGIN)
|
||||
.margin_start(MARGIN)
|
||||
.margin_top(MARGIN)
|
||||
.tooltip_text("Close find bar")
|
||||
.build()
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
use gtk::{gdk::Cursor, prelude::WidgetExt, Button};
|
||||
|
||||
const MARGIN: i32 = 6;
|
||||
|
||||
pub struct Back {
|
||||
pub button: Button,
|
||||
}
|
||||
@ -13,6 +15,8 @@ impl Back {
|
||||
button: Button::builder()
|
||||
.cursor(&Cursor::from_name("default", None).unwrap())
|
||||
.icon_name("go-up-symbolic")
|
||||
.margin_bottom(MARGIN)
|
||||
.margin_top(MARGIN)
|
||||
.sensitive(false)
|
||||
.tooltip_text("Back")
|
||||
.build(),
|
||||
|
@ -1,4 +1,7 @@
|
||||
use gtk::{gdk::Cursor, prelude::WidgetExt, Button};
|
||||
|
||||
const MARGIN: i32 = 6;
|
||||
|
||||
pub struct Forward {
|
||||
pub button: Button,
|
||||
}
|
||||
@ -12,6 +15,8 @@ impl Forward {
|
||||
button: Button::builder()
|
||||
.cursor(&Cursor::from_name("default", None).unwrap())
|
||||
.icon_name("go-down-symbolic")
|
||||
.margin_bottom(MARGIN)
|
||||
.margin_top(MARGIN)
|
||||
.sensitive(false)
|
||||
.tooltip_text("Forward")
|
||||
.build(),
|
||||
|
@ -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…
x
Reference in New Issue
Block a user