From 1ffc5c1edb612f816b702b33adbbd15d7e74ecd4 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 31 Oct 2024 16:13:00 +0200 Subject: [PATCH] use common const --- .../browser/window/tab/item/page/navigation/widget.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/app/browser/window/tab/item/page/navigation/widget.rs b/src/app/browser/window/tab/item/page/navigation/widget.rs index 57e0af94..944b4427 100644 --- a/src/app/browser/window/tab/item/page/navigation/widget.rs +++ b/src/app/browser/window/tab/item/page/navigation/widget.rs @@ -1,6 +1,9 @@ use gtk::{prelude::BoxExt, Box, Button, Entry, Orientation}; use std::sync::Arc; +const MARGIN: i32 = 6; +const SPACING: i32 = 6; + pub struct Widget { gobject: Box, } @@ -16,10 +19,10 @@ impl Widget { ) -> Arc { let gobject = Box::builder() .orientation(Orientation::Horizontal) - .spacing(8) - .margin_start(6) - .margin_end(6) - .margin_bottom(6) + .spacing(SPACING) + .margin_start(MARGIN) + .margin_end(MARGIN) + .margin_bottom(MARGIN) .build(); gobject.append(base);