From b5874342b5fe033225d9604ceda0b1743fb110be Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 16 Dec 2024 13:05:05 +0200 Subject: [PATCH] apply app-notification class --- src/app/browser/window/tab/item/page/content/text/search.rs | 2 +- .../window/tab/item/page/content/text/search/close.rs | 2 -- .../window/tab/item/page/content/text/search/input.rs | 2 -- .../tab/item/page/content/text/search/navigation/back.rs | 4 ---- .../tab/item/page/content/text/search/navigation/forward.rs | 5 ----- 5 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/app/browser/window/tab/item/page/content/text/search.rs b/src/app/browser/window/tab/item/page/content/text/search.rs index fe81868f..50dd7d65 100644 --- a/src/app/browser/window/tab/item/page/content/text/search.rs +++ b/src/app/browser/window/tab/item/page/content/text/search.rs @@ -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(); diff --git a/src/app/browser/window/tab/item/page/content/text/search/close.rs b/src/app/browser/window/tab/item/page/content/text/search/close.rs index 11c2ecf5..facf8bcd 100644 --- a/src/app/browser/window/tab/item/page/content/text/search/close.rs +++ b/src/app/browser/window/tab/item/page/content/text/search/close.rs @@ -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() } diff --git a/src/app/browser/window/tab/item/page/content/text/search/input.rs b/src/app/browser/window/tab/item/page/content/text/search/input.rs index d72b7081..44290918 100644 --- a/src/app/browser/window/tab/item/page/content/text/search/input.rs +++ b/src/app/browser/window/tab/item/page/content/text/search/input.rs @@ -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) diff --git a/src/app/browser/window/tab/item/page/content/text/search/navigation/back.rs b/src/app/browser/window/tab/item/page/content/text/search/navigation/back.rs index b5943276..4f4506f5 100644 --- a/src/app/browser/window/tab/item/page/content/text/search/navigation/back.rs +++ b/src/app/browser/window/tab/item/page/content/text/search/navigation/back.rs @@ -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(), diff --git a/src/app/browser/window/tab/item/page/content/text/search/navigation/forward.rs b/src/app/browser/window/tab/item/page/content/text/search/navigation/forward.rs index 99f69d3e..79608ea6 100644 --- a/src/app/browser/window/tab/item/page/content/text/search/navigation/forward.rs +++ b/src/app/browser/window/tab/item/page/content/text/search/navigation/forward.rs @@ -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(),