mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-14 09:45:41 +00:00
energy-monitor: layout tweaks
This commit is contained in:
parent
74d3d4a14a
commit
b9561a642a
2 changed files with 15 additions and 21 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue