mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
apply app-notification class
This commit is contained in:
parent
54901cded6
commit
b5874342b5
@ -33,7 +33,7 @@ impl Search {
|
|||||||
|
|
||||||
// Init main container
|
// Init main container
|
||||||
let g_box = Box::builder()
|
let g_box = Box::builder()
|
||||||
// .css_classes(["app-notification"])
|
.css_classes(["app-notification"])
|
||||||
.orientation(Orientation::Horizontal)
|
.orientation(Orientation::Horizontal)
|
||||||
.visible(false)
|
.visible(false)
|
||||||
.build();
|
.build();
|
||||||
|
@ -6,10 +6,8 @@ pub fn new() -> Button {
|
|||||||
Button::builder()
|
Button::builder()
|
||||||
.cursor(&Cursor::from_name("default", None).unwrap())
|
.cursor(&Cursor::from_name("default", None).unwrap())
|
||||||
.icon_name("window-close-symbolic")
|
.icon_name("window-close-symbolic")
|
||||||
.margin_bottom(MARGIN)
|
|
||||||
.margin_end(MARGIN)
|
.margin_end(MARGIN)
|
||||||
.margin_start(MARGIN)
|
.margin_start(MARGIN)
|
||||||
.margin_top(MARGIN)
|
|
||||||
.tooltip_text("Close find bar")
|
.tooltip_text("Close find bar")
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
@ -17,10 +17,8 @@ impl Input {
|
|||||||
// Init widget
|
// Init widget
|
||||||
let entry = Entry::builder()
|
let entry = Entry::builder()
|
||||||
.hexpand(true)
|
.hexpand(true)
|
||||||
.margin_bottom(MARGIN)
|
|
||||||
.margin_end(MARGIN)
|
.margin_end(MARGIN)
|
||||||
.margin_start(MARGIN)
|
.margin_start(MARGIN)
|
||||||
.margin_top(MARGIN)
|
|
||||||
.placeholder_text("Find in text..")
|
.placeholder_text("Find in text..")
|
||||||
.primary_icon_activatable(false)
|
.primary_icon_activatable(false)
|
||||||
.primary_icon_sensitive(false)
|
.primary_icon_sensitive(false)
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
use gtk::{gdk::Cursor, prelude::WidgetExt, Button};
|
use gtk::{gdk::Cursor, prelude::WidgetExt, Button};
|
||||||
|
|
||||||
const MARGIN: i32 = 6;
|
|
||||||
|
|
||||||
pub struct Back {
|
pub struct Back {
|
||||||
pub button: Button,
|
pub button: Button,
|
||||||
}
|
}
|
||||||
@ -15,8 +13,6 @@ impl Back {
|
|||||||
button: Button::builder()
|
button: Button::builder()
|
||||||
.cursor(&Cursor::from_name("default", None).unwrap())
|
.cursor(&Cursor::from_name("default", None).unwrap())
|
||||||
.icon_name("go-up-symbolic")
|
.icon_name("go-up-symbolic")
|
||||||
.margin_bottom(MARGIN)
|
|
||||||
.margin_top(MARGIN)
|
|
||||||
.sensitive(false)
|
.sensitive(false)
|
||||||
.tooltip_text("Back")
|
.tooltip_text("Back")
|
||||||
.build(),
|
.build(),
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
use gtk::{gdk::Cursor, prelude::WidgetExt, Button};
|
use gtk::{gdk::Cursor, prelude::WidgetExt, Button};
|
||||||
|
|
||||||
const MARGIN: i32 = 6;
|
|
||||||
|
|
||||||
pub struct Forward {
|
pub struct Forward {
|
||||||
pub button: Button,
|
pub button: Button,
|
||||||
}
|
}
|
||||||
@ -15,8 +12,6 @@ impl Forward {
|
|||||||
button: Button::builder()
|
button: Button::builder()
|
||||||
.cursor(&Cursor::from_name("default", None).unwrap())
|
.cursor(&Cursor::from_name("default", None).unwrap())
|
||||||
.icon_name("go-down-symbolic")
|
.icon_name("go-down-symbolic")
|
||||||
.margin_bottom(MARGIN)
|
|
||||||
.margin_top(MARGIN)
|
|
||||||
.sensitive(false)
|
.sensitive(false)
|
||||||
.tooltip_text("Forward")
|
.tooltip_text("Forward")
|
||||||
.build(),
|
.build(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user