Support File Settings #26

Merged
cody merged 7 commits from topic/jb/tim-tool_additional-settings into main 2025-04-08 19:19:33 +00:00
1 changed files with 24 additions and 2 deletions
Showing only changes of commit 7967c6824f - Show all commits

View File

@ -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,
@ -299,12 +299,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;
}
}
}