From afedeb81f014205219407dbdc35c1e2ae9158d47 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 7 Feb 2025 14:00:11 +0200 Subject: [PATCH] add margins --- .../browser/window/tab/item/page/input/titan/file.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/item/page/input/titan/file.rs b/src/app/browser/window/tab/item/page/input/titan/file.rs index 78970e5c..23d29b7d 100644 --- a/src/app/browser/window/tab/item/page/input/titan/file.rs +++ b/src/app/browser/window/tab/item/page/input/titan/file.rs @@ -10,7 +10,6 @@ pub trait File { impl File for Box { fn file() -> Self { use control::Control; - use gtk::Button; use std::{cell::Cell, rc::Rc}; // Init components @@ -19,7 +18,14 @@ impl File for Box { token: None, })); let control = Box::control(&header); - let form = Button::builder().label("Choose a file..").build(); + let form = { + const MARGIN: i32 = 8; + gtk::Button::builder() + .label("Choose a file..") + .margin_bottom(MARGIN) + .margin_top(MARGIN) + .build() + }; // Init main widget {