diff --git a/src/Tools/tim_tool/ui/tab/main-tab.slint b/src/Tools/tim_tool/ui/tab/main-tab.slint index 2889b2fc..aefc0e85 100644 --- a/src/Tools/tim_tool/ui/tab/main-tab.slint +++ b/src/Tools/tim_tool/ui/tab/main-tab.slint @@ -90,6 +90,8 @@ export component MainTab inherits Rectangle { if event.kind == PointerEventKind.down { cur_sel_x.text = parent.img_x; cur_sel_y.text = parent.img_y; + cur_sel_width.text = "Width: " + vram_data.images.image.width; + cur_sel_height.text = "Height: " + vram_data.images.image.height; cur_sel_img.source = vram_data.images.full_image; encoding_text.encoding_str = vram_data.info.encoding_str; cur_sel_img.visible = true; @@ -164,6 +166,8 @@ export component MainTab inherits Rectangle { current-item-changed(current-item) => { cur_sel_x.text = root.vram_data[current-item].info.x; cur_sel_y.text = root.vram_data[current-item].info.y; + cur_sel_width.text = "Width: " + root.vram_data[current-item].images.image.width; + cur_sel_height.text = "Height: " + root.vram_data[current-item].images.image.height; cur_sel_img.source = root.vram_data[current-item].images.full_image; encoding_text.encoding_str = root.vram_data[current-item].info.encoding_str; cur_sel_img.visible = true; @@ -211,7 +215,7 @@ export component MainTab inherits Rectangle { cur_sel_x := LineEdit { input-type: number; text: 0; - width: 64pt; + width: 48pt; accepted(text) => { if(vram_files_list.current-item != -1) { @@ -220,6 +224,12 @@ export component MainTab inherits Rectangle { } } } + VerticalLayout { + alignment: center; + cur_sel_width := Text { + text: "Width: 0"; + } + } } HorizontalLayout { alignment: start; @@ -232,7 +242,7 @@ export component MainTab inherits Rectangle { cur_sel_y := LineEdit { input-type: number; text: 0; - width: 64pt; + width: 48pt; accepted(text) => { if(vram_files_list.current-item != -1) { @@ -241,6 +251,12 @@ export component MainTab inherits Rectangle { } } } + VerticalLayout { + alignment: center; + cur_sel_height := Text { + text: "Height: 0"; + } + } } encoding_text := Text { in-out property encoding_str;