energy-monitor: layout tweaks

This commit is contained in:
Florian Blasius 2023-03-02 09:55:58 +01:00
parent 74d3d4a14a
commit b9561a642a
2 changed files with 15 additions and 21 deletions

View file

@ -29,6 +29,7 @@ export component Navigation {
Rectangle {
clip: true;
@children
}
@ -39,7 +40,6 @@ export component Navigation {
Rectangle {
visible: current-index > 0 && show-navigation;
opacity: self.visible ? 1 : 0;
// x: 0px;
min_width: 129px;
background: Theme.palette.dark-left-gradient;

View file

@ -53,29 +53,23 @@ export component PageScrollView {
in-out property <length> viewport-x <=> i-flickable.viewport-x;
VerticalLayout {
spacing: 50px;
spacing: 10px;
// spacer
Rectangle {
VerticalLayout {
vertical-stretch: 1;
}
alignment: center;
i-flickable := Flickable {
vertical-stretch: 1;
i-layout := HorizontalLayout {
padding-left: 20px;
padding-right: 20px;
spacing: 20px;
@children
}
}
// spacer
Rectangle {
vertical-stretch: 1;
i-flickable := Flickable {
vertical-stretch: 1;
i-layout := HorizontalLayout {
padding-left: 20px;
padding-right: 20px;
spacing: 20px;
@children
}
}
}
HorizontalLayout {