fix: paket: visual cleanups
This commit is contained in:
parent
cf986694eb
commit
5fc628a54d
2 changed files with 40 additions and 24 deletions
|
@ -77,8 +77,8 @@ impl Component for AccountView {
|
||||||
set_margin_start: 12,
|
set_margin_start: 12,
|
||||||
set_margin_end: 12,
|
set_margin_end: 12,
|
||||||
|
|
||||||
set_margin_top: 24,
|
set_margin_top: 12,
|
||||||
set_margin_bottom: 24,
|
set_margin_bottom: 12,
|
||||||
|
|
||||||
// General infos
|
// General infos
|
||||||
append = &adw::PreferencesGroup {
|
append = &adw::PreferencesGroup {
|
||||||
|
|
|
@ -41,13 +41,26 @@ impl Component for TrackingView {
|
||||||
adw::ToastOverlay {
|
adw::ToastOverlay {
|
||||||
#[wrap(Some)]
|
#[wrap(Some)]
|
||||||
set_child = >k::ScrolledWindow {
|
set_child = >k::ScrolledWindow {
|
||||||
|
set_propagate_natural_width: true,
|
||||||
|
#[wrap(Some)]
|
||||||
|
set_child = &adw::Clamp {
|
||||||
|
set_maximum_size: 1800,
|
||||||
|
|
||||||
#[wrap(Some)]
|
#[wrap(Some)]
|
||||||
set_child = >k::Box {
|
set_child = >k::Box {
|
||||||
set_orientation: gtk::Orientation::Vertical,
|
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 = >k::Box {
|
||||||
set_orientation: gtk::Orientation::Horizontal,
|
set_orientation: gtk::Orientation::Horizontal,
|
||||||
set_margin_all: 2,
|
set_margin_all: 2,
|
||||||
|
set_halign: gtk::Align::Center,
|
||||||
|
|
||||||
add_css_class: relm4::css::TOOLBAR,
|
add_css_class: relm4::css::TOOLBAR,
|
||||||
|
|
||||||
#[name = "tracking_entry"]
|
#[name = "tracking_entry"]
|
||||||
|
@ -62,12 +75,14 @@ impl Component for TrackingView {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
#[local_ref]
|
#[local_ref]
|
||||||
tracking_box -> gtk::Box {
|
tracking_box -> gtk::Box {
|
||||||
set_spacing: 8
|
set_spacing: 8
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -273,6 +288,7 @@ impl FactoryComponent for ShipmentView {
|
||||||
gtk::Label {
|
gtk::Label {
|
||||||
add_css_class: relm4::css::HEADING,
|
add_css_class: relm4::css::HEADING,
|
||||||
set_halign: gtk::Align::Start,
|
set_halign: gtk::Align::Start,
|
||||||
|
set_wrap: true,
|
||||||
|
|
||||||
set_label: {
|
set_label: {
|
||||||
// TODO: gettext
|
// TODO: gettext
|
||||||
|
|
Loading…
Reference in a new issue