Support preview image
This commit is contained in:
parent
3e0fb8396d
commit
3009b11675
|
@ -65,6 +65,7 @@ export component MainTab inherits Rectangle {
|
||||||
if event.kind == PointerEventKind.down {
|
if event.kind == PointerEventKind.down {
|
||||||
cur_sel_x.display_value = parent.img_x;
|
cur_sel_x.display_value = parent.img_x;
|
||||||
cur_sel_y.display_value = parent.img_y;
|
cur_sel_y.display_value = parent.img_y;
|
||||||
|
cur_sel_img.source = parent.img;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,6 +124,11 @@ export component MainTab inherits Rectangle {
|
||||||
width: 128px;
|
width: 128px;
|
||||||
height: 128px;
|
height: 128px;
|
||||||
background: #A0A0A0;
|
background: #A0A0A0;
|
||||||
|
cur_sel_img := Image {
|
||||||
|
width: 128px;
|
||||||
|
height: 128px;
|
||||||
|
image-fit: contain;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cur_sel_x := Text {
|
cur_sel_x := Text {
|
||||||
in-out property <int> display_value;
|
in-out property <int> display_value;
|
||||||
|
|
Loading…
Reference in New Issue