fix: paket: visual cleanups

This commit is contained in:
jane400 2024-09-19 21:58:25 +02:00 committed by jane400
parent cf986694eb
commit 5fc628a54d
2 changed files with 40 additions and 24 deletions

View file

@ -77,8 +77,8 @@ impl Component for AccountView {
set_margin_start: 12,
set_margin_end: 12,
set_margin_top: 24,
set_margin_bottom: 24,
set_margin_top: 12,
set_margin_bottom: 12,
// General infos
append = &adw::PreferencesGroup {

View file

@ -41,13 +41,26 @@ impl Component for TrackingView {
adw::ToastOverlay {
#[wrap(Some)]
set_child = &gtk::ScrolledWindow {
set_propagate_natural_width: true,
#[wrap(Some)]
set_child = &adw::Clamp {
set_maximum_size: 1800,
#[wrap(Some)]
set_child = &gtk::Box {
set_orientation: gtk::Orientation::Vertical,
set_margin_start: 6,
set_margin_end: 6,
gtk::Box {
set_margin_bottom: 12,
adw::Clamp {
#[wrap(Some)]
set_child = &gtk::Box {
set_orientation: gtk::Orientation::Horizontal,
set_margin_all: 2,
set_halign: gtk::Align::Center,
add_css_class: relm4::css::TOOLBAR,
#[name = "tracking_entry"]
@ -62,12 +75,14 @@ impl Component for TrackingView {
}
},
},
#[local_ref]
tracking_box -> gtk::Box {
set_spacing: 8
},
}
},
}
}
@ -273,6 +288,7 @@ impl FactoryComponent for ShipmentView {
gtk::Label {
add_css_class: relm4::css::HEADING,
set_halign: gtk::Align::Start,
set_wrap: true,
set_label: {
// TODO: gettext