diff --git a/src/Tools/tim_tool/ui/tab/main-tab.slint b/src/Tools/tim_tool/ui/tab/main-tab.slint index a206a1f1..d252e3ac 100644 --- a/src/Tools/tim_tool/ui/tab/main-tab.slint +++ b/src/Tools/tim_tool/ui/tab/main-tab.slint @@ -10,7 +10,7 @@ struct VRAMImage { } export component MainTab inherits Rectangle { - property test_scale: 2; + property test_scale: 4; in-out property vram_bg; in-out property <[StandardListViewItem]> vram_files: []; in-out property <[VRAMImage]> vram_images: []; @@ -24,11 +24,12 @@ export component MainTab inherits Rectangle { group := GroupBox { title: "VRAM Layout"; - x: 4px; - y: 4px; + x: 4px; + y: 4px; + width: main_view.width + 2*main_view.x; VerticalLayout { - ScrollView { + main_view := ScrollView { width: rect.width/root.test_scale; height: rect.height/root.test_scale; viewport-x: 0; @@ -107,13 +108,14 @@ export component MainTab inherits Rectangle { } HorizontalLayout { padding: 4px; + GroupBox { title: "Added files"; VerticalLayout { alignment: start; padding: 4px; vram_files_list := StandardListView { - width: background_image.width/2; + width: background_image.width/root.test_scale/2; height: 128px; model: root.vram_files;