Replace 'add source window' with popup

This commit is contained in:
Vyn 2025-06-24 09:31:34 +02:00
parent 854152b395
commit fcdeec19ed
Signed by: vyn
GPG key ID: E1B2BE34E7A971E7
8 changed files with 98 additions and 76 deletions

View file

@ -1,7 +1,8 @@
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";
import { EditSourceModal } from "../../../modals/EditSourceModal.slint";
import { AddSourceModal } from "../../../modals/AddSourceModal.slint";
export component SideBar inherits Rectangle {
@ -9,10 +10,8 @@ export component SideBar inherits Rectangle {
editSourcePopup.edit(source-id)
}
editSourcePopup := EditSourceModal {
//x: parent.width / 2 - 200px;
//y: parent.height / 2 - 300px;
}
addSourcePopup := AddSourceModal{}
editSourcePopup := EditSourceModal {}
VerticalLayout {
height: parent.height;
@ -35,7 +34,7 @@ export component SideBar inherits Rectangle {
icon-svg: Svg.plus;
icon-colorize: Palette.green;
background: transparent;
clicked => { AppWindowActions.open-add-source-window() }
clicked => { addSourcePopup.open() }
}
}
VerticalLayout {