finished implementing setting category

This commit is contained in:
ide
2026-08-17 22:47:02 +02:00
parent b3dd373403
commit 495b0de7a7
8 changed files with 1712 additions and 1176 deletions
+6 -2
View File
@@ -13,8 +13,6 @@ import {
import { SettingsView } from "settings.slint";
import { State, SItem, SButtonItem } from "state.slint";
export { State, SItem }
component GoodListItem inherits Rectangle {
in-out property <SItem> item;
background: #ffffff10;
@@ -281,16 +279,22 @@ component ShopView inherits VerticalLayout {
component CatItem inherits HorizontalBox {
in-out property <SButtonItem> item;
Text {
text: item.name;
vertical-alignment: center;
font-size: 16px;
}
ComboBox {
model: ["kyl", "skafferi", "frys", "övrigt"];
current-value: item.category;
width: 60%;
selected(category) => { State.set-cat(item.name, category) }
}
}
component CatView inherits VerticalLayout {
in-out property <[SButtonItem]> cats;