apply app-notification class

This commit is contained in:
yggverse 2024-12-16 13:05:05 +02:00
parent 54901cded6
commit b5874342b5
5 changed files with 1 additions and 14 deletions

View File

@ -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();

View File

@ -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()
}

View File

@ -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)

View File

@ -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(),

View File

@ -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(),