mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-05 11:13:18 +00:00
Move Models and Actions slint definitions in the shared directory
This commit is contained in:
parent
f2f472a595
commit
72b004b7b0
15 changed files with 58 additions and 66 deletions
|
@ -150,7 +150,6 @@ export component Calendar inherits Rectangle {
|
|||
ta := TouchArea {
|
||||
pointer-event(e) => {
|
||||
if (e.button == PointerEventButton.right && e.kind == PointerEventKind.up) {
|
||||
debug(ta.mouse-x, " ", ta.mouse-y);
|
||||
eventActionsPopup.show(ta.mouse-x, ta.mouse-y);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { AppWindowModels } from "../windows/AppWindow/Models.slint";
|
||||
import { AppModels } from "../shared/Models.slint";
|
||||
import { Date, Time, Button, VerticalBox, CheckBox, ScrollView, ComboBox } from "std-widgets.slint";
|
||||
import { VPopupIconMenu, VDatePicker, VTimePicker, VCheckBox, VButton, VActionButton, VTag, VText, Svg, VTextInput, Palette } from "@selenite";
|
||||
|
||||
|
@ -16,7 +16,7 @@ export component CreateTaskOrEvent inherits Rectangle {
|
|||
|
||||
function accepted() {
|
||||
root.create-task({
|
||||
sourceId: AppWindowModels.get-source-id-from-name(sourceInput.current-value),
|
||||
sourceId: AppModels.get-source-id-from-name(sourceInput.current-value),
|
||||
title: newTaskTitleInput.text,
|
||||
date: taskDateInput.date
|
||||
});
|
||||
|
@ -39,7 +39,7 @@ export component CreateTaskOrEvent inherits Rectangle {
|
|||
newTaskTitleInput := VTextInput {
|
||||
placeholder: "Enter new task";
|
||||
started-writting() => {
|
||||
sourceInput.current-index = AppWindowModels.default-source-index;
|
||||
sourceInput.current-index = AppModels.default-source-index;
|
||||
}
|
||||
accepted => { accepted() }
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Event } from "../windows/AppWindow/Models.slint";
|
||||
import { Event } from "../shared/Models.slint";
|
||||
import { ScrollView } from "std-widgets.slint";
|
||||
import { VCheckBox, VTextInput, VButton, VActionButton, Svg, VTag, VPopupIconMenu, VText, Palette } from "@selenite";
|
||||
import { TaskLine } from "./TaskLine.slint";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue