From 5cd29460fb248c3c4eeeffc1f8a1c0594c7878d6 Mon Sep 17 00:00:00 2001 From: Jaby Date: Sat, 5 Apr 2025 23:10:58 +0200 Subject: [PATCH] Prepare GUI for additonal settings --- src/Tools/tim_tool/ui/tab/main-tab.slint | 26 ++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/Tools/tim_tool/ui/tab/main-tab.slint b/src/Tools/tim_tool/ui/tab/main-tab.slint index c2b9de49..71aa5910 100644 --- a/src/Tools/tim_tool/ui/tab/main-tab.slint +++ b/src/Tools/tim_tool/ui/tab/main-tab.slint @@ -1,5 +1,5 @@ import { VRAMArea } from "../vram-components.slint"; -import { Button, ComboBox, GroupBox, StandardListView, LineEdit, ScrollView, Slider } from "std-widgets.slint"; +import { Button, CheckBox, ComboBox, GroupBox, StandardListView, LineEdit, ScrollView, Slider } from "std-widgets.slint"; struct VRAMImgData { full_image: image, @@ -310,12 +310,34 @@ export component MainTab inherits Rectangle { title: "File settings"; enabled: false; + VerticalLayout { + alignment: start; + lz4_check_box := CheckBox { + text: "Compress (lz4)"; + enabled: file_settings_box.enabled; + } + + GroupBox { + title: "Transparency:"; + enabled: file_settings_box.enabled; + VerticalLayout { + alignment: start; + trans_combo_box := ComboBox { + model: ["No transparency", "First color transparent", "PSX semi-transparency", "Both"]; + enabled: file_settings_box.enabled; + } + } + } + } + public function set_active(item: int) { self.enabled = true; } public function set_inactive() { - self.enabled = false; + lz4_check_box.checked = false; + trans_combo_box.current-index = 0; + self.enabled = false; } } }