diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find.rs index 8765ed84..685742b4 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find.rs @@ -13,8 +13,6 @@ use gtk::{ }; use std::rc::Rc; -const MARGIN: i32 = 6; - pub struct Find { pub close: Button, pub entry: Entry, diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/close.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/close.rs index 986e300f..11c2ecf5 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/close.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/close.rs @@ -1,6 +1,7 @@ -use super::MARGIN; use gtk::{gdk::Cursor, Button}; +const MARGIN: i32 = 6; + pub fn new() -> Button { Button::builder() .cursor(&Cursor::from_name("default", None).unwrap()) diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/entry.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/entry.rs index 478d686a..54d2bf9f 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/entry.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/entry.rs @@ -1,9 +1,10 @@ -use super::MARGIN; use gtk::{ prelude::{EditableExt, EntryExt}, Entry, EntryIconPosition, }; +const MARGIN: i32 = 6; + pub fn new() -> Entry { // Init widget let entry = Entry::builder() diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/navigation.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/navigation.rs index 4e6d53bf..23656f5f 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/navigation.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/widget/find/navigation.rs @@ -1,10 +1,10 @@ mod back; mod forward; +use gtk::{prelude::BoxExt, Box, Button, Orientation, TextIter}; use std::{cell::Cell, rc::Rc}; -use super::MARGIN; -use gtk::{prelude::BoxExt, Box, Button, Orientation, TextIter}; +const MARGIN: i32 = 6; pub struct Navigation { pub back: Button,