1
0
Fork 0
mirror of synced 2024-06-15 17:04:58 +12:00
czkawka/krokiet/ui/settings_list.slint
2023-11-23 07:39:17 +01:00

52 lines
1.5 KiB
Plaintext

import { Button, VerticalBox , HorizontalBox, TabWidget, ListView, StandardListView, StandardTableView, CheckBox, ScrollView, LineEdit, SpinBox} from "std-widgets.slint";
import { Settings } from "settings.slint";
global SettingsSize {
out property <length> item_height: 30px;
}
component TextComponent inherits HorizontalLayout {
in-out property <string> model;
in property <string> name;
spacing: 5px;
Text {
horizontal-stretch: 0.0;
vertical-alignment: TextVerticalAlignment.center;
text: name;
}
LineEdit {
horizontal-stretch: 1.0;
height: SettingsSize.item_height;
text: model;
}
}
export component SettingsList inherits ScrollView {
min-height: 300px;
VerticalLayout {
spacing: 5px;
Text {
text: "Settings";
height: SettingsSize.item_height;
horizontal-alignment: TextHorizontalAlignment.center;
font-size: 20px;
}
Text {
text: "General settings";
height: SettingsSize.item_height;
horizontal-alignment: TextHorizontalAlignment.center;
}
TextComponent {
name: "Excluded item:";
model <=> Settings.excluded_items;
}
TextComponent {
name: "Allowed extensions:";
model <=> Settings.allowed_extensions;
}
SpinBox {
enabled: true;
height: SettingsSize.item_height;
}
}
}