mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-28 12:04:13 +00:00
apply app-notification class
This commit is contained in:
parent
54901cded6
commit
b5874342b5
@ -33,7 +33,7 @@ impl Search {
|
||||
|
||||
// Init main container
|
||||
let g_box = Box::builder()
|
||||
// .css_classes(["app-notification"])
|
||||
.css_classes(["app-notification"])
|
||||
.orientation(Orientation::Horizontal)
|
||||
.visible(false)
|
||||
.build();
|
||||
|
@ -6,10 +6,8 @@ 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()
|
||||
}
|
||||
|
@ -17,10 +17,8 @@ impl Input {
|
||||
// Init widget
|
||||
let entry = Entry::builder()
|
||||
.hexpand(true)
|
||||
.margin_bottom(MARGIN)
|
||||
.margin_end(MARGIN)
|
||||
.margin_start(MARGIN)
|
||||
.margin_top(MARGIN)
|
||||
.placeholder_text("Find in text..")
|
||||
.primary_icon_activatable(false)
|
||||
.primary_icon_sensitive(false)
|
||||
|
@ -1,7 +1,5 @@
|
||||
use gtk::{gdk::Cursor, prelude::WidgetExt, Button};
|
||||
|
||||
const MARGIN: i32 = 6;
|
||||
|
||||
pub struct Back {
|
||||
pub button: Button,
|
||||
}
|
||||
@ -15,8 +13,6 @@ 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,7 +1,4 @@
|
||||
use gtk::{gdk::Cursor, prelude::WidgetExt, Button};
|
||||
|
||||
const MARGIN: i32 = 6;
|
||||
|
||||
pub struct Forward {
|
||||
pub button: Button,
|
||||
}
|
||||
@ -15,8 +12,6 @@ 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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user