Browse Source

define tab label alignment

master
yggverse 2 months ago
parent
commit
1da7756374
  1. 7
      src/browser/main/tab/label/mod.rs

7
src/browser/main/tab/label/mod.rs

@ -2,7 +2,7 @@ mod pin;
mod title; mod title;
use gtk::prelude::{BoxExt, WidgetExt}; use gtk::prelude::{BoxExt, WidgetExt};
use gtk::{Box, Orientation}; use gtk::{Align, Box, Orientation};
use pin::Pin; use pin::Pin;
use title::Title; use title::Title;
@ -23,7 +23,10 @@ impl Label {
let title = Title::new(); let title = Title::new();
// GTK // 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(pin.widget());
widget.append(title.widget()); widget.append(title.widget());

Loading…
Cancel
Save