Replace 'edit source window' with popup

This commit is contained in:
Vyn 2025-06-24 08:35:38 +02:00
parent 129b30b9e7
commit 854152b395
Signed by: vyn
GPG key ID: E1B2BE34E7A971E7
13 changed files with 101 additions and 163 deletions

View file

@ -1,9 +1,19 @@
import { AppWindowModels, TaskData } from "../Models.slint";
import { AppWindowActions } from "../Actions.slint";
import { VButton, ToggleButton, VActionButton, VText, Svg, Palette } from "@selenite";
import { EditSourceModal } from "../../../components/editSourceModal.slint";
export component SideBar inherits Rectangle {
function open-edit-source-window(source-id: int) {
editSourcePopup.edit(source-id)
}
editSourcePopup := EditSourceModal {
//x: parent.width / 2 - 200px;
//y: parent.height / 2 - 300px;
}
VerticalLayout {
height: parent.height;
padding: 16px;
@ -51,7 +61,7 @@ export component SideBar inherits Rectangle {
visible: parent.active;
icon-svg: Svg.cog;
background: transparent;
clicked => { AppWindowActions.open-edit-source-window(item.id) }
clicked => { editSourcePopup.edit(item.id) }
}
}
}