From 1da7756374bde94a50fa0afcc11601501a428c38 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 23 Sep 2024 21:53:26 +0300 Subject: [PATCH] define tab label alignment --- src/browser/main/tab/label/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/browser/main/tab/label/mod.rs b/src/browser/main/tab/label/mod.rs index 240508d1..47854a27 100644 --- a/src/browser/main/tab/label/mod.rs +++ b/src/browser/main/tab/label/mod.rs @@ -2,7 +2,7 @@ mod pin; mod title; use gtk::prelude::{BoxExt, WidgetExt}; -use gtk::{Box, Orientation}; +use gtk::{Align, Box, Orientation}; use pin::Pin; use title::Title; @@ -23,7 +23,10 @@ impl Label { let title = Title::new(); // GTK - let widget = Box::builder().orientation(Orientation::Horizontal).build(); + let widget = Box::builder() + .orientation(Orientation::Horizontal) + .halign(Align::Center) + .build(); widget.append(pin.widget()); widget.append(title.widget());