mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 09:23:18 +00:00
Replace 'add source window' with popup
This commit is contained in:
parent
854152b395
commit
fcdeec19ed
8 changed files with 98 additions and 76 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue